From 3b484b87e13e52873ea48f920132ecd96cb79cbc Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Tue, 23 May 2017 11:51:03 +0200 Subject: pkcs11: Define RSA-PSS mechanism parameter --- common/pkcs11.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/common/pkcs11.h b/common/pkcs11.h index ad1cdec..13ce038 100644 --- a/common/pkcs11.h +++ b/common/pkcs11.h @@ -179,6 +179,7 @@ extern "C" { #define ck_rsa_pkcs_mgf_type_t CK_RSA_PKCS_MGF_TYPE #define ck_rsa_pkcs_oaep_source_type_t CK_RSA_PKCS_OAEP_SOURCE_TYPE #define hash_alg hashAlg +#define s_len sLen #define source_data pSourceData #define source_data_len ulSourceDataLen @@ -745,6 +746,13 @@ struct ck_mechanism_info #define CKG_MGF1_SHA512 0x00000004UL typedef unsigned long ck_rsa_pkcs_mgf_type_t; + +struct ck_rsa_pkcs_pss_params { + ck_mechanism_type_t hash_alg; + ck_rsa_pkcs_mgf_type_t mgf; + unsigned long s_len; +}; + typedef unsigned long ck_rsa_pkcs_oaep_source_type_t; struct ck_rsa_pkcs_oaep_params { @@ -1325,6 +1333,9 @@ 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_pss_params CK_RSA_PKCS_PSS_PARAMS; +typedef struct ck_rsa_pkcs_pss_params *CK_RSA_PKCS_PSS_PARAMS_PTR; + 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; -- cgit v1.1