[9] RFR 8078661: [SunPKCS11] Fails to cast into RSAPrivateCrtKey after RSA KeyPair Generation

Vincent Ryan vincent.x.ryan at oracle.com
Wed Aug 17 11:10:40 UTC 2016


Your fix looks good to me.
Thanks.

> On 17 Aug 2016, at 02:24, Valerie Peng <valerie.peng at oracle.com> wrote:
> 
> 
> Anyone has time to review a straightforward fix? The current PKCS11 code assume that if public exponent is available for RSA Private Key, then it's a RSA CRT key. However, not all vendor implementation works this way. Changing to a tighter check and did minor code-refactoring to avoid re-retrieving the attribute values.
> 
> Bug: https://bugs.openjdk.java.net/browse/JDK-8078661
> Webrev: http://cr.openjdk.java.net/~valeriep/8078661/webrev.00/
> 
> Thanks,
> Valerie




More information about the security-dev mailing list