RFR: 8365883: Fix P11Cipher to throw BadPaddingException for PKCS11 CKR_ENCRYPTED_DATA_INVALID error [v3]
Mikhail Yankelevich
myankelevich at openjdk.org
Tue Feb 3 22:36:28 UTC 2026
> Underlying issue: if provider returns `PKCS11Exception: CKR_ENCRYPTED_DATA_INVALID` instead of BadPaddingException - `java.security.ProviderException: doFinal()` is thrown
Mikhail Yankelevich has updated the pull request incrementally with one additional commit since the last revision:
minor test fixes
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/29503/files
- new: https://git.openjdk.org/jdk/pull/29503/files/e4baecac..9a87f1f2
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=29503&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=29503&range=01-02
Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/29503.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/29503/head:pull/29503
PR: https://git.openjdk.org/jdk/pull/29503
More information about the security-dev
mailing list