[jdk17u-dev] Integrated: 8341927: Replace hardcoded security providers with new test.provider.name system property
Goetz Lindenmaier
goetz at openjdk.org
Thu Nov 21 09:15:25 UTC 2024
On Mon, 18 Nov 2024 13:23:53 GMT, Goetz Lindenmaier <goetz at openjdk.org> wrote:
> I backport this for parity with Oracle 17.0.14. The backport is based on the commit to 21.
>
> Tests passed including win tests. Three files are not real tests, I double-checked these.
>
> I had to resolve a lot of files, but all except three only differed in the Copyright year.
>
> Resolved files
> ================
>
> doc/testing.html
> Resolved. Context differences.
>
> test/jdk/com/sun/crypto/provider/Cipher/KeyWrap/TestCipherKeyWrapperTest.java
> test/jdk/com/sun/crypto/provider/Cipher/PBE/DecryptWithoutParameters.java
> test/jdk/com/sun/crypto/provider/Cipher/PBE/PBEInvalidParamsTest.java
> test/jdk/com/sun/crypto/provider/Cipher/PBE/PBEKeysAlgorithmNames.java
> test/jdk/com/sun/crypto/provider/Cipher/PBE/PBEParametersTest.java
> test/jdk/com/sun/crypto/provider/Cipher/PBE/PBESealedObject.java
> test/jdk/com/sun/crypto/provider/Cipher/PBE/TestCipherKeyWrapperPBEKey.java
> test/jdk/com/sun/crypto/provider/KeyGenerator/Test4628062.java
> test/jdk/com/sun/crypto/provider/Mac/HmacPBESHA1.java
> test/jdk/com/sun/crypto/provider/Mac/HmacSaltLengths.java
> test/jdk/com/sun/crypto/provider/Mac/MacClone.java
> test/jdk/com/sun/crypto/provider/NSASuiteB/TestHmacSHAOids.java
> All these test lack 8288050: Add support of SHA-512/224 and SHA-512/256 to the PBKDF2 and PBES2 impls in SunJCE provider
> All only Copyright except for
> DecryptWithoutParameters.java: Test in 17 has less and other test cases, adapted change to this.
>
> test/jdk/com/sun/crypto/provider/Cipher/KeyWrap/TestGeneral.java
> Test was modified in 18 by 8271745: Correct block size for KW,KWP mode and use fixed IV for KWP mode for SunJCE
> Test in 17 has other test cases, adapted change to this.
>
> test/jdk/com/sun/crypto/provider/Cipher/KeyWrap/TestKeySizeCheck.java
> Test was modified in 8302225: SunJCE Provider doesn't validate key sizes when using 'constrained' transforms for AES/KW and AES/KWP
> Backport started.
> Resolved Copyright.
>
> test/jdk/com/sun/crypto/provider/KeyAgreement/TestExponentSize.java
> Modified in 19 by 8267319: Use larger default key sizes and algorithms based on CNSA
> Resolved Copyright.
>
> test/jdk/com/sun/jdi/ClassesByName2Test.java
> Modified by virtual threads changes.
> Resolved Copyright.
>
> test/jdk/javax/crypto/EncryptedPrivateKeyInfo/GetAlgName.java
> Modified in 20 by 8296442: EncryptedPrivateKeyInfo can be created with an uninitialized AlgorithmParameters. This is a follow-up of a cleanup change also in 20.
> Resolved Copyright.
>
>
>
> Files not in 17
> ===============
>
> test/jdk/com/sun/crypto/provider/KeyGenerator/Test6227536.java
> This tes...
This pull request has now been integrated.
Changeset: 4ea9694e
Author: Goetz Lindenmaier <goetz at openjdk.org>
URL: https://git.openjdk.org/jdk17u-dev/commit/4ea9694e7e524ae7069e300cedf946d7e49b8293
Stats: 970 lines in 222 files changed: 294 ins; 0 del; 676 mod
8341927: Replace hardcoded security providers with new test.provider.name system property
8343848: Fix typo of property name in TestOAEPPadding after 8341927
Reviewed-by: lucy
Backport-of: 9bdf2a619d1d158d6c1e8e1e1238a4229e0b0783
-------------
PR: https://git.openjdk.org/jdk17u-dev/pull/3049
More information about the jdk-updates-dev
mailing list