Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6687725

Internal PKCS5Padding impl should throw IllegalBlockSizeException and not BadPaddingException

XMLWordPrintable

    • b121
    • generic
    • generic
    • Verified

        The native PKCS11 mechanism which performs padding report error code equivalents to IllegalBlockSizeException when the padding bytes are missing. The internal PKCS5Padding impl used by SunPKCS11 provider should match this behavior so the same exception is thrown regardless whether users are using native PKCS11 mechs which supports padding or the combination of (native PKCS11 mechs which does NOT support padding + PKCS5Padding impl from SunPKCS11 provider).

              valeriep Valerie Peng
              valeriep Valerie Peng
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: