Blame SOURCES/0002-EP11-Do-not-report-DSA-DH-parameter-generation-as-be.patch

253609
From 8310482e5c46d6a15894c4d3ebf8156264175282 Mon Sep 17 00:00:00 2001
253609
From: Ingo Franzki <ifranzki@linux.ibm.com>
253609
Date: Wed, 12 Oct 2022 09:00:51 +0200
253609
Subject: [PATCH 02/34] EP11: Do not report DSA/DH parameter generation as
253609
 being supported
253609
253609
Mechanisms CKM_DSA_PARAMETER_GEN and CKM_DH_PKCS_PARAMETER_GEN were
253609
reported to be supported in the mechanism list of the EP11 token, but
253609
they never were really supported in the code.
253609
253609
Remove them from the mechanism list.
253609
253609
Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
253609
---
253609
 usr/lib/ep11_stdll/ep11_specific.c | 3 ---
253609
 1 file changed, 3 deletions(-)
253609
253609
diff --git a/usr/lib/ep11_stdll/ep11_specific.c b/usr/lib/ep11_stdll/ep11_specific.c
253609
index 5d7c5607..737b373b 100644
253609
--- a/usr/lib/ep11_stdll/ep11_specific.c
253609
+++ b/usr/lib/ep11_stdll/ep11_specific.c
253609
@@ -6669,7 +6669,6 @@ CK_RV ep11tok_generate_key_pair(STDLL_TokData_t * tokdata, SESSION * sess,
253609
                                      public_key_obj->template,
253609
                                      private_key_obj->template);
253609
         break;
253609
-    case CKM_DSA_PARAMETER_GEN:
253609
     case CKM_DSA_KEY_PAIR_GEN:
253609
         rc = dsa_generate_keypair(tokdata, sess, pMechanism,
253609
                                   public_key_obj->template,
253609
@@ -9042,10 +9041,8 @@ static const CK_MECHANISM_TYPE ep11_supported_mech_list[] = {
253609
     CKM_DES3_KEY_GEN,
253609
     CKM_DH_PKCS_DERIVE,
253609
     CKM_DH_PKCS_KEY_PAIR_GEN,
253609
-    CKM_DH_PKCS_PARAMETER_GEN,
253609
     CKM_DSA,
253609
     CKM_DSA_KEY_PAIR_GEN,
253609
-    CKM_DSA_PARAMETER_GEN,
253609
     CKM_DSA_SHA1,
253609
     CKM_EC_KEY_PAIR_GEN,
253609
     CKM_ECDH1_DERIVE,
253609
-- 
253609
2.16.2.windows.1
253609