-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P3
-
Affects Version/s: 27
-
Component/s: security-libs
-
b10
Currently implementation of the test relies on changing the last byte of the cypher to mess up the padding lines. However after reading though the pkcs5 rfc, if the last bit is already 0 the padding will not be taken into account and the result will have no error but will be a garbage output. Current test doesn't take this into account.
The fix should encode the test text without padding and decode with padding to make sure that the bad padding exception is thrown.
The fix should encode the test text without padding and decode with padding to make sure that the bad padding exception is thrown.
- relates to
-
JDK-8377315 test/jdk/sun/security/pkcs11/Cipher/TestPKCS5PaddingError.java is failing with "Expected BPE NOT thrown"
-
- Resolved
-
-
JDK-8365883 Fix P11Cipher to throw BadPaddingException for PKCS11 CKR_ENCRYPTED_DATA_INVALID error
-
- Resolved
-
- links to
-
Commit(master)
openjdk/jdk/4ab05d25
-
Review(master)
openjdk/jdk/29612