-
Bug
-
Resolution: Fixed
-
P4
-
None
-
b08
-
generic
-
generic
SunJCE provider does not support CTR, CTS, and GCM modes with PKCS5Padding. However, the current implementation will silently ignore the specified PKCS5Padding and return implementations which use no padding. This should be fixed. When Cipher.getInstance(...) is called upon SunJCE provider with these unsupported mode and padding combination, an exception should be thrown.
Proof of concept:
Cipher.getInstance("AES/GCM/PKCS5Padding");
does not fail.
Proof of concept:
Cipher.getInstance("AES/GCM/PKCS5Padding");
does not fail.
- csr for
-
JDK-8240776 SunJCE provider should throw exceptions for unsupported mode and padding combinations
- Closed
- relates to
-
JDK-8180307 Update JDK 9 Required Cipher Algorithms
- Closed
-
JDK-8228668 compiler/codegen/aes/TestAESMain.java failed with GCM mode must be used with NoPadding
- Resolved
-
JDK-8229214 Don't use GCM with PKCS5Padding in test/micro/org/openjdk/bench/javax/crypto/
- Resolved