From b1b62f1b0856821d046ed92be076f9b9f8c664a9 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Thu, 9 Jun 2011 20:38:04 +0200 Subject: Update pkcs11.h with PKCS#11 2.20 ammendments. --- p11-kit/pkcs11.h | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/p11-kit/pkcs11.h b/p11-kit/pkcs11.h index b8be30f..4b7efe5 100644 --- a/p11-kit/pkcs11.h +++ b/p11-kit/pkcs11.h @@ -95,7 +95,7 @@ extern "C" { #endif - + #ifdef CRYPTOKI_COMPAT /* If we are in compatibility mode, switch all exposed names to the PKCS #11 variant. There are corresponding #undefs below. */ @@ -181,7 +181,7 @@ extern "C" { #endif /* CRYPTOKI_COMPAT */ - + typedef unsigned long ck_flags_t; @@ -674,6 +674,22 @@ typedef unsigned long ck_mechanism_type_t; #define CKM_X9_42_DH_PARAMETER_GEN (0x2002UL) #define CKM_VENDOR_DEFINED ((unsigned long) (1UL << 31)) +/* Ammendments */ +#define CKM_SHA224 (0x255UL) +#define CKM_SHA224_HMAC (0x256UL) +#define CKM_SHA224_HMAC_GENERAL (0x257UL) +#define CKM_SHA224_RSA_PKCS (0x46UL) +#define CKM_SHA224_RSA_PKCS_PSS (0x47UL) +#define CKM_SHA224_KEY_DERIVATION (0x396UL) + +#define CKM_CAMELLIA_KEY_GEN (0x550UL) +#define CKM_CAMELLIA_ECB (0x551UL) +#define CKM_CAMELLIA_CBC (0x552UL) +#define CKM_CAMELLIA_MAC (0x553UL) +#define CKM_CAMELLIA_MAC_GENERAL (0x554UL) +#define CKM_CAMELLIA_CBC_PAD (0x555UL) +#define CKM_CAMELLIA_ECB_ENCRYPT_DATA (0x556UL) +#define CKM_CAMELLIA_CBC_ENCRYPT_DATA (0x557UL) struct ck_mechanism { @@ -1182,7 +1198,7 @@ struct ck_c_initialize_args #define CKR_VENDOR_DEFINED ((unsigned long) (1UL << 31)) - + /* Compatibility layer. */ #ifdef CRYPTOKI_COMPAT -- cgit v1.1