# HG changeset patch # User weijun # Date 1291603700 -28800 # Node ID 287acfa1a9f2fe4737f86447465ee3cf918fd743 # Parent 78a87adede1e73ff7e84c2deb9aa48b1a22fe5c0 6943352: SSL regression: RSAClientKeyExchange fails to pass securerandom arg to KeyGen Reviewed-by: wetmore, xuelei diff -r 78a87adede1e -r 287acfa1a9f2 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);