summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-07-31 14:15:52 +0200
committerDaiki Ueno <ueno@gnu.org>2017-08-01 14:07:43 +0200
commit2915740f447d0c17f8bcf5fdf4eccd82f2d9fd50 (patch)
treed79ceaaa3f2d820d22a66a219f29cfd7072648f1
parentdb1c3cd7eade9ec30163c394b37a4048d2e359af (diff)
pkcs11.h: added definitions of GOST mechanisms
This follows the definitions in PKCS#11 v2.40: http://docs.oasis-open.org/pkcs11/pkcs11-curr/v2.40/os/pkcs11-curr-v2.40-os.html
-rw-r--r--common/pkcs11.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/common/pkcs11.h b/common/pkcs11.h
index 13ce038..7189fa8 100644
--- a/common/pkcs11.h
+++ b/common/pkcs11.h
@@ -699,6 +699,18 @@ typedef unsigned long ck_mechanism_type_t;
#define CKM_DES3_CBC_ENCRYPT_DATA (0x1103UL)
#define CKM_AES_ECB_ENCRYPT_DATA (0x1104UL)
#define CKM_AES_CBC_ENCRYPT_DATA (0x1105UL)
+#define CKM_GOSTR3410_KEY_PAIR_GEN (0x1200UL)
+#define CKM_GOSTR3410 (0x1201UL)
+#define CKM_GOSTR3410_WITH_GOSTR3411 (0x1202UL)
+#define CKM_GOSTR3410_KEY_WRAP (0x1203UL)
+#define CKM_GOSTR3410_DERIVE (0x1204UL)
+#define CKM_GOSTR3411 (0x1210UL)
+#define CKM_GOSTR3411_HMAC (0x1211UL)
+#define CKM_GOST28147_KEY_GEN (0x1220UL)
+#define CKM_GOST28147_ECB (0x1221UL)
+#define CKM_GOST28147 (0x1222UL)
+#define CKM_GOST28147_MAC (0x1223UL)
+#define CKM_GOST28147_KEY_WRAP (0x1224UL)
#define CKM_DSA_PARAMETER_GEN (0x2000UL)
#define CKM_DH_PKCS_PARAMETER_GEN (0x2001UL)
#define CKM_X9_42_DH_PARAMETER_GEN (0x2002UL)