[jdk17] RFR: 8265500: Some impls of javax.crypto.Cipher.init() do not throw UnsupportedOperationExc for unsupported modes
Valerie Peng
valeriep at openjdk.java.net
Tue Jun 15 22:44:04 UTC 2021
Could someone please help review this trivial fix? The real changes are the two PKCS11 cipher impl classes under src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/. The rest of classes are just cleanups, e.g. dead code or unused code. The test/jdk/javax/crypto/Cipher/TestCipherMode.java is updated to cover more cipher impls for completeness sake. It passes without this fix, so I only add the bug id to the the other test, i.e. test/jdk/sun/security/pkcs11/Cipher/TestCipherMode.java, which verifies the PKCS#11 cipher impls.
Thanks,
Valerie
-------------
Commit messages:
- 8265500: Some impls of javax.crypto.Cipher.init() do not throw UnsupportedOperationExc for unsupported modes
Changes: https://git.openjdk.java.net/jdk17/pull/69/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk17&pr=69&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8265500
Stats: 308 lines in 8 files changed: 254 ins; 5 del; 49 mod
Patch: https://git.openjdk.java.net/jdk17/pull/69.diff
Fetch: git fetch https://git.openjdk.java.net/jdk17 pull/69/head:pull/69
PR: https://git.openjdk.java.net/jdk17/pull/69
More information about the security-dev
mailing list