Skip to content

Commit

Permalink
Add support for EC aliases in SunPKCS11
Browse files Browse the repository at this point in the history
Allow EC aliases to be used for KeyFactory and KeyPairGenerator  in SunPKCS11

Signed-off-by: Bob Du <bob.du@ibm.com>
  • Loading branch information
Bob Du authored and Bob Du committed Sep 29, 2024
1 parent 4d66474 commit 8ddd8d7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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));

Expand Down

0 comments on commit 8ddd8d7

Please sign in to comment.