8042178: A comment need to go in RSAClientKeyExchange.java
Reviewed-by: mullan
This commit is contained in:
parent
4be63c297c
commit
4b81275f81
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -113,7 +113,6 @@ final class RSAClientKeyExchange extends HandshakeMessage {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
Cipher cipher = JsseJce.getCipher(JsseJce.CIPHER_RSA_PKCS1);
|
Cipher cipher = JsseJce.getCipher(JsseJce.CIPHER_RSA_PKCS1);
|
||||||
// Cannot generate key here, please don't use Cipher.UNWRAP_MODE!
|
|
||||||
cipher.init(Cipher.UNWRAP_MODE, privateKey,
|
cipher.init(Cipher.UNWRAP_MODE, privateKey,
|
||||||
new TlsRsaPremasterSecretParameterSpec(
|
new TlsRsaPremasterSecretParameterSpec(
|
||||||
maxVersion.v, currentVersion.v),
|
maxVersion.v, currentVersion.v),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user