6943352: SSL regression: RSAClientKeyExchange fails to pass securerandom arg to KeyGen
Reviewed-by: wetmore, xuelei
--- 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);