summaryrefslogtreecommitdiff
path: root/common/pkcs11.h
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@redhat.com>2017-05-23 11:51:03 +0200
committerDaiki Ueno <ueno@gnu.org>2017-05-24 11:27:28 +0200
commit3b484b87e13e52873ea48f920132ecd96cb79cbc (patch)
tree27617cf231b05a38f6794e843e6ff016d86d2006 /common/pkcs11.h
parentc11a951a24b91f80e109951b0fe2ce418ea70f17 (diff)
pkcs11: Define RSA-PSS mechanism parameter
Diffstat (limited to 'common/pkcs11.h')
-rw-r--r--common/pkcs11.h11
1 files changed, 11 insertions, 0 deletions
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;