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

Internal PKCS5Padding impl should throw IllegalBlockSizeException and not BadPaddingException

    Details

    • Subcomponent:
    • Resolved In Build:
      b121
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        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).

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: