Fix P11Cipher to throw BadPaddingException for PKCS11 CKR_ENCRYPTED_DATA_INVALID error

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • 27
    • Affects Version/s: 26
    • Component/s: security-libs
    • None

      test/jdk/sun/security/pkcs11/Cipher/TestPKCS5PaddingError.java is failing and shows as passed. discovered after converting to multiple `@test` and adding skipped exception

      Underlying issue: if provider returns `PKCS11Exception: CKR_ENCRYPTED_DATA_INVALID` instead of BadPaddingException - `java.security.ProviderException: doFinal()` is thrown.

            Assignee:
            Mikhail Yankelevich
            Reporter:
            Mikhail Yankelevich
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: