changeset 3212:c338757f2bc0

6943352: SSL regression: RSAClientKeyExchange fails to pass securerandom arg to KeyGen Reviewed-by: wetmore, xuelei
author weijun
date Mon, 06 Dec 2010 10:48:20 +0800
parents 44d950400047
children 403785dc4493
files src/share/classes/sun/security/ssl/RSAClientKeyExchange.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/security/ssl/RSAClientKeyExchange.java	Mon Dec 06 10:48:18 2010 +0800
+++ b/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);