[jdk21u-dev] RFR: 8341927: Replace hardcoded security providers with new test.provider.name system property

Lutz Schmidt lucy at openjdk.org
Fri Nov 8 15:45:59 UTC 2024


On Thu, 7 Nov 2024 13:07:52 GMT, Goetz Lindenmaier <goetz at openjdk.org> wrote:

> I backport this for parity with 21.0.6-oracle.
> 
> I resolved two files:
> test/jdk/sun/security/mscapi/InteropWithSunRsaSign.java
> Copyright
> 
> test/jdk/sun/security/pkcs11/Signature/SigInteropPSS2.java
> Resolved because 8325164: Named groups and signature schemes unavailable with SunPKCS11 in FIPS mode not in 21.
> 
> Tests all pass except for three I skipped:
> test/jdk/sun/security/pkcs11/rsa/GenKeyStore.java
> test/jdk/sun/security/rsa/GenKeyStore.java
> test/jdk/javax/crypto/SecretKeyFactory/evilprov/com/evilprovider/EvilHmacSHA1.java
> Checked the change in these files.

Looks almost good to me.

Found one inconsistency (or typo?) in 
test/jdk/com/sun/crypto/provider/Cipher/RSA/TestOAEPPadding.java
It is also present in JDK head revision. 
Not sure if it should be corrected here or fixed with a follow-up PR in head (and subsequent backport).

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

Changes requested by lucy (Reviewer).

PR Review: https://git.openjdk.org/jdk21u-dev/pull/1138#pullrequestreview-2424139418


More information about the jdk-updates-dev mailing list