]> granicus.if.org Git - p11-kit/commitdiff
pkcs11: Make CK_RSA_PKCS_OAEP_PARAMS useful
authorDaiki Ueno <dueno@redhat.com>
Tue, 23 May 2017 09:55:25 +0000 (11:55 +0200)
committerDaiki Ueno <ueno@gnu.org>
Wed, 24 May 2017 09:27:28 +0000 (11:27 +0200)
common/pkcs11.h

index 357c9bb24892c22b4dbdd4600ce3a1a97b80c9b8..ad1cdec84557e3c5cf04dbbb81766bc0a79c5005 100644 (file)
@@ -738,6 +738,12 @@ struct ck_mechanism_info
   ck_flags_t flags;
 };
 
+#define CKG_MGF1_SHA1 0x00000001UL
+#define CKG_MGF1_SHA224 0x00000005UL
+#define CKG_MGF1_SHA256 0x00000002UL
+#define CKG_MGF1_SHA384 0x00000003UL
+#define CKG_MGF1_SHA512 0x00000004UL
+
 typedef unsigned long ck_rsa_pkcs_mgf_type_t;
 typedef unsigned long ck_rsa_pkcs_oaep_source_type_t;
 
@@ -1319,7 +1325,7 @@ typedef struct ck_function_list **CK_FUNCTION_LIST_PTR_PTR;
 typedef struct ck_c_initialize_args CK_C_INITIALIZE_ARGS;
 typedef struct ck_c_initialize_args *CK_C_INITIALIZE_ARGS_PTR;
 
-typedef struct ck_rsa_pkcs_oaep_params CK_RSA_PKCS_OAEP_PARAM;
+typedef struct ck_rsa_pkcs_oaep_params CK_RSA_PKCS_OAEP_PARAMS;
 typedef struct ck_rsa_pkcs_oaep_params *CK_RSA_PKCS_OAEP_PARAMS_PTR;
 
 #define NULL_PTR NULL