]> granicus.if.org Git - p11-kit/commitdiff
Update pkcs11.h with PKCS#11 2.20 ammendments.
authorStef Walter <stefw@collabora.co.uk>
Thu, 9 Jun 2011 18:38:04 +0000 (20:38 +0200)
committerStef Walter <stefw@collabora.co.uk>
Thu, 9 Jun 2011 18:38:04 +0000 (20:38 +0200)
p11-kit/pkcs11.h

index b8be30fa9010e810ac201352a5781ca1a96ba25c..4b7efe581b19546f259887adfc9c841bdedff011 100644 (file)
@@ -95,7 +95,7 @@ extern "C" {
 
 #endif
 
-\f
+
 #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 */
 
-\f
+
 
 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))
 
 
-\f
+
 /* Compatibility layer.  */
 
 #ifdef CRYPTOKI_COMPAT