Go to the documentation of this file.
56#if defined(__cplusplus)
66#define CRYPTOKI_VERSION_MAJOR 2
67#define CRYPTOKI_VERSION_MINOR 20
68#define CRYPTOKI_VERSION_REVISION 6
74#ifndef CRYPTOKI_COMPAT
75#define CRYPTOKI_COMPAT 1
81#if defined(_WIN32) || defined(CRYPTOKI_FORCE_WIN32)
84#pragma pack(push, cryptoki, 1)
86#ifdef CRYPTOKI_EXPORTS
87#define CK_SPEC __declspec(dllexport)
89#define CK_SPEC __declspec(dllimport)
103#define ck_flags_t CK_FLAGS
104#define ck_version _CK_VERSION
106#define ck_info _CK_INFO
107#define cryptoki_version cryptokiVersion
108#define manufacturer_id manufacturerID
109#define library_description libraryDescription
110#define library_version libraryVersion
112#define ck_notification_t CK_NOTIFICATION
113#define ck_slot_id_t CK_SLOT_ID
115#define ck_slot_info _CK_SLOT_INFO
116#define slot_description slotDescription
117#define hardware_version hardwareVersion
118#define firmware_version firmwareVersion
120#define ck_token_info _CK_TOKEN_INFO
121#define serial_number serialNumber
122#define max_session_count ulMaxSessionCount
123#define session_count ulSessionCount
124#define max_rw_session_count ulMaxRwSessionCount
125#define rw_session_count ulRwSessionCount
126#define max_pin_len ulMaxPinLen
127#define min_pin_len ulMinPinLen
128#define total_public_memory ulTotalPublicMemory
129#define free_public_memory ulFreePublicMemory
130#define total_private_memory ulTotalPrivateMemory
131#define free_private_memory ulFreePrivateMemory
132#define utc_time utcTime
134#define ck_session_handle_t CK_SESSION_HANDLE
135#define ck_user_type_t CK_USER_TYPE
136#define ck_state_t CK_STATE
138#define ck_session_info _CK_SESSION_INFO
139#define slot_id slotID
140#define device_error ulDeviceError
142#define ck_object_handle_t CK_OBJECT_HANDLE
143#define ck_object_class_t CK_OBJECT_CLASS
144#define ck_hw_feature_type_t CK_HW_FEATURE_TYPE
145#define ck_key_type_t CK_KEY_TYPE
146#define ck_certificate_type_t CK_CERTIFICATE_TYPE
147#define ck_attribute_type_t CK_ATTRIBUTE_TYPE
149#define ck_attribute _CK_ATTRIBUTE
151#define value_len ulValueLen
153#define ck_date _CK_DATE
155#define ck_mechanism_type_t CK_MECHANISM_TYPE
157#define ck_mechanism _CK_MECHANISM
158#define parameter pParameter
159#define parameter_len ulParameterLen
161#define ck_mechanism_info _CK_MECHANISM_INFO
162#define min_key_size ulMinKeySize
163#define max_key_size ulMaxKeySize
166#define ck_notify_t CK_NOTIFY
168#define ck_function_list _CK_FUNCTION_LIST
170#define ck_createmutex_t CK_CREATEMUTEX
171#define ck_destroymutex_t CK_DESTROYMUTEX
172#define ck_lockmutex_t CK_LOCKMUTEX
173#define ck_unlockmutex_t CK_UNLOCKMUTEX
175#define ck_c_initialize_args _CK_C_INITIALIZE_ARGS
176#define create_mutex CreateMutex
177#define destroy_mutex DestroyMutex
178#define lock_mutex LockMutex
179#define unlock_mutex UnlockMutex
180#define reserved pReserved
207#define CKN_SURRENDER (0)
223#define CKF_TOKEN_PRESENT (1 << 0)
224#define CKF_REMOVABLE_DEVICE (1 << 1)
225#define CKF_HW_SLOT (1 << 2)
226#define CKF_ARRAY_ATTRIBUTE (1 << 30)
252#define CKF_RNG (1 << 0)
253#define CKF_WRITE_PROTECTED (1 << 1)
254#define CKF_LOGIN_REQUIRED (1 << 2)
255#define CKF_USER_PIN_INITIALIZED (1 << 3)
256#define CKF_RESTORE_KEY_NOT_NEEDED (1 << 5)
257#define CKF_CLOCK_ON_TOKEN (1 << 6)
258#define CKF_PROTECTED_AUTHENTICATION_PATH (1 << 8)
259#define CKF_DUAL_CRYPTO_OPERATIONS (1 << 9)
260#define CKF_TOKEN_INITIALIZED (1 << 10)
261#define CKF_SECONDARY_AUTHENTICATION (1 << 11)
262#define CKF_USER_PIN_COUNT_LOW (1 << 16)
263#define CKF_USER_PIN_FINAL_TRY (1 << 17)
264#define CKF_USER_PIN_LOCKED (1 << 18)
265#define CKF_USER_PIN_TO_BE_CHANGED (1 << 19)
266#define CKF_SO_PIN_COUNT_LOW (1 << 20)
267#define CKF_SO_PIN_FINAL_TRY (1 << 21)
268#define CKF_SO_PIN_LOCKED (1 << 22)
269#define CKF_SO_PIN_TO_BE_CHANGED (1 << 23)
271#define CK_UNAVAILABLE_INFORMATION ((unsigned long) -1)
272#define CK_EFFECTIVELY_INFINITE (0)
277#define CK_INVALID_HANDLE (0)
284#define CKU_CONTEXT_SPECIFIC (2)
289#define CKS_RO_PUBLIC_SESSION (0)
290#define CKS_RO_USER_FUNCTIONS (1)
291#define CKS_RW_PUBLIC_SESSION (2)
292#define CKS_RW_USER_FUNCTIONS (3)
293#define CKS_RW_SO_FUNCTIONS (4)
304#define CKF_RW_SESSION (1 << 1)
305#define CKF_SERIAL_SESSION (1 << 2)
314#define CKO_CERTIFICATE (1)
315#define CKO_PUBLIC_KEY (2)
316#define CKO_PRIVATE_KEY (3)
317#define CKO_SECRET_KEY (4)
318#define CKO_HW_FEATURE (5)
319#define CKO_DOMAIN_PARAMETERS (6)
320#define CKO_MECHANISM (7)
321#define CKO_VENDOR_DEFINED ((unsigned long) (1 << 31))
326#define CKH_MONOTONIC_COUNTER (1)
328#define CKH_USER_INTERFACE (3)
329#define CKH_VENDOR_DEFINED ((unsigned long) (1 << 31))
339#define CKK_X9_42_DH (4)
341#define CKK_GENERIC_SECRET (0x10)
342#define CKK_RC2 (0x11)
343#define CKK_RC4 (0x12)
344#define CKK_DES (0x13)
345#define CKK_DES2 (0x14)
346#define CKK_DES3 (0x15)
347#define CKK_CAST (0x16)
348#define CKK_CAST3 (0x17)
349#define CKK_CAST128 (0x18)
350#define CKK_RC5 (0x19)
351#define CKK_IDEA (0x1a)
352#define CKK_SKIPJACK (0x1b)
353#define CKK_BATON (0x1c)
354#define CKK_JUNIPER (0x1d)
355#define CKK_CDMF (0x1e)
356#define CKK_AES (0x1f)
357#define CKK_BLOWFISH (0x20)
358#define CKK_TWOFISH (0x21)
359#define CKK_GOSTR3410 (0x30)
360#define CKK_EC_EDWARDS (0x40)
361#define CKK_VENDOR_DEFINED ((unsigned long) (1 << 31))
367#define CKC_X_509_ATTR_CERT (1)
369#define CKC_VENDOR_DEFINED ((unsigned long) (1 << 31))
376#define CKA_PRIVATE (2)
378#define CKA_APPLICATION (0x10)
379#define CKA_VALUE (0x11)
380#define CKA_OBJECT_ID (0x12)
381#define CKA_CERTIFICATE_TYPE (0x80)
382#define CKA_ISSUER (0x81)
383#define CKA_SERIAL_NUMBER (0x82)
384#define CKA_AC_ISSUER (0x83)
385#define CKA_OWNER (0x84)
386#define CKA_ATTR_TYPES (0x85)
387#define CKA_TRUSTED (0x86)
388#define CKA_CERTIFICATE_CATEGORY (0x87)
389#define CKA_JAVA_MIDP_SECURITY_DOMAIN (0x88)
390#define CKA_URL (0x89)
391#define CKA_HASH_OF_SUBJECT_PUBLIC_KEY (0x8a)
392#define CKA_HASH_OF_ISSUER_PUBLIC_KEY (0x8b)
393#define CKA_CHECK_VALUE (0x90)
394#define CKA_KEY_TYPE (0x100)
395#define CKA_SUBJECT (0x101)
396#define CKA_ID (0x102)
397#define CKA_SENSITIVE (0x103)
398#define CKA_ENCRYPT (0x104)
399#define CKA_DECRYPT (0x105)
400#define CKA_WRAP (0x106)
401#define CKA_UNWRAP (0x107)
402#define CKA_SIGN (0x108)
403#define CKA_SIGN_RECOVER (0x109)
404#define CKA_VERIFY (0x10a)
405#define CKA_VERIFY_RECOVER (0x10b)
406#define CKA_DERIVE (0x10c)
407#define CKA_START_DATE (0x110)
408#define CKA_END_DATE (0x111)
409#define CKA_MODULUS (0x120)
410#define CKA_MODULUS_BITS (0x121)
411#define CKA_PUBLIC_EXPONENT (0x122)
412#define CKA_PRIVATE_EXPONENT (0x123)
413#define CKA_PRIME_1 (0x124)
414#define CKA_PRIME_2 (0x125)
415#define CKA_EXPONENT_1 (0x126)
416#define CKA_EXPONENT_2 (0x127)
417#define CKA_COEFFICIENT (0x128)
418#define CKA_PRIME (0x130)
419#define CKA_SUBPRIME (0x131)
420#define CKA_BASE (0x132)
421#define CKA_PRIME_BITS (0x133)
422#define CKA_SUB_PRIME_BITS (0x134)
423#define CKA_VALUE_BITS (0x160)
424#define CKA_VALUE_LEN (0x161)
425#define CKA_EXTRACTABLE (0x162)
426#define CKA_LOCAL (0x163)
427#define CKA_NEVER_EXTRACTABLE (0x164)
428#define CKA_ALWAYS_SENSITIVE (0x165)
429#define CKA_KEY_GEN_MECHANISM (0x166)
430#define CKA_MODIFIABLE (0x170)
431#define CKA_ECDSA_PARAMS (0x180)
432#define CKA_EC_PARAMS (0x180)
433#define CKA_EC_POINT (0x181)
434#define CKA_SECONDARY_AUTH (0x200)
435#define CKA_AUTH_PIN_FLAGS (0x201)
436#define CKA_ALWAYS_AUTHENTICATE (0x202)
437#define CKA_WRAP_WITH_TRUSTED (0x210)
438#define CKA_GOSTR3410PARAMS (0x250)
439#define CKA_GOSTR3411PARAMS (0x251)
440#define CKA_HW_FEATURE_TYPE (0x300)
441#define CKA_RESET_ON_INIT (0x301)
442#define CKA_HAS_RESET (0x302)
443#define CKA_PIXEL_X (0x400)
444#define CKA_PIXEL_Y (0x401)
445#define CKA_RESOLUTION (0x402)
446#define CKA_CHAR_ROWS (0x403)
447#define CKA_CHAR_COLUMNS (0x404)
448#define CKA_COLOR (0x405)
449#define CKA_BITS_PER_PIXEL (0x406)
450#define CKA_CHAR_SETS (0x480)
451#define CKA_ENCODING_METHODS (0x481)
452#define CKA_MIME_TYPES (0x482)
453#define CKA_MECHANISM_TYPE (0x500)
454#define CKA_REQUIRED_CMS_ATTRIBUTES (0x501)
455#define CKA_DEFAULT_CMS_ATTRIBUTES (0x502)
456#define CKA_SUPPORTED_CMS_ATTRIBUTES (0x503)
457#define CKA_WRAP_TEMPLATE (CKF_ARRAY_ATTRIBUTE | 0x211)
458#define CKA_UNWRAP_TEMPLATE (CKF_ARRAY_ATTRIBUTE | 0x212)
459#define CKA_ALLOWED_MECHANISMS (CKF_ARRAY_ATTRIBUTE | 0x600)
460#define CKA_VENDOR_DEFINED ((unsigned long) (1 << 31))
481#define CKM_RSA_PKCS_KEY_PAIR_GEN (0)
482#define CKM_RSA_PKCS (1)
483#define CKM_RSA_9796 (2)
484#define CKM_RSA_X_509 (3)
485#define CKM_MD2_RSA_PKCS (4)
486#define CKM_MD5_RSA_PKCS (5)
487#define CKM_SHA1_RSA_PKCS (6)
488#define CKM_RIPEMD128_RSA_PKCS (7)
489#define CKM_RIPEMD160_RSA_PKCS (8)
490#define CKM_RSA_PKCS_OAEP (9)
491#define CKM_RSA_X9_31_KEY_PAIR_GEN (0xa)
492#define CKM_RSA_X9_31 (0xb)
493#define CKM_SHA1_RSA_X9_31 (0xc)
494#define CKM_RSA_PKCS_PSS (0xd)
495#define CKM_SHA1_RSA_PKCS_PSS (0xe)
496#define CKM_DSA_KEY_PAIR_GEN (0x10)
497#define CKM_DSA (0x11)
498#define CKM_DSA_SHA1 (0x12)
499#define CKM_DH_PKCS_KEY_PAIR_GEN (0x20)
500#define CKM_DH_PKCS_DERIVE (0x21)
501#define CKM_X9_42_DH_KEY_PAIR_GEN (0x30)
502#define CKM_X9_42_DH_DERIVE (0x31)
503#define CKM_X9_42_DH_HYBRID_DERIVE (0x32)
504#define CKM_X9_42_MQV_DERIVE (0x33)
505#define CKM_SHA256_RSA_PKCS (0x40)
506#define CKM_SHA384_RSA_PKCS (0x41)
507#define CKM_SHA512_RSA_PKCS (0x42)
508#define CKM_SHA256_RSA_PKCS_PSS (0x43)
509#define CKM_SHA384_RSA_PKCS_PSS (0x44)
510#define CKM_SHA512_RSA_PKCS_PSS (0x45)
511#define CKM_RC2_KEY_GEN (0x100)
512#define CKM_RC2_ECB (0x101)
513#define CKM_RC2_CBC (0x102)
514#define CKM_RC2_MAC (0x103)
515#define CKM_RC2_MAC_GENERAL (0x104)
516#define CKM_RC2_CBC_PAD (0x105)
517#define CKM_RC4_KEY_GEN (0x110)
518#define CKM_RC4 (0x111)
519#define CKM_DES_KEY_GEN (0x120)
520#define CKM_DES_ECB (0x121)
521#define CKM_DES_CBC (0x122)
522#define CKM_DES_MAC (0x123)
523#define CKM_DES_MAC_GENERAL (0x124)
524#define CKM_DES_CBC_PAD (0x125)
525#define CKM_DES2_KEY_GEN (0x130)
526#define CKM_DES3_KEY_GEN (0x131)
527#define CKM_DES3_ECB (0x132)
528#define CKM_DES3_CBC (0x133)
529#define CKM_DES3_MAC (0x134)
530#define CKM_DES3_MAC_GENERAL (0x135)
531#define CKM_DES3_CBC_PAD (0x136)
532#define CKM_CDMF_KEY_GEN (0x140)
533#define CKM_CDMF_ECB (0x141)
534#define CKM_CDMF_CBC (0x142)
535#define CKM_CDMF_MAC (0x143)
536#define CKM_CDMF_MAC_GENERAL (0x144)
537#define CKM_CDMF_CBC_PAD (0x145)
538#define CKM_MD2 (0x200)
539#define CKM_MD2_HMAC (0x201)
540#define CKM_MD2_HMAC_GENERAL (0x202)
541#define CKM_MD5 (0x210)
542#define CKM_MD5_HMAC (0x211)
543#define CKM_MD5_HMAC_GENERAL (0x212)
544#define CKM_SHA_1 (0x220)
545#define CKM_SHA_1_HMAC (0x221)
546#define CKM_SHA_1_HMAC_GENERAL (0x222)
547#define CKM_RIPEMD128 (0x230)
548#define CKM_RIPEMD128_HMAC (0x231)
549#define CKM_RIPEMD128_HMAC_GENERAL (0x232)
550#define CKM_RIPEMD160 (0x240)
551#define CKM_RIPEMD160_HMAC (0x241)
552#define CKM_RIPEMD160_HMAC_GENERAL (0x242)
553#define CKM_SHA256 (0x250)
554#define CKM_SHA256_HMAC (0x251)
555#define CKM_SHA256_HMAC_GENERAL (0x252)
556#define CKM_SHA384 (0x260)
557#define CKM_SHA384_HMAC (0x261)
558#define CKM_SHA384_HMAC_GENERAL (0x262)
559#define CKM_SHA512 (0x270)
560#define CKM_SHA512_HMAC (0x271)
561#define CKM_SHA512_HMAC_GENERAL (0x272)
562#define CKM_CAST_KEY_GEN (0x300)
563#define CKM_CAST_ECB (0x301)
564#define CKM_CAST_CBC (0x302)
565#define CKM_CAST_MAC (0x303)
566#define CKM_CAST_MAC_GENERAL (0x304)
567#define CKM_CAST_CBC_PAD (0x305)
568#define CKM_CAST3_KEY_GEN (0x310)
569#define CKM_CAST3_ECB (0x311)
570#define CKM_CAST3_CBC (0x312)
571#define CKM_CAST3_MAC (0x313)
572#define CKM_CAST3_MAC_GENERAL (0x314)
573#define CKM_CAST3_CBC_PAD (0x315)
574#define CKM_CAST5_KEY_GEN (0x320)
575#define CKM_CAST128_KEY_GEN (0x320)
576#define CKM_CAST5_ECB (0x321)
577#define CKM_CAST128_ECB (0x321)
578#define CKM_CAST5_CBC (0x322)
579#define CKM_CAST128_CBC (0x322)
580#define CKM_CAST5_MAC (0x323)
581#define CKM_CAST128_MAC (0x323)
582#define CKM_CAST5_MAC_GENERAL (0x324)
583#define CKM_CAST128_MAC_GENERAL (0x324)
584#define CKM_CAST5_CBC_PAD (0x325)
585#define CKM_CAST128_CBC_PAD (0x325)
586#define CKM_RC5_KEY_GEN (0x330)
587#define CKM_RC5_ECB (0x331)
588#define CKM_RC5_CBC (0x332)
589#define CKM_RC5_MAC (0x333)
590#define CKM_RC5_MAC_GENERAL (0x334)
591#define CKM_RC5_CBC_PAD (0x335)
592#define CKM_IDEA_KEY_GEN (0x340)
593#define CKM_IDEA_ECB (0x341)
594#define CKM_IDEA_CBC (0x342)
595#define CKM_IDEA_MAC (0x343)
596#define CKM_IDEA_MAC_GENERAL (0x344)
597#define CKM_IDEA_CBC_PAD (0x345)
598#define CKM_GENERIC_SECRET_KEY_GEN (0x350)
599#define CKM_CONCATENATE_BASE_AND_KEY (0x360)
600#define CKM_CONCATENATE_BASE_AND_DATA (0x362)
601#define CKM_CONCATENATE_DATA_AND_BASE (0x363)
602#define CKM_XOR_BASE_AND_DATA (0x364)
603#define CKM_EXTRACT_KEY_FROM_KEY (0x365)
604#define CKM_SSL3_PRE_MASTER_KEY_GEN (0x370)
605#define CKM_SSL3_MASTER_KEY_DERIVE (0x371)
606#define CKM_SSL3_KEY_AND_MAC_DERIVE (0x372)
607#define CKM_SSL3_MASTER_KEY_DERIVE_DH (0x373)
608#define CKM_TLS_PRE_MASTER_KEY_GEN (0x374)
609#define CKM_TLS_MASTER_KEY_DERIVE (0x375)
610#define CKM_TLS_KEY_AND_MAC_DERIVE (0x376)
611#define CKM_TLS_MASTER_KEY_DERIVE_DH (0x377)
612#define CKM_SSL3_MD5_MAC (0x380)
613#define CKM_SSL3_SHA1_MAC (0x381)
614#define CKM_MD5_KEY_DERIVATION (0x390)
615#define CKM_MD2_KEY_DERIVATION (0x391)
616#define CKM_SHA1_KEY_DERIVATION (0x392)
617#define CKM_PBE_MD2_DES_CBC (0x3a0)
618#define CKM_PBE_MD5_DES_CBC (0x3a1)
619#define CKM_PBE_MD5_CAST_CBC (0x3a2)
620#define CKM_PBE_MD5_CAST3_CBC (0x3a3)
621#define CKM_PBE_MD5_CAST5_CBC (0x3a4)
622#define CKM_PBE_MD5_CAST128_CBC (0x3a4)
623#define CKM_PBE_SHA1_CAST5_CBC (0x3a5)
624#define CKM_PBE_SHA1_CAST128_CBC (0x3a5)
625#define CKM_PBE_SHA1_RC4_128 (0x3a6)
626#define CKM_PBE_SHA1_RC4_40 (0x3a7)
627#define CKM_PBE_SHA1_DES3_EDE_CBC (0x3a8)
628#define CKM_PBE_SHA1_DES2_EDE_CBC (0x3a9)
629#define CKM_PBE_SHA1_RC2_128_CBC (0x3aa)
630#define CKM_PBE_SHA1_RC2_40_CBC (0x3ab)
631#define CKM_PKCS5_PBKD2 (0x3b0)
632#define CKM_PBA_SHA1_WITH_SHA1_HMAC (0x3c0)
633#define CKM_KEY_WRAP_LYNKS (0x400)
634#define CKM_KEY_WRAP_SET_OAEP (0x401)
635#define CKM_SKIPJACK_KEY_GEN (0x1000)
636#define CKM_SKIPJACK_ECB64 (0x1001)
637#define CKM_SKIPJACK_CBC64 (0x1002)
638#define CKM_SKIPJACK_OFB64 (0x1003)
639#define CKM_SKIPJACK_CFB64 (0x1004)
640#define CKM_SKIPJACK_CFB32 (0x1005)
641#define CKM_SKIPJACK_CFB16 (0x1006)
642#define CKM_SKIPJACK_CFB8 (0x1007)
643#define CKM_SKIPJACK_WRAP (0x1008)
644#define CKM_SKIPJACK_PRIVATE_WRAP (0x1009)
645#define CKM_SKIPJACK_RELAYX (0x100a)
646#define CKM_KEA_KEY_PAIR_GEN (0x1010)
647#define CKM_KEA_KEY_DERIVE (0x1011)
648#define CKM_FORTEZZA_TIMESTAMP (0x1020)
649#define CKM_BATON_KEY_GEN (0x1030)
650#define CKM_BATON_ECB128 (0x1031)
651#define CKM_BATON_ECB96 (0x1032)
652#define CKM_BATON_CBC128 (0x1033)
653#define CKM_BATON_COUNTER (0x1034)
654#define CKM_BATON_SHUFFLE (0x1035)
655#define CKM_BATON_WRAP (0x1036)
656#define CKM_ECDSA_KEY_PAIR_GEN (0x1040)
657#define CKM_EC_KEY_PAIR_GEN (0x1040)
658#define CKM_ECDSA (0x1041)
659#define CKM_ECDSA_SHA1 (0x1042)
660#define CKM_ECDH1_DERIVE (0x1050)
661#define CKM_ECDH1_COFACTOR_DERIVE (0x1051)
662#define CKM_ECMQV_DERIVE (0x1052)
663#define CKM_EC_EDWARDS_KEY_PAIR_GEN (0x1055)
664#define CKM_EDDSA (0x1057)
665#define CKM_JUNIPER_KEY_GEN (0x1060)
666#define CKM_JUNIPER_ECB128 (0x1061)
667#define CKM_JUNIPER_CBC128 (0x1062)
668#define CKM_JUNIPER_COUNTER (0x1063)
669#define CKM_JUNIPER_SHUFFLE (0x1064)
670#define CKM_JUNIPER_WRAP (0x1065)
671#define CKM_FASTHASH (0x1070)
672#define CKM_AES_KEY_GEN (0x1080)
673#define CKM_AES_ECB (0x1081)
674#define CKM_AES_CBC (0x1082)
675#define CKM_AES_MAC (0x1083)
676#define CKM_AES_MAC_GENERAL (0x1084)
677#define CKM_AES_CBC_PAD (0x1085)
678#define CKM_GOSTR3410_KEY_PAIR_GEN (0x1200)
679#define CKM_GOSTR3410 (0x1201)
680#define CKM_GOSTR3410_WITH_GOSTR3411 (0x1202)
681#define CKM_GOSTR3411 (0x1210)
682#define CKM_DSA_PARAMETER_GEN (0x2000)
683#define CKM_DH_PKCS_PARAMETER_GEN (0x2001)
684#define CKM_X9_42_DH_PARAMETER_GEN (0x2002)
685#define CKM_VENDOR_DEFINED ((unsigned long) (1 << 31))
703#define CKF_HW (1 << 0)
704#define CKF_ENCRYPT (1 << 8)
705#define CKF_DECRYPT (1 << 9)
706#define CKF_DIGEST (1 << 10)
707#define CKF_SIGN (1 << 11)
708#define CKF_SIGN_RECOVER (1 << 12)
709#define CKF_VERIFY (1 << 13)
710#define CKF_VERIFY_RECOVER (1 << 14)
711#define CKF_GENERATE (1 << 15)
712#define CKF_GENERATE_KEY_PAIR (1 << 16)
713#define CKF_WRAP (1 << 17)
714#define CKF_UNWRAP (1 << 18)
715#define CKF_DERIVE (1 << 19)
716#define CKF_EXTENSION ((unsigned long) (1 << 31))
720#define CKF_DONT_BLOCK (1)
732#define _CK_DECLARE_FUNCTION(name, args) \
733typedef ck_rv_t (*CK_ ## name) args; \
734ck_rv_t CK_SPEC name args
744 unsigned long *count));
754 unsigned long *count));
760 unsigned long pin_len,
unsigned char *label));
763 unsigned long pin_len));
766 unsigned long old_len,
unsigned char *new_pin,
767 unsigned long new_len));
780 unsigned char *operation_state,
781 unsigned long *operation_state_len));
784 unsigned char *operation_state,
785 unsigned long operation_state_len,
790 unsigned char *pin,
unsigned long pin_len));
807 unsigned long *size));