From 5eb2326d1a7c8b02d83ac5149536a93802239249 Mon Sep 17 00:00:00 2001 From: Bob-Du Date: Wed, 24 Jan 2024 14:52:50 -0500 Subject: [PATCH] Check aliases for KeyFactory with EC --- .../share/classes/sun/security/pkcs11/SunPKCS11.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 8be24e2e444..7c286935d20 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 @@ -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));