RFR 8023546: sun/security/mscapi/ShortRSAKey1024.sh fails intermittently
Weijun Wang
weijun.wang at oracle.com
Fri Jun 19 10:04:08 UTC 2015
I might have found a reason for SunMSCAPI crash
http://cr.openjdk.java.net/~weijun/8023546/webrev.00
Before this fix, the native function convertToLittleEndian() fails if
you want to convert a 63 byte array to a 64 byte one. However, I
observed that when a 1024 bit RSA private key is generated, its prime
exponent p can be only 63 bytes long. Function is updated to accept this
case.
I'm not a cryptographer so if you believe the p must be of 64 bytes long
please tell me.
Thanks
Max
More information about the security-dev
mailing list