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

SunPKCS11 throws ProviderException on invalid curves

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P4
    • Resolution: Duplicate
    • 9
    • 10
    • security-libs
    • None

    Description

      When attempting to generate a key pair for an elliptic curve that is not supported, the SunPKCS11 provider will throw a ProviderException because the API returns CKR_BUFFER_TOO_SMALL. This happens only for curves that are present in sun.security.util.CurveDB, but not supported by the SunPKCS11 provider or the token. The correct behavior is for initialize() to throw an InvalidAlgorithmParameterException.

      Attachments

        Issue Links

          Activity

            People

              apetcher Adam Petcher (Inactive)
              apetcher Adam Petcher (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: