[jdk9] RFR: 8163896: Finalizing one key of a KeyPair invalidates the other key

Vincent Ryan vincent.x.ryan at oracle.com
Mon Aug 15 16:13:15 UTC 2016


Thanks Ivan. Your fix looks good.


> On 13 Aug 2016, at 02:15, Ivan Gerasimov <ivan.gerasimov at oracle.com> wrote:
> 
> Hello!
> 
> It was noticed, that SunMSCAPI implementation of a KeyPair has a problem: The public and the private keys share the same native handles.
> 
> As the result, when one of the keys is finalized, and its resources are freed, the second key becomes invalid.
> 
> Would you please help review the fix?
> 
> BUGURL: https://bugs.openjdk.java.net/browse/JDK-8163896
> WEBREV: http://cr.openjdk.java.net/~igerasim/8163896/00/webrev/
> 
> With kind regards,
> Ivan
> 




More information about the security-dev mailing list