RFR: 8023980: JCE doesn't provide any class to handle RSA private key in PKCS#1 [v3]

Valerie Peng valeriep at openjdk.java.net
Fri Jan 15 23:08:21 UTC 2021


On Thu, 14 Jan 2021 20:04:33 GMT, Valerie Peng <valeriep at openjdk.org> wrote:

>> src/java.base/share/classes/sun/security/rsa/RSAKeyFactory.java line 344:
>> 
>>> 342:         if (keySpec instanceof PKCS8EncodedKeySpec) {
>>> 343:             return RSAPrivateCrtKeyImpl.newKey(type, "PKCS#8",
>>> 344:                     ((PKCS8EncodedKeySpec)keySpec).getEncoded());
>> 
>> Will you clean up the `getEncoded()` output or shall I?
>
> Maybe it's better that you do it this time? Just so that the backport won't miss it.

Or if you integrated before me, I will manually merge the changes and clean up the getEncoded() also.

-------------

PR: https://git.openjdk.java.net/jdk/pull/1787



More information about the security-dev mailing list