SunPKCS11 throws ProviderException on invalid curves

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • 10
    • Affects Version/s: 9
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: