Skip to content

Commit 0875de8

Browse files
Bob DuBob Du
authored andcommitted
Remove support for EC aliases in SunPKCS11
Reverting a previous commit (8ddd8d7) that added support for EC aliases in KeyFactory and KeyPairGenerator for SunPKCS11. This was previously supported in Java 8 on Z by the IBMPKCS11Impl provider. However, an openjdk contributer noted that OID is not commonly used for the KeyFactory and KeyGenerator services. Instead, the standard "EC" string should be used as an input to generate EC keys. Given the upstream stance, no requests for continuing this support, and the availability of an alternative, this change should be removed. Signed-off-by: Bob Du <[email protected]>
1 parent df3dbea commit 0875de8

File tree

1 file changed

+3
-3
lines changed
  • src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11

1 file changed

+3
-3
lines changed

src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/SunPKCS11.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
/*
2727
* ===========================================================================
28-
* (c) Copyright IBM Corp. 2022, 2024 All Rights Reserved
28+
* (c) Copyright IBM Corp. 2022, 2025 All Rights Reserved
2929
* ===========================================================================
3030
*/
3131

@@ -868,7 +868,7 @@ private static void register(Descriptor d) {
868868
d(KPG, "DH", P11KeyPairGenerator,
869869
dhAlias,
870870
m(CKM_DH_PKCS_KEY_PAIR_GEN));
871-
dA(KPG, "EC", P11KeyPairGenerator,
871+
d(KPG, "EC", P11KeyPairGenerator,
872872
m(CKM_EC_KEY_PAIR_GEN));
873873

874874
dA(KG, "ARCFOUR", P11KeyGenerator,
@@ -918,7 +918,7 @@ private static void register(Descriptor d) {
918918
d(KF, "DH", P11DHKeyFactory,
919919
dhAlias,
920920
m(CKM_DH_PKCS_KEY_PAIR_GEN, CKM_DH_PKCS_DERIVE));
921-
dA(KF, "EC", P11ECKeyFactory,
921+
d(KF, "EC", P11ECKeyFactory,
922922
m(CKM_EC_KEY_PAIR_GEN, CKM_ECDH1_DERIVE,
923923
CKM_ECDSA, CKM_ECDSA_SHA1));
924924

0 commit comments

Comments
 (0)