summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stefw@collabora.co.uk>2011-06-09 20:38:04 +0200
committerStef Walter <stefw@collabora.co.uk>2011-06-09 20:38:04 +0200
commitb1b62f1b0856821d046ed92be076f9b9f8c664a9 (patch)
treeb148d841880b9594b8bf0e191e718806b02e1256
parent6d36c108a0f00f7485967b528b2a9f7c22173a5b (diff)
downloadp11-kit-b1b62f1b0856821d046ed92be076f9b9f8c664a9.tar.gz
Update pkcs11.h with PKCS#11 2.20 ammendments.
-rw-r--r--p11-kit/pkcs11.h22
1 files 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