RFR: 8263404: RsaPrivateKeySpec is always recognized as RSAPrivateCrtKeySpec in RSAKeyFactory.engineGetKeySpec [v6]

Greg Rubin github.com+829871+salusasecondus at openjdk.java.net
Wed Mar 24 22:39:44 UTC 2021


On Wed, 24 Mar 2021 22:35:13 GMT, Valerie Peng <valeriep at openjdk.org> wrote:

>> Ziyi Luo has updated the pull request incrementally with two additional commits since the last revision:
>> 
>>  - Remove trailing whitespace
>>  - Refactor P11RSAKeyFactory and improve tests
>
> test/jdk/sun/security/pkcs11/nss/p11-nss-sensitive.txt line 32:
> 
>> 30:   CKM_ECDSA_SHA3_384
>> 31:   CKM_ECDSA_SHA3_512
>> 32: }
> 
> I assume this is to avoid using this special provider for non-RSA impls? Add a comment?

This file is copy/pasted from `p11-nss.txt` with only the sensitive modifications at the end. I do not know why those disabled mechanisms are present in the source file.

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

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



More information about the security-dev mailing list