6943352: SSL regression: RSAClientKeyExchange fails to pass securerandom arg to KeyGen
authorweijun
Mon, 06 Dec 2010 10:48:20 +0800
changeset 7527 287acfa1a9f2
parent 7526 78a87adede1e
child 7528 aae1ca8d088f
6943352: SSL regression: RSAClientKeyExchange fails to pass securerandom arg to KeyGen Reviewed-by: wetmore, xuelei
jdk/src/share/classes/sun/security/ssl/RSAClientKeyExchange.java
--- a/jdk/src/share/classes/sun/security/ssl/RSAClientKeyExchange.java	Mon Dec 06 10:48:18 2010 +0800
+++ b/jdk/src/share/classes/sun/security/ssl/RSAClientKeyExchange.java	Mon Dec 06 10:48:20 2010 +0800
@@ -103,7 +103,8 @@
             String s = ((protocolVersion.v >= ProtocolVersion.TLS12.v) ?
                 "SunTls12RsaPremasterSecret" : "SunTlsRsaPremasterSecret");
             KeyGenerator kg = JsseJce.getKeyGenerator(s);
-            kg.init(new TlsRsaPremasterSecretParameterSpec(major, minor));
+            kg.init(new TlsRsaPremasterSecretParameterSpec(major, minor),
+                    generator);
             preMaster = kg.generateKey();
 
             Cipher cipher = JsseJce.getCipher(JsseJce.CIPHER_RSA_PKCS1);