Details
-
Bug
-
Status: Closed
-
P4
-
Resolution: Duplicate
-
9
-
None
-
solaris
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
- duplicates
-
JDK-8184290 SunPKCS11 throws ProviderException for unsupported curves
-
- Resolved
-