diff --git a/src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/SunPKCS11.java b/src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/SunPKCS11.java index 5cf588da22b..562a6093455 100644 --- a/src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/SunPKCS11.java +++ b/src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/SunPKCS11.java @@ -874,7 +874,7 @@ private static void register(Descriptor d) { d(KPG, "DH", P11KeyPairGenerator, dhAlias, m(CKM_DH_PKCS_KEY_PAIR_GEN)); - d(KPG, "EC", P11KeyPairGenerator, + dA(KPG, "EC", P11KeyPairGenerator, m(CKM_EC_KEY_PAIR_GEN)); dA(KG, "ARCFOUR", P11KeyGenerator, @@ -924,7 +924,7 @@ private static void register(Descriptor d) { d(KF, "DH", P11DHKeyFactory, dhAlias, m(CKM_DH_PKCS_KEY_PAIR_GEN, CKM_DH_PKCS_DERIVE)); - d(KF, "EC", P11ECKeyFactory, + dA(KF, "EC", P11ECKeyFactory, m(CKM_EC_KEY_PAIR_GEN, CKM_ECDH1_DERIVE, CKM_ECDSA, CKM_ECDSA_SHA1));