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

SunPKCS11 throws ProviderException on invalid curves

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: