RFR: 8365883: Fix P11Cipher to throw BadPaddingException for PKCS11 CKR_ENCRYPTED_DATA_INVALID error [v4]

Valerie Peng valeriep at openjdk.org
Wed Feb 4 18:16:12 UTC 2026


On Wed, 4 Feb 2026 12:06:14 GMT, Mikhail Yankelevich <myankelevich at openjdk.org> wrote:

>> 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:
> 
>   test comments

Changes look good to me. Thanks~

-------------

Marked as reviewed by valeriep (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/29503#pullrequestreview-3752579986



More information about the security-dev mailing list