Blame SOURCES/p11-kit-oaep.patch

1be8c9
From c11a951a24b91f80e109951b0fe2ce418ea70f17 Mon Sep 17 00:00:00 2001
1be8c9
From: Daiki Ueno <dueno@redhat.com>
1be8c9
Date: Tue, 23 May 2017 11:55:25 +0200
1be8c9
Subject: [PATCH] pkcs11: Make CK_RSA_PKCS_OAEP_PARAMS useful
1be8c9
1be8c9
---
1be8c9
 common/pkcs11.h | 8 +++++++-
1be8c9
 1 file changed, 7 insertions(+), 1 deletion(-)
1be8c9
1be8c9
diff --git a/common/pkcs11.h b/common/pkcs11.h
1be8c9
index 357c9bb..ad1cdec 100644
1be8c9
--- a/common/pkcs11.h
1be8c9
+++ b/common/pkcs11.h
1be8c9
@@ -738,6 +738,12 @@ struct ck_mechanism_info
1be8c9
   ck_flags_t flags;
1be8c9
 };
1be8c9
 
1be8c9
+#define CKG_MGF1_SHA1 0x00000001UL
1be8c9
+#define CKG_MGF1_SHA224 0x00000005UL
1be8c9
+#define CKG_MGF1_SHA256 0x00000002UL
1be8c9
+#define CKG_MGF1_SHA384 0x00000003UL
1be8c9
+#define CKG_MGF1_SHA512 0x00000004UL
1be8c9
+
1be8c9
 typedef unsigned long ck_rsa_pkcs_mgf_type_t;
1be8c9
 typedef unsigned long ck_rsa_pkcs_oaep_source_type_t;
1be8c9
 
1be8c9
@@ -1319,7 +1325,7 @@ typedef struct ck_function_list **CK_FUNCTION_LIST_PTR_PTR;
1be8c9
 typedef struct ck_c_initialize_args CK_C_INITIALIZE_ARGS;
1be8c9
 typedef struct ck_c_initialize_args *CK_C_INITIALIZE_ARGS_PTR;
1be8c9
 
1be8c9
-typedef struct ck_rsa_pkcs_oaep_params CK_RSA_PKCS_OAEP_PARAM;
1be8c9
+typedef struct ck_rsa_pkcs_oaep_params CK_RSA_PKCS_OAEP_PARAMS;
1be8c9
 typedef struct ck_rsa_pkcs_oaep_params *CK_RSA_PKCS_OAEP_PARAMS_PTR;
1be8c9
 
1be8c9
 #define NULL_PTR NULL
1be8c9
-- 
1be8c9
2.9.4
1be8c9