19#define CRYPTOKI_VERSION_MAJOR 2
20#define CRYPTOKI_VERSION_MINOR 40
21#define CRYPTOKI_VERSION_AMENDMENT 0
26#ifndef CK_DISABLE_TRUE_FALSE
58#define CK_UNAVAILABLE_INFORMATION (~0UL)
59#define CK_EFFECTIVELY_INFINITE 0UL
75#define CK_INVALID_HANDLE 0UL
101#define CKN_SURRENDER 0UL
102#define CKN_OTP_CHANGED 1UL
122#define CKF_TOKEN_PRESENT 0x00000001UL
123#define CKF_REMOVABLE_DEVICE 0x00000002UL
124#define CKF_HW_SLOT 0x00000004UL
155#define CKF_RNG 0x00000001UL
156#define CKF_WRITE_PROTECTED 0x00000002UL
157#define CKF_LOGIN_REQUIRED 0x00000004UL
158#define CKF_USER_PIN_INITIALIZED 0x00000008UL
165#define CKF_RESTORE_KEY_NOT_NEEDED 0x00000020UL
171#define CKF_CLOCK_ON_TOKEN 0x00000040UL
177#define CKF_PROTECTED_AUTHENTICATION_PATH 0x00000100UL
185#define CKF_DUAL_CRYPTO_OPERATIONS 0x00000200UL
193#define CKF_TOKEN_INITIALIZED 0x00000400UL
199#define CKF_SECONDARY_AUTHENTICATION 0x00000800UL
205#define CKF_USER_PIN_COUNT_LOW 0x00010000UL
210#define CKF_USER_PIN_FINAL_TRY 0x00020000UL
216#define CKF_USER_PIN_LOCKED 0x00040000UL
223#define CKF_USER_PIN_TO_BE_CHANGED 0x00080000UL
229#define CKF_SO_PIN_COUNT_LOW 0x00100000UL
234#define CKF_SO_PIN_FINAL_TRY 0x00200000UL
239#define CKF_SO_PIN_LOCKED 0x00400000UL
246#define CKF_SO_PIN_TO_BE_CHANGED 0x00800000UL
248#define CKF_ERROR_STATE 0x01000000UL
268#define CKU_CONTEXT_SPECIFIC 2UL
272#define CKS_RO_PUBLIC_SESSION 0UL
273#define CKS_RO_USER_FUNCTIONS 1UL
274#define CKS_RW_PUBLIC_SESSION 2UL
275#define CKS_RW_USER_FUNCTIONS 3UL
276#define CKS_RW_SO_FUNCTIONS 4UL
289#define CKF_RW_SESSION 0x00000002UL
290#define CKF_SERIAL_SESSION 0x00000004UL
310#define CKO_DATA 0x00000000UL
311#define CKO_CERTIFICATE 0x00000001UL
312#define CKO_PUBLIC_KEY 0x00000002UL
313#define CKO_PRIVATE_KEY 0x00000003UL
314#define CKO_SECRET_KEY 0x00000004UL
315#define CKO_HW_FEATURE 0x00000005UL
316#define CKO_DOMAIN_PARAMETERS 0x00000006UL
317#define CKO_MECHANISM 0x00000007UL
318#define CKO_OTP_KEY 0x00000008UL
320#define CKO_VENDOR_DEFINED 0x80000000UL
330#define CKH_MONOTONIC_COUNTER 0x00000001UL
331#define CKH_CLOCK 0x00000002UL
332#define CKH_USER_INTERFACE 0x00000003UL
333#define CKH_VENDOR_DEFINED 0x80000000UL
339#define CKK_RSA 0x00000000UL
340#define CKK_DSA 0x00000001UL
341#define CKK_DH 0x00000002UL
342#define CKK_ECDSA 0x00000003UL
343#define CKK_EC 0x00000003UL
344#define CKK_X9_42_DH 0x00000004UL
345#define CKK_KEA 0x00000005UL
346#define CKK_GENERIC_SECRET 0x00000010UL
347#define CKK_RC2 0x00000011UL
348#define CKK_RC4 0x00000012UL
349#define CKK_DES 0x00000013UL
350#define CKK_DES2 0x00000014UL
351#define CKK_DES3 0x00000015UL
352#define CKK_CAST 0x00000016UL
353#define CKK_CAST3 0x00000017UL
354#define CKK_CAST5 0x00000018UL
355#define CKK_CAST128 0x00000018UL
356#define CKK_RC5 0x00000019UL
357#define CKK_IDEA 0x0000001AUL
358#define CKK_SKIPJACK 0x0000001BUL
359#define CKK_BATON 0x0000001CUL
360#define CKK_JUNIPER 0x0000001DUL
361#define CKK_CDMF 0x0000001EUL
362#define CKK_AES 0x0000001FUL
363#define CKK_BLOWFISH 0x00000020UL
364#define CKK_TWOFISH 0x00000021UL
365#define CKK_SECURID 0x00000022UL
366#define CKK_HOTP 0x00000023UL
367#define CKK_ACTI 0x00000024UL
368#define CKK_CAMELLIA 0x00000025UL
369#define CKK_ARIA 0x00000026UL
371#define CKK_MD5_HMAC 0x00000027UL
372#define CKK_SHA_1_HMAC 0x00000028UL
373#define CKK_RIPEMD128_HMAC 0x00000029UL
374#define CKK_RIPEMD160_HMAC 0x0000002AUL
375#define CKK_SHA256_HMAC 0x0000002BUL
376#define CKK_SHA384_HMAC 0x0000002CUL
377#define CKK_SHA512_HMAC 0x0000002DUL
378#define CKK_SHA224_HMAC 0x0000002EUL
380#define CKK_SEED 0x0000002FUL
381#define CKK_GOSTR3410 0x00000030UL
382#define CKK_GOSTR3411 0x00000031UL
383#define CKK_GOST28147 0x00000032UL
387#define CKK_VENDOR_DEFINED 0x80000000UL
395#define CK_CERTIFICATE_CATEGORY_UNSPECIFIED 0UL
396#define CK_CERTIFICATE_CATEGORY_TOKEN_USER 1UL
397#define CK_CERTIFICATE_CATEGORY_AUTHORITY 2UL
398#define CK_CERTIFICATE_CATEGORY_OTHER_ENTITY 3UL
400#define CK_SECURITY_DOMAIN_UNSPECIFIED 0UL
401#define CK_SECURITY_DOMAIN_MANUFACTURER 1UL
402#define CK_SECURITY_DOMAIN_OPERATOR 2UL
403#define CK_SECURITY_DOMAIN_THIRD_PARTY 3UL
407#define CKC_X_509 0x00000000UL
408#define CKC_X_509_ATTR_CERT 0x00000001UL
409#define CKC_WTLS 0x00000002UL
410#define CKC_VENDOR_DEFINED 0x80000000UL
421#define CKF_ARRAY_ATTRIBUTE 0x40000000UL
424#define CK_OTP_FORMAT_DECIMAL 0UL
425#define CK_OTP_FORMAT_HEXADECIMAL 1UL
426#define CK_OTP_FORMAT_ALPHANUMERIC 2UL
427#define CK_OTP_FORMAT_BINARY 3UL
432#define CK_OTP_PARAM_IGNORED 0UL
433#define CK_OTP_PARAM_OPTIONAL 1UL
434#define CK_OTP_PARAM_MANDATORY 2UL
437#define CKA_CLASS 0x00000000UL
438#define CKA_TOKEN 0x00000001UL
439#define CKA_PRIVATE 0x00000002UL
440#define CKA_LABEL 0x00000003UL
441#define CKA_APPLICATION 0x00000010UL
442#define CKA_VALUE 0x00000011UL
443#define CKA_OBJECT_ID 0x00000012UL
444#define CKA_CERTIFICATE_TYPE 0x00000080UL
445#define CKA_ISSUER 0x00000081UL
446#define CKA_SERIAL_NUMBER 0x00000082UL
447#define CKA_AC_ISSUER 0x00000083UL
448#define CKA_OWNER 0x00000084UL
449#define CKA_ATTR_TYPES 0x00000085UL
450#define CKA_TRUSTED 0x00000086UL
451#define CKA_CERTIFICATE_CATEGORY 0x00000087UL
452#define CKA_JAVA_MIDP_SECURITY_DOMAIN 0x00000088UL
453#define CKA_URL 0x00000089UL
454#define CKA_HASH_OF_SUBJECT_PUBLIC_KEY 0x0000008AUL
455#define CKA_HASH_OF_ISSUER_PUBLIC_KEY 0x0000008BUL
456#define CKA_NAME_HASH_ALGORITHM 0x0000008CUL
457#define CKA_CHECK_VALUE 0x00000090UL
459#define CKA_KEY_TYPE 0x00000100UL
460#define CKA_SUBJECT 0x00000101UL
461#define CKA_ID 0x00000102UL
462#define CKA_SENSITIVE 0x00000103UL
463#define CKA_ENCRYPT 0x00000104UL
464#define CKA_DECRYPT 0x00000105UL
465#define CKA_WRAP 0x00000106UL
466#define CKA_UNWRAP 0x00000107UL
467#define CKA_SIGN 0x00000108UL
468#define CKA_SIGN_RECOVER 0x00000109UL
469#define CKA_VERIFY 0x0000010AUL
470#define CKA_VERIFY_RECOVER 0x0000010BUL
471#define CKA_DERIVE 0x0000010CUL
472#define CKA_START_DATE 0x00000110UL
473#define CKA_END_DATE 0x00000111UL
474#define CKA_MODULUS 0x00000120UL
475#define CKA_MODULUS_BITS 0x00000121UL
476#define CKA_PUBLIC_EXPONENT 0x00000122UL
477#define CKA_PRIVATE_EXPONENT 0x00000123UL
478#define CKA_PRIME_1 0x00000124UL
479#define CKA_PRIME_2 0x00000125UL
480#define CKA_EXPONENT_1 0x00000126UL
481#define CKA_EXPONENT_2 0x00000127UL
482#define CKA_COEFFICIENT 0x00000128UL
483#define CKA_PUBLIC_KEY_INFO 0x00000129UL
484#define CKA_PRIME 0x00000130UL
485#define CKA_SUBPRIME 0x00000131UL
486#define CKA_BASE 0x00000132UL
488#define CKA_PRIME_BITS 0x00000133UL
489#define CKA_SUBPRIME_BITS 0x00000134UL
490#define CKA_SUB_PRIME_BITS CKA_SUBPRIME_BITS
492#define CKA_VALUE_BITS 0x00000160UL
493#define CKA_VALUE_LEN 0x00000161UL
494#define CKA_EXTRACTABLE 0x00000162UL
495#define CKA_LOCAL 0x00000163UL
496#define CKA_NEVER_EXTRACTABLE 0x00000164UL
497#define CKA_ALWAYS_SENSITIVE 0x00000165UL
498#define CKA_KEY_GEN_MECHANISM 0x00000166UL
500#define CKA_MODIFIABLE 0x00000170UL
501#define CKA_COPYABLE 0x00000171UL
503#define CKA_DESTROYABLE 0x00000172UL
505#define CKA_ECDSA_PARAMS 0x00000180UL
506#define CKA_EC_PARAMS 0x00000180UL
508#define CKA_EC_POINT 0x00000181UL
510#define CKA_SECONDARY_AUTH 0x00000200UL
511#define CKA_AUTH_PIN_FLAGS 0x00000201UL
513#define CKA_ALWAYS_AUTHENTICATE 0x00000202UL
515#define CKA_WRAP_WITH_TRUSTED 0x00000210UL
516#define CKA_WRAP_TEMPLATE (CKF_ARRAY_ATTRIBUTE|0x00000211UL)
517#define CKA_UNWRAP_TEMPLATE (CKF_ARRAY_ATTRIBUTE|0x00000212UL)
518#define CKA_DERIVE_TEMPLATE (CKF_ARRAY_ATTRIBUTE|0x00000213UL)
520#define CKA_OTP_FORMAT 0x00000220UL
521#define CKA_OTP_LENGTH 0x00000221UL
522#define CKA_OTP_TIME_INTERVAL 0x00000222UL
523#define CKA_OTP_USER_FRIENDLY_MODE 0x00000223UL
524#define CKA_OTP_CHALLENGE_REQUIREMENT 0x00000224UL
525#define CKA_OTP_TIME_REQUIREMENT 0x00000225UL
526#define CKA_OTP_COUNTER_REQUIREMENT 0x00000226UL
527#define CKA_OTP_PIN_REQUIREMENT 0x00000227UL
528#define CKA_OTP_COUNTER 0x0000022EUL
529#define CKA_OTP_TIME 0x0000022FUL
530#define CKA_OTP_USER_IDENTIFIER 0x0000022AUL
531#define CKA_OTP_SERVICE_IDENTIFIER 0x0000022BUL
532#define CKA_OTP_SERVICE_LOGO 0x0000022CUL
533#define CKA_OTP_SERVICE_LOGO_TYPE 0x0000022DUL
535#define CKA_GOSTR3410_PARAMS 0x00000250UL
536#define CKA_GOSTR3411_PARAMS 0x00000251UL
537#define CKA_GOST28147_PARAMS 0x00000252UL
539#define CKA_HW_FEATURE_TYPE 0x00000300UL
540#define CKA_RESET_ON_INIT 0x00000301UL
541#define CKA_HAS_RESET 0x00000302UL
543#define CKA_PIXEL_X 0x00000400UL
544#define CKA_PIXEL_Y 0x00000401UL
545#define CKA_RESOLUTION 0x00000402UL
546#define CKA_CHAR_ROWS 0x00000403UL
547#define CKA_CHAR_COLUMNS 0x00000404UL
548#define CKA_COLOR 0x00000405UL
549#define CKA_BITS_PER_PIXEL 0x00000406UL
550#define CKA_CHAR_SETS 0x00000480UL
551#define CKA_ENCODING_METHODS 0x00000481UL
552#define CKA_MIME_TYPES 0x00000482UL
553#define CKA_MECHANISM_TYPE 0x00000500UL
554#define CKA_REQUIRED_CMS_ATTRIBUTES 0x00000501UL
555#define CKA_DEFAULT_CMS_ATTRIBUTES 0x00000502UL
556#define CKA_SUPPORTED_CMS_ATTRIBUTES 0x00000503UL
557#define CKA_ALLOWED_MECHANISMS (CKF_ARRAY_ATTRIBUTE|0x00000600UL)
559#define CKA_VENDOR_DEFINED 0x80000000UL
586#define CKM_RSA_PKCS_KEY_PAIR_GEN 0x00000000UL
587#define CKM_RSA_PKCS 0x00000001UL
588#define CKM_RSA_9796 0x00000002UL
589#define CKM_RSA_X_509 0x00000003UL
591#define CKM_MD2_RSA_PKCS 0x00000004UL
592#define CKM_MD5_RSA_PKCS 0x00000005UL
593#define CKM_SHA1_RSA_PKCS 0x00000006UL
595#define CKM_RIPEMD128_RSA_PKCS 0x00000007UL
596#define CKM_RIPEMD160_RSA_PKCS 0x00000008UL
597#define CKM_RSA_PKCS_OAEP 0x00000009UL
599#define CKM_RSA_X9_31_KEY_PAIR_GEN 0x0000000AUL
600#define CKM_RSA_X9_31 0x0000000BUL
601#define CKM_SHA1_RSA_X9_31 0x0000000CUL
602#define CKM_RSA_PKCS_PSS 0x0000000DUL
603#define CKM_SHA1_RSA_PKCS_PSS 0x0000000EUL
605#define CKM_DSA_KEY_PAIR_GEN 0x00000010UL
606#define CKM_DSA 0x00000011UL
607#define CKM_DSA_SHA1 0x00000012UL
608#define CKM_DSA_SHA224 0x00000013UL
609#define CKM_DSA_SHA256 0x00000014UL
610#define CKM_DSA_SHA384 0x00000015UL
611#define CKM_DSA_SHA512 0x00000016UL
613#define CKM_DH_PKCS_KEY_PAIR_GEN 0x00000020UL
614#define CKM_DH_PKCS_DERIVE 0x00000021UL
616#define CKM_X9_42_DH_KEY_PAIR_GEN 0x00000030UL
617#define CKM_X9_42_DH_DERIVE 0x00000031UL
618#define CKM_X9_42_DH_HYBRID_DERIVE 0x00000032UL
619#define CKM_X9_42_MQV_DERIVE 0x00000033UL
621#define CKM_SHA256_RSA_PKCS 0x00000040UL
622#define CKM_SHA384_RSA_PKCS 0x00000041UL
623#define CKM_SHA512_RSA_PKCS 0x00000042UL
624#define CKM_SHA256_RSA_PKCS_PSS 0x00000043UL
625#define CKM_SHA384_RSA_PKCS_PSS 0x00000044UL
626#define CKM_SHA512_RSA_PKCS_PSS 0x00000045UL
628#define CKM_SHA224_RSA_PKCS 0x00000046UL
629#define CKM_SHA224_RSA_PKCS_PSS 0x00000047UL
631#define CKM_SHA512_224 0x00000048UL
632#define CKM_SHA512_224_HMAC 0x00000049UL
633#define CKM_SHA512_224_HMAC_GENERAL 0x0000004AUL
634#define CKM_SHA512_224_KEY_DERIVATION 0x0000004BUL
635#define CKM_SHA512_256 0x0000004CUL
636#define CKM_SHA512_256_HMAC 0x0000004DUL
637#define CKM_SHA512_256_HMAC_GENERAL 0x0000004EUL
638#define CKM_SHA512_256_KEY_DERIVATION 0x0000004FUL
640#define CKM_SHA512_T 0x00000050UL
641#define CKM_SHA512_T_HMAC 0x00000051UL
642#define CKM_SHA512_T_HMAC_GENERAL 0x00000052UL
643#define CKM_SHA512_T_KEY_DERIVATION 0x00000053UL
645#define CKM_RC2_KEY_GEN 0x00000100UL
646#define CKM_RC2_ECB 0x00000101UL
647#define CKM_RC2_CBC 0x00000102UL
648#define CKM_RC2_MAC 0x00000103UL
650#define CKM_RC2_MAC_GENERAL 0x00000104UL
651#define CKM_RC2_CBC_PAD 0x00000105UL
653#define CKM_RC4_KEY_GEN 0x00000110UL
654#define CKM_RC4 0x00000111UL
655#define CKM_DES_KEY_GEN 0x00000120UL
656#define CKM_DES_ECB 0x00000121UL
657#define CKM_DES_CBC 0x00000122UL
658#define CKM_DES_MAC 0x00000123UL
660#define CKM_DES_MAC_GENERAL 0x00000124UL
661#define CKM_DES_CBC_PAD 0x00000125UL
663#define CKM_DES2_KEY_GEN 0x00000130UL
664#define CKM_DES3_KEY_GEN 0x00000131UL
665#define CKM_DES3_ECB 0x00000132UL
666#define CKM_DES3_CBC 0x00000133UL
667#define CKM_DES3_MAC 0x00000134UL
669#define CKM_DES3_MAC_GENERAL 0x00000135UL
670#define CKM_DES3_CBC_PAD 0x00000136UL
671#define CKM_DES3_CMAC_GENERAL 0x00000137UL
672#define CKM_DES3_CMAC 0x00000138UL
673#define CKM_CDMF_KEY_GEN 0x00000140UL
674#define CKM_CDMF_ECB 0x00000141UL
675#define CKM_CDMF_CBC 0x00000142UL
676#define CKM_CDMF_MAC 0x00000143UL
677#define CKM_CDMF_MAC_GENERAL 0x00000144UL
678#define CKM_CDMF_CBC_PAD 0x00000145UL
680#define CKM_DES_OFB64 0x00000150UL
681#define CKM_DES_OFB8 0x00000151UL
682#define CKM_DES_CFB64 0x00000152UL
683#define CKM_DES_CFB8 0x00000153UL
685#define CKM_MD2 0x00000200UL
687#define CKM_MD2_HMAC 0x00000201UL
688#define CKM_MD2_HMAC_GENERAL 0x00000202UL
690#define CKM_MD5 0x00000210UL
692#define CKM_MD5_HMAC 0x00000211UL
693#define CKM_MD5_HMAC_GENERAL 0x00000212UL
695#define CKM_SHA_1 0x00000220UL
697#define CKM_SHA_1_HMAC 0x00000221UL
698#define CKM_SHA_1_HMAC_GENERAL 0x00000222UL
700#define CKM_RIPEMD128 0x00000230UL
701#define CKM_RIPEMD128_HMAC 0x00000231UL
702#define CKM_RIPEMD128_HMAC_GENERAL 0x00000232UL
703#define CKM_RIPEMD160 0x00000240UL
704#define CKM_RIPEMD160_HMAC 0x00000241UL
705#define CKM_RIPEMD160_HMAC_GENERAL 0x00000242UL
707#define CKM_SHA256 0x00000250UL
708#define CKM_SHA256_HMAC 0x00000251UL
709#define CKM_SHA256_HMAC_GENERAL 0x00000252UL
710#define CKM_SHA224 0x00000255UL
711#define CKM_SHA224_HMAC 0x00000256UL
712#define CKM_SHA224_HMAC_GENERAL 0x00000257UL
713#define CKM_SHA384 0x00000260UL
714#define CKM_SHA384_HMAC 0x00000261UL
715#define CKM_SHA384_HMAC_GENERAL 0x00000262UL
716#define CKM_SHA512 0x00000270UL
717#define CKM_SHA512_HMAC 0x00000271UL
718#define CKM_SHA512_HMAC_GENERAL 0x00000272UL
719#define CKM_SECURID_KEY_GEN 0x00000280UL
720#define CKM_SECURID 0x00000282UL
721#define CKM_HOTP_KEY_GEN 0x00000290UL
722#define CKM_HOTP 0x00000291UL
723#define CKM_ACTI 0x000002A0UL
724#define CKM_ACTI_KEY_GEN 0x000002A1UL
726#define CKM_CAST_KEY_GEN 0x00000300UL
727#define CKM_CAST_ECB 0x00000301UL
728#define CKM_CAST_CBC 0x00000302UL
729#define CKM_CAST_MAC 0x00000303UL
730#define CKM_CAST_MAC_GENERAL 0x00000304UL
731#define CKM_CAST_CBC_PAD 0x00000305UL
732#define CKM_CAST3_KEY_GEN 0x00000310UL
733#define CKM_CAST3_ECB 0x00000311UL
734#define CKM_CAST3_CBC 0x00000312UL
735#define CKM_CAST3_MAC 0x00000313UL
736#define CKM_CAST3_MAC_GENERAL 0x00000314UL
737#define CKM_CAST3_CBC_PAD 0x00000315UL
739#define CKM_CAST5_KEY_GEN 0x00000320UL
740#define CKM_CAST128_KEY_GEN 0x00000320UL
741#define CKM_CAST5_ECB 0x00000321UL
742#define CKM_CAST128_ECB 0x00000321UL
743#define CKM_CAST5_CBC 0x00000322UL
744#define CKM_CAST128_CBC 0x00000322UL
745#define CKM_CAST5_MAC 0x00000323UL
746#define CKM_CAST128_MAC 0x00000323UL
747#define CKM_CAST5_MAC_GENERAL 0x00000324UL
748#define CKM_CAST128_MAC_GENERAL 0x00000324UL
749#define CKM_CAST5_CBC_PAD 0x00000325UL
750#define CKM_CAST128_CBC_PAD 0x00000325UL
751#define CKM_RC5_KEY_GEN 0x00000330UL
752#define CKM_RC5_ECB 0x00000331UL
753#define CKM_RC5_CBC 0x00000332UL
754#define CKM_RC5_MAC 0x00000333UL
755#define CKM_RC5_MAC_GENERAL 0x00000334UL
756#define CKM_RC5_CBC_PAD 0x00000335UL
757#define CKM_IDEA_KEY_GEN 0x00000340UL
758#define CKM_IDEA_ECB 0x00000341UL
759#define CKM_IDEA_CBC 0x00000342UL
760#define CKM_IDEA_MAC 0x00000343UL
761#define CKM_IDEA_MAC_GENERAL 0x00000344UL
762#define CKM_IDEA_CBC_PAD 0x00000345UL
763#define CKM_GENERIC_SECRET_KEY_GEN 0x00000350UL
764#define CKM_CONCATENATE_BASE_AND_KEY 0x00000360UL
765#define CKM_CONCATENATE_BASE_AND_DATA 0x00000362UL
766#define CKM_CONCATENATE_DATA_AND_BASE 0x00000363UL
767#define CKM_XOR_BASE_AND_DATA 0x00000364UL
768#define CKM_EXTRACT_KEY_FROM_KEY 0x00000365UL
769#define CKM_SSL3_PRE_MASTER_KEY_GEN 0x00000370UL
770#define CKM_SSL3_MASTER_KEY_DERIVE 0x00000371UL
771#define CKM_SSL3_KEY_AND_MAC_DERIVE 0x00000372UL
773#define CKM_SSL3_MASTER_KEY_DERIVE_DH 0x00000373UL
774#define CKM_TLS_PRE_MASTER_KEY_GEN 0x00000374UL
775#define CKM_TLS_MASTER_KEY_DERIVE 0x00000375UL
776#define CKM_TLS_KEY_AND_MAC_DERIVE 0x00000376UL
777#define CKM_TLS_MASTER_KEY_DERIVE_DH 0x00000377UL
779#define CKM_TLS_PRF 0x00000378UL
781#define CKM_SSL3_MD5_MAC 0x00000380UL
782#define CKM_SSL3_SHA1_MAC 0x00000381UL
783#define CKM_MD5_KEY_DERIVATION 0x00000390UL
784#define CKM_MD2_KEY_DERIVATION 0x00000391UL
785#define CKM_SHA1_KEY_DERIVATION 0x00000392UL
787#define CKM_SHA256_KEY_DERIVATION 0x00000393UL
788#define CKM_SHA384_KEY_DERIVATION 0x00000394UL
789#define CKM_SHA512_KEY_DERIVATION 0x00000395UL
790#define CKM_SHA224_KEY_DERIVATION 0x00000396UL
792#define CKM_PBE_MD2_DES_CBC 0x000003A0UL
793#define CKM_PBE_MD5_DES_CBC 0x000003A1UL
794#define CKM_PBE_MD5_CAST_CBC 0x000003A2UL
795#define CKM_PBE_MD5_CAST3_CBC 0x000003A3UL
796#define CKM_PBE_MD5_CAST5_CBC 0x000003A4UL
797#define CKM_PBE_MD5_CAST128_CBC 0x000003A4UL
798#define CKM_PBE_SHA1_CAST5_CBC 0x000003A5UL
799#define CKM_PBE_SHA1_CAST128_CBC 0x000003A5UL
800#define CKM_PBE_SHA1_RC4_128 0x000003A6UL
801#define CKM_PBE_SHA1_RC4_40 0x000003A7UL
802#define CKM_PBE_SHA1_DES3_EDE_CBC 0x000003A8UL
803#define CKM_PBE_SHA1_DES2_EDE_CBC 0x000003A9UL
804#define CKM_PBE_SHA1_RC2_128_CBC 0x000003AAUL
805#define CKM_PBE_SHA1_RC2_40_CBC 0x000003ABUL
807#define CKM_PKCS5_PBKD2 0x000003B0UL
809#define CKM_PBA_SHA1_WITH_SHA1_HMAC 0x000003C0UL
811#define CKM_WTLS_PRE_MASTER_KEY_GEN 0x000003D0UL
812#define CKM_WTLS_MASTER_KEY_DERIVE 0x000003D1UL
813#define CKM_WTLS_MASTER_KEY_DERIVE_DH_ECC 0x000003D2UL
814#define CKM_WTLS_PRF 0x000003D3UL
815#define CKM_WTLS_SERVER_KEY_AND_MAC_DERIVE 0x000003D4UL
816#define CKM_WTLS_CLIENT_KEY_AND_MAC_DERIVE 0x000003D5UL
818#define CKM_TLS10_MAC_SERVER 0x000003D6UL
819#define CKM_TLS10_MAC_CLIENT 0x000003D7UL
820#define CKM_TLS12_MAC 0x000003D8UL
821#define CKM_TLS12_KDF 0x000003D9UL
822#define CKM_TLS12_MASTER_KEY_DERIVE 0x000003E0UL
823#define CKM_TLS12_KEY_AND_MAC_DERIVE 0x000003E1UL
824#define CKM_TLS12_MASTER_KEY_DERIVE_DH 0x000003E2UL
825#define CKM_TLS12_KEY_SAFE_DERIVE 0x000003E3UL
826#define CKM_TLS_MAC 0x000003E4UL
827#define CKM_TLS_KDF 0x000003E5UL
829#define CKM_KEY_WRAP_LYNKS 0x00000400UL
830#define CKM_KEY_WRAP_SET_OAEP 0x00000401UL
832#define CKM_CMS_SIG 0x00000500UL
833#define CKM_KIP_DERIVE 0x00000510UL
834#define CKM_KIP_WRAP 0x00000511UL
835#define CKM_KIP_MAC 0x00000512UL
837#define CKM_CAMELLIA_KEY_GEN 0x00000550UL
838#define CKM_CAMELLIA_ECB 0x00000551UL
839#define CKM_CAMELLIA_CBC 0x00000552UL
840#define CKM_CAMELLIA_MAC 0x00000553UL
841#define CKM_CAMELLIA_MAC_GENERAL 0x00000554UL
842#define CKM_CAMELLIA_CBC_PAD 0x00000555UL
843#define CKM_CAMELLIA_ECB_ENCRYPT_DATA 0x00000556UL
844#define CKM_CAMELLIA_CBC_ENCRYPT_DATA 0x00000557UL
845#define CKM_CAMELLIA_CTR 0x00000558UL
847#define CKM_ARIA_KEY_GEN 0x00000560UL
848#define CKM_ARIA_ECB 0x00000561UL
849#define CKM_ARIA_CBC 0x00000562UL
850#define CKM_ARIA_MAC 0x00000563UL
851#define CKM_ARIA_MAC_GENERAL 0x00000564UL
852#define CKM_ARIA_CBC_PAD 0x00000565UL
853#define CKM_ARIA_ECB_ENCRYPT_DATA 0x00000566UL
854#define CKM_ARIA_CBC_ENCRYPT_DATA 0x00000567UL
856#define CKM_SEED_KEY_GEN 0x00000650UL
857#define CKM_SEED_ECB 0x00000651UL
858#define CKM_SEED_CBC 0x00000652UL
859#define CKM_SEED_MAC 0x00000653UL
860#define CKM_SEED_MAC_GENERAL 0x00000654UL
861#define CKM_SEED_CBC_PAD 0x00000655UL
862#define CKM_SEED_ECB_ENCRYPT_DATA 0x00000656UL
863#define CKM_SEED_CBC_ENCRYPT_DATA 0x00000657UL
865#define CKM_SKIPJACK_KEY_GEN 0x00001000UL
866#define CKM_SKIPJACK_ECB64 0x00001001UL
867#define CKM_SKIPJACK_CBC64 0x00001002UL
868#define CKM_SKIPJACK_OFB64 0x00001003UL
869#define CKM_SKIPJACK_CFB64 0x00001004UL
870#define CKM_SKIPJACK_CFB32 0x00001005UL
871#define CKM_SKIPJACK_CFB16 0x00001006UL
872#define CKM_SKIPJACK_CFB8 0x00001007UL
873#define CKM_SKIPJACK_WRAP 0x00001008UL
874#define CKM_SKIPJACK_PRIVATE_WRAP 0x00001009UL
875#define CKM_SKIPJACK_RELAYX 0x0000100aUL
876#define CKM_KEA_KEY_PAIR_GEN 0x00001010UL
877#define CKM_KEA_KEY_DERIVE 0x00001011UL
878#define CKM_KEA_DERIVE 0x00001012UL
879#define CKM_FORTEZZA_TIMESTAMP 0x00001020UL
880#define CKM_BATON_KEY_GEN 0x00001030UL
881#define CKM_BATON_ECB128 0x00001031UL
882#define CKM_BATON_ECB96 0x00001032UL
883#define CKM_BATON_CBC128 0x00001033UL
884#define CKM_BATON_COUNTER 0x00001034UL
885#define CKM_BATON_SHUFFLE 0x00001035UL
886#define CKM_BATON_WRAP 0x00001036UL
888#define CKM_ECDSA_KEY_PAIR_GEN 0x00001040UL
889#define CKM_EC_KEY_PAIR_GEN 0x00001040UL
891#define CKM_ECDSA 0x00001041UL
892#define CKM_ECDSA_SHA1 0x00001042UL
893#define CKM_ECDSA_SHA224 0x00001043UL
894#define CKM_ECDSA_SHA256 0x00001044UL
895#define CKM_ECDSA_SHA384 0x00001045UL
896#define CKM_ECDSA_SHA512 0x00001046UL
898#define CKM_ECDH1_DERIVE 0x00001050UL
899#define CKM_ECDH1_COFACTOR_DERIVE 0x00001051UL
900#define CKM_ECMQV_DERIVE 0x00001052UL
902#define CKM_ECDH_AES_KEY_WRAP 0x00001053UL
903#define CKM_RSA_AES_KEY_WRAP 0x00001054UL
905#define CKM_JUNIPER_KEY_GEN 0x00001060UL
906#define CKM_JUNIPER_ECB128 0x00001061UL
907#define CKM_JUNIPER_CBC128 0x00001062UL
908#define CKM_JUNIPER_COUNTER 0x00001063UL
909#define CKM_JUNIPER_SHUFFLE 0x00001064UL
910#define CKM_JUNIPER_WRAP 0x00001065UL
911#define CKM_FASTHASH 0x00001070UL
913#define CKM_AES_KEY_GEN 0x00001080UL
914#define CKM_AES_ECB 0x00001081UL
915#define CKM_AES_CBC 0x00001082UL
916#define CKM_AES_MAC 0x00001083UL
917#define CKM_AES_MAC_GENERAL 0x00001084UL
918#define CKM_AES_CBC_PAD 0x00001085UL
919#define CKM_AES_CTR 0x00001086UL
920#define CKM_AES_GCM 0x00001087UL
921#define CKM_AES_CCM 0x00001088UL
922#define CKM_AES_CTS 0x00001089UL
923#define CKM_AES_CMAC 0x0000108AUL
924#define CKM_AES_CMAC_GENERAL 0x0000108BUL
926#define CKM_AES_XCBC_MAC 0x0000108CUL
927#define CKM_AES_XCBC_MAC_96 0x0000108DUL
928#define CKM_AES_GMAC 0x0000108EUL
930#define CKM_BLOWFISH_KEY_GEN 0x00001090UL
931#define CKM_BLOWFISH_CBC 0x00001091UL
932#define CKM_TWOFISH_KEY_GEN 0x00001092UL
933#define CKM_TWOFISH_CBC 0x00001093UL
934#define CKM_BLOWFISH_CBC_PAD 0x00001094UL
935#define CKM_TWOFISH_CBC_PAD 0x00001095UL
937#define CKM_DES_ECB_ENCRYPT_DATA 0x00001100UL
938#define CKM_DES_CBC_ENCRYPT_DATA 0x00001101UL
939#define CKM_DES3_ECB_ENCRYPT_DATA 0x00001102UL
940#define CKM_DES3_CBC_ENCRYPT_DATA 0x00001103UL
941#define CKM_AES_ECB_ENCRYPT_DATA 0x00001104UL
942#define CKM_AES_CBC_ENCRYPT_DATA 0x00001105UL
944#define CKM_GOSTR3410_KEY_PAIR_GEN 0x00001200UL
945#define CKM_GOSTR3410 0x00001201UL
946#define CKM_GOSTR3410_WITH_GOSTR3411 0x00001202UL
947#define CKM_GOSTR3410_KEY_WRAP 0x00001203UL
948#define CKM_GOSTR3410_DERIVE 0x00001204UL
949#define CKM_GOSTR3411 0x00001210UL
950#define CKM_GOSTR3411_HMAC 0x00001211UL
951#define CKM_GOST28147_KEY_GEN 0x00001220UL
952#define CKM_GOST28147_ECB 0x00001221UL
953#define CKM_GOST28147 0x00001222UL
954#define CKM_GOST28147_MAC 0x00001223UL
955#define CKM_GOST28147_KEY_WRAP 0x00001224UL
957#define CKM_DSA_PARAMETER_GEN 0x00002000UL
958#define CKM_DH_PKCS_PARAMETER_GEN 0x00002001UL
959#define CKM_X9_42_DH_PARAMETER_GEN 0x00002002UL
960#define CKM_DSA_PROBABLISTIC_PARAMETER_GEN 0x00002003UL
961#define CKM_DSA_SHAWE_TAYLOR_PARAMETER_GEN 0x00002004UL
963#define CKM_AES_OFB 0x00002104UL
964#define CKM_AES_CFB64 0x00002105UL
965#define CKM_AES_CFB8 0x00002106UL
966#define CKM_AES_CFB128 0x00002107UL
968#define CKM_AES_CFB1 0x00002108UL
969#define CKM_AES_KEY_WRAP 0x00002109UL
970#define CKM_AES_KEY_WRAP_PAD 0x0000210AUL
972#define CKM_RSA_PKCS_TPM_1_1 0x00004001UL
973#define CKM_RSA_PKCS_OAEP_TPM_1_1 0x00004002UL
975#define CKM_VENDOR_DEFINED 0x80000000UL
1003#define CKF_HW 0x00000001UL
1006#define CKF_ENCRYPT 0x00000100UL
1007#define CKF_DECRYPT 0x00000200UL
1008#define CKF_DIGEST 0x00000400UL
1009#define CKF_SIGN 0x00000800UL
1010#define CKF_SIGN_RECOVER 0x00001000UL
1011#define CKF_VERIFY 0x00002000UL
1012#define CKF_VERIFY_RECOVER 0x00004000UL
1013#define CKF_GENERATE 0x00008000UL
1014#define CKF_GENERATE_KEY_PAIR 0x00010000UL
1015#define CKF_WRAP 0x00020000UL
1016#define CKF_UNWRAP 0x00040000UL
1017#define CKF_DERIVE 0x00080000UL
1022#define CKF_EC_F_P 0x00100000UL
1023#define CKF_EC_F_2M 0x00200000UL
1024#define CKF_EC_ECPARAMETERS 0x00400000UL
1025#define CKF_EC_NAMEDCURVE 0x00800000UL
1026#define CKF_EC_UNCOMPRESS 0x01000000UL
1027#define CKF_EC_COMPRESS 0x02000000UL
1029#define CKF_EXTENSION 0x80000000UL
1038#define CKR_OK 0x00000000UL
1039#define CKR_CANCEL 0x00000001UL
1040#define CKR_HOST_MEMORY 0x00000002UL
1041#define CKR_SLOT_ID_INVALID 0x00000003UL
1043#define CKR_GENERAL_ERROR 0x00000005UL
1044#define CKR_FUNCTION_FAILED 0x00000006UL
1046#define CKR_ARGUMENTS_BAD 0x00000007UL
1047#define CKR_NO_EVENT 0x00000008UL
1048#define CKR_NEED_TO_CREATE_THREADS 0x00000009UL
1049#define CKR_CANT_LOCK 0x0000000AUL
1051#define CKR_ATTRIBUTE_READ_ONLY 0x00000010UL
1052#define CKR_ATTRIBUTE_SENSITIVE 0x00000011UL
1053#define CKR_ATTRIBUTE_TYPE_INVALID 0x00000012UL
1054#define CKR_ATTRIBUTE_VALUE_INVALID 0x00000013UL
1056#define CKR_ACTION_PROHIBITED 0x0000001BUL
1058#define CKR_DATA_INVALID 0x00000020UL
1059#define CKR_DATA_LEN_RANGE 0x00000021UL
1060#define CKR_DEVICE_ERROR 0x00000030UL
1061#define CKR_DEVICE_MEMORY 0x00000031UL
1062#define CKR_DEVICE_REMOVED 0x00000032UL
1063#define CKR_ENCRYPTED_DATA_INVALID 0x00000040UL
1064#define CKR_ENCRYPTED_DATA_LEN_RANGE 0x00000041UL
1065#define CKR_FUNCTION_CANCELED 0x00000050UL
1066#define CKR_FUNCTION_NOT_PARALLEL 0x00000051UL
1068#define CKR_FUNCTION_NOT_SUPPORTED 0x00000054UL
1070#define CKR_KEY_HANDLE_INVALID 0x00000060UL
1072#define CKR_KEY_SIZE_RANGE 0x00000062UL
1073#define CKR_KEY_TYPE_INCONSISTENT 0x00000063UL
1075#define CKR_KEY_NOT_NEEDED 0x00000064UL
1076#define CKR_KEY_CHANGED 0x00000065UL
1077#define CKR_KEY_NEEDED 0x00000066UL
1078#define CKR_KEY_INDIGESTIBLE 0x00000067UL
1079#define CKR_KEY_FUNCTION_NOT_PERMITTED 0x00000068UL
1080#define CKR_KEY_NOT_WRAPPABLE 0x00000069UL
1081#define CKR_KEY_UNEXTRACTABLE 0x0000006AUL
1083#define CKR_MECHANISM_INVALID 0x00000070UL
1084#define CKR_MECHANISM_PARAM_INVALID 0x00000071UL
1086#define CKR_OBJECT_HANDLE_INVALID 0x00000082UL
1087#define CKR_OPERATION_ACTIVE 0x00000090UL
1088#define CKR_OPERATION_NOT_INITIALIZED 0x00000091UL
1089#define CKR_PIN_INCORRECT 0x000000A0UL
1090#define CKR_PIN_INVALID 0x000000A1UL
1091#define CKR_PIN_LEN_RANGE 0x000000A2UL
1093#define CKR_PIN_EXPIRED 0x000000A3UL
1094#define CKR_PIN_LOCKED 0x000000A4UL
1096#define CKR_SESSION_CLOSED 0x000000B0UL
1097#define CKR_SESSION_COUNT 0x000000B1UL
1098#define CKR_SESSION_HANDLE_INVALID 0x000000B3UL
1099#define CKR_SESSION_PARALLEL_NOT_SUPPORTED 0x000000B4UL
1100#define CKR_SESSION_READ_ONLY 0x000000B5UL
1101#define CKR_SESSION_EXISTS 0x000000B6UL
1103#define CKR_SESSION_READ_ONLY_EXISTS 0x000000B7UL
1104#define CKR_SESSION_READ_WRITE_SO_EXISTS 0x000000B8UL
1106#define CKR_SIGNATURE_INVALID 0x000000C0UL
1107#define CKR_SIGNATURE_LEN_RANGE 0x000000C1UL
1108#define CKR_TEMPLATE_INCOMPLETE 0x000000D0UL
1109#define CKR_TEMPLATE_INCONSISTENT 0x000000D1UL
1110#define CKR_TOKEN_NOT_PRESENT 0x000000E0UL
1111#define CKR_TOKEN_NOT_RECOGNIZED 0x000000E1UL
1112#define CKR_TOKEN_WRITE_PROTECTED 0x000000E2UL
1113#define CKR_UNWRAPPING_KEY_HANDLE_INVALID 0x000000F0UL
1114#define CKR_UNWRAPPING_KEY_SIZE_RANGE 0x000000F1UL
1115#define CKR_UNWRAPPING_KEY_TYPE_INCONSISTENT 0x000000F2UL
1116#define CKR_USER_ALREADY_LOGGED_IN 0x00000100UL
1117#define CKR_USER_NOT_LOGGED_IN 0x00000101UL
1118#define CKR_USER_PIN_NOT_INITIALIZED 0x00000102UL
1119#define CKR_USER_TYPE_INVALID 0x00000103UL
1121#define CKR_USER_ANOTHER_ALREADY_LOGGED_IN 0x00000104UL
1122#define CKR_USER_TOO_MANY_TYPES 0x00000105UL
1124#define CKR_WRAPPED_KEY_INVALID 0x00000110UL
1125#define CKR_WRAPPED_KEY_LEN_RANGE 0x00000112UL
1126#define CKR_WRAPPING_KEY_HANDLE_INVALID 0x00000113UL
1127#define CKR_WRAPPING_KEY_SIZE_RANGE 0x00000114UL
1128#define CKR_WRAPPING_KEY_TYPE_INCONSISTENT 0x00000115UL
1129#define CKR_RANDOM_SEED_NOT_SUPPORTED 0x00000120UL
1131#define CKR_RANDOM_NO_RNG 0x00000121UL
1133#define CKR_DOMAIN_PARAMS_INVALID 0x00000130UL
1135#define CKR_CURVE_NOT_SUPPORTED 0x00000140UL
1137#define CKR_BUFFER_TOO_SMALL 0x00000150UL
1138#define CKR_SAVED_STATE_INVALID 0x00000160UL
1139#define CKR_INFORMATION_SENSITIVE 0x00000170UL
1140#define CKR_STATE_UNSAVEABLE 0x00000180UL
1142#define CKR_CRYPTOKI_NOT_INITIALIZED 0x00000190UL
1143#define CKR_CRYPTOKI_ALREADY_INITIALIZED 0x00000191UL
1144#define CKR_MUTEX_BAD 0x000001A0UL
1145#define CKR_MUTEX_NOT_LOCKED 0x000001A1UL
1147#define CKR_NEW_PIN_MODE 0x000001B0UL
1148#define CKR_NEXT_OTP 0x000001B1UL
1150#define CKR_EXCEEDED_MAX_ITERATIONS 0x000001B5UL
1151#define CKR_FIPS_SELF_TEST_FAILED 0x000001B6UL
1152#define CKR_LIBRARY_LOAD_FAILED 0x000001B7UL
1153#define CKR_PIN_TOO_WEAK 0x000001B8UL
1154#define CKR_PUBLIC_KEY_INVALID 0x000001B9UL
1156#define CKR_FUNCTION_REJECTED 0x00000200UL
1158#define CKR_VENDOR_DEFINED 0x80000000UL
1225#define CKF_LIBRARY_CANT_CREATE_OS_THREADS 0x00000001UL
1226#define CKF_OS_LOCKING_OK 0x00000002UL
1234#define CKF_DONT_BLOCK 1
1246#define CKG_MGF1_SHA1 0x00000001UL
1247#define CKG_MGF1_SHA256 0x00000002UL
1248#define CKG_MGF1_SHA384 0x00000003UL
1249#define CKG_MGF1_SHA512 0x00000004UL
1250#define CKG_MGF1_SHA224 0x00000005UL
1261#define CKZ_DATA_SPECIFIED 0x00000001UL
1290#define CKD_NULL 0x00000001UL
1291#define CKD_SHA1_KDF 0x00000002UL
1294#define CKD_SHA1_KDF_ASN1 0x00000003UL
1295#define CKD_SHA1_KDF_CONCATENATE 0x00000004UL
1296#define CKD_SHA224_KDF 0x00000005UL
1297#define CKD_SHA256_KDF 0x00000006UL
1298#define CKD_SHA384_KDF 0x00000007UL
1299#define CKD_SHA512_KDF 0x00000008UL
1300#define CKD_CPDIVERSIFY_KDF 0x00000009UL
1447 CK_RC2_MAC_GENERAL_PARAMS_PTR;
1484 CK_RC5_MAC_GENERAL_PARAMS_PTR;
1528 CK_SKIPJACK_PRIVATE_WRAP_PARAMS_PTR;
1552 CK_SKIPJACK_RELAYX_PARAMS_PTR;
1644 CK_WTLS_MASTER_KEY_DERIVE_PARAMS_PTR;
1698 CK_KEY_DERIVATION_STRING_DATA_PTR;
1717 CK_PKCS5_PBKD2_PSEUDO_RANDOM_FUNCTION_TYPE_PTR;
1719#define CKP_PKCS5_PBKD2_HMAC_SHA1 0x00000001UL
1720#define CKP_PKCS5_PBKD2_HMAC_GOSTR3411 0x00000002UL
1721#define CKP_PKCS5_PBKD2_HMAC_SHA224 0x00000003UL
1722#define CKP_PKCS5_PBKD2_HMAC_SHA256 0x00000004UL
1723#define CKP_PKCS5_PBKD2_HMAC_SHA384 0x00000005UL
1724#define CKP_PKCS5_PBKD2_HMAC_SHA512 0x00000006UL
1725#define CKP_PKCS5_PBKD2_HMAC_SHA512_224 0x00000007UL
1726#define CKP_PKCS5_PBKD2_HMAC_SHA512_256 0x00000008UL
1735 CK_PKCS5_PBKDF2_SALT_SOURCE_TYPE_PTR;
1738#define CKZ_SALT_SPECIFIED 0x00000001UL
1800#define CK_OTP_VALUE 0UL
1801#define CK_OTP_PIN 1UL
1802#define CK_OTP_CHALLENGE 2UL
1803#define CK_OTP_TIME 3UL
1804#define CK_OTP_COUNTER 4UL
1805#define CK_OTP_FLAGS 5UL
1806#define CK_OTP_OUTPUT_LENGTH 6UL
1807#define CK_OTP_OUTPUT_FORMAT 7UL
1809#define CKF_NEXT_OTP 0x00000001UL
1810#define CKF_EXCLUDE_TIME 0x00000002UL
1811#define CKF_EXCLUDE_COUNTER 0x00000004UL
1812#define CKF_EXCLUDE_CHALLENGE 0x00000008UL
1813#define CKF_EXCLUDE_PIN 0x00000010UL
1814#define CKF_USER_FRIENDLY_OTP 0x00000020UL
1892 CK_CAMELLIA_CBC_ENCRYPT_DATA_PARAMS_PTR;
1901 CK_ARIA_CBC_ENCRYPT_DATA_PARAMS_PTR;
1939 CK_TLS12_MASTER_KEY_DERIVE_PARAMS_PTR;
1999 CK_SEED_CBC_ENCRYPT_DATA_PARAMS_PTR;
#define CK_CALLBACK_FUNCTION(returnType, name)
struct CK_X9_42_DH1_DERIVE_PARAMS CK_X9_42_DH1_DERIVE_PARAMS
struct CK_WTLS_MASTER_KEY_DERIVE_PARAMS CK_WTLS_MASTER_KEY_DERIVE_PARAMS
CK_CAMELLIA_CTR_PARAMS CK_PTR CK_CAMELLIA_CTR_PARAMS_PTR
struct CK_OTP_PARAM CK_OTP_PARAM
CK_OTP_SIGNATURE_INFO CK_PTR CK_OTP_SIGNATURE_INFO_PTR
CK_ULONG CK_PKCS5_PBKDF2_SALT_SOURCE_TYPE
struct CK_GOSTR3410_KEY_WRAP_PARAMS CK_GOSTR3410_KEY_WRAP_PARAMS
CK_ULONG CK_RSA_PKCS_OAEP_SOURCE_TYPE
CK_KIP_PARAMS CK_PTR CK_KIP_PARAMS_PTR
struct CK_SSL3_RANDOM_DATA CK_SSL3_RANDOM_DATA
struct CK_AES_CBC_ENCRYPT_DATA_PARAMS CK_AES_CBC_ENCRYPT_DATA_PARAMS
CK_TLS_PRF_PARAMS CK_PTR CK_TLS_PRF_PARAMS_PTR
CK_RSA_AES_KEY_WRAP_PARAMS CK_PTR CK_RSA_AES_KEY_WRAP_PARAMS_PTR
CK_NOTIFICATION CK_VOID_PTR pApplication
struct CK_SSL3_KEY_MAT_OUT CK_SSL3_KEY_MAT_OUT
struct CK_AES_CCM_PARAMS CK_AES_CCM_PARAMS
struct CK_WTLS_KEY_MAT_OUT CK_WTLS_KEY_MAT_OUT
struct CK_VERSION CK_VERSION
CK_CCM_PARAMS CK_PTR CK_CCM_PARAMS_PTR
struct CK_CAMELLIA_CTR_PARAMS CK_CAMELLIA_CTR_PARAMS
CK_SESSION_INFO CK_PTR CK_SESSION_INFO_PTR
struct CK_OTP_SIGNATURE_INFO CK_OTP_SIGNATURE_INFO
CK_WTLS_RANDOM_DATA CK_PTR CK_WTLS_RANDOM_DATA_PTR
CK_RC5_PARAMS CK_PTR CK_RC5_PARAMS_PTR
struct CK_RSA_AES_KEY_WRAP_PARAMS CK_RSA_AES_KEY_WRAP_PARAMS
CK_ULONG CK_X9_42_DH_KDF_TYPE
struct CK_RC5_MAC_GENERAL_PARAMS CK_RC5_MAC_GENERAL_PARAMS
struct CK_WTLS_RANDOM_DATA CK_WTLS_RANDOM_DATA
struct CK_ARIA_CBC_ENCRYPT_DATA_PARAMS CK_ARIA_CBC_ENCRYPT_DATA_PARAMS
CK_DES_CBC_ENCRYPT_DATA_PARAMS CK_PTR CK_DES_CBC_ENCRYPT_DATA_PARAMS_PTR
CK_INFO CK_PTR CK_INFO_PTR
struct CK_TLS_MAC_PARAMS CK_TLS_MAC_PARAMS
struct CK_KEA_DERIVE_PARAMS CK_KEA_DERIVE_PARAMS
CK_FUNCTION_LIST_PTR CK_PTR CK_FUNCTION_LIST_PTR_PTR
struct CK_TLS_PRF_PARAMS CK_TLS_PRF_PARAMS
struct CK_TLS12_KEY_MAT_PARAMS CK_TLS12_KEY_MAT_PARAMS
CK_WTLS_KEY_MAT_OUT CK_PTR CK_WTLS_KEY_MAT_OUT_PTR
CK_ECDH1_DERIVE_PARAMS CK_PTR CK_ECDH1_DERIVE_PARAMS_PTR
unsigned long int CK_ULONG
CK_TLS_KDF_PARAMS CK_PTR CK_TLS_KDF_PARAMS_PTR
CK_SLOT_INFO CK_PTR CK_SLOT_INFO_PTR
CK_C_INITIALIZE_ARGS CK_PTR CK_C_INITIALIZE_ARGS_PTR
CK_BYTE CK_PTR CK_BYTE_PTR
CK_GOSTR3410_DERIVE_PARAMS CK_PTR CK_GOSTR3410_DERIVE_PARAMS_PTR
CK_TOKEN_INFO CK_PTR CK_TOKEN_INFO_PTR
CK_OTP_PARAMS CK_PTR CK_OTP_PARAMS_PTR
CK_OBJECT_HANDLE CK_PTR CK_OBJECT_HANDLE_PTR
struct CK_KEY_DERIVATION_STRING_DATA CK_KEY_DERIVATION_STRING_DATA
struct CK_DSA_PARAMETER_GEN_PARAM CK_DSA_PARAMETER_GEN_PARAM
struct CK_SLOT_INFO CK_SLOT_INFO
struct CK_SKIPJACK_PRIVATE_WRAP_PARAMS CK_SKIPJACK_PRIVATE_WRAP_PARAMS
struct CK_RC2_CBC_PARAMS CK_RC2_CBC_PARAMS
struct CK_TOKEN_INFO CK_TOKEN_INFO
CK_RC2_CBC_PARAMS CK_PTR CK_RC2_CBC_PARAMS_PTR
CK_RC5_CBC_PARAMS CK_PTR CK_RC5_CBC_PARAMS_PTR
CK_OTP_PARAM CK_PTR CK_OTP_PARAM_PTR
struct CK_X9_42_DH1_DERIVE_PARAMS CK_PTR CK_X9_42_DH1_DERIVE_PARAMS_PTR
CK_X9_42_DH_KDF_TYPE CK_PTR CK_X9_42_DH_KDF_TYPE_PTR
struct CK_X9_42_DH2_DERIVE_PARAMS CK_X9_42_DH2_DERIVE_PARAMS
struct CK_ATTRIBUTE CK_ATTRIBUTE
CK_EXTRACT_PARAMS CK_PTR CK_EXTRACT_PARAMS_PTR
CK_ULONG CK_SESSION_HANDLE
CK_MAC_GENERAL_PARAMS CK_PTR CK_MAC_GENERAL_PARAMS_PTR
struct CK_KEY_WRAP_SET_OAEP_PARAMS CK_KEY_WRAP_SET_OAEP_PARAMS
struct CK_DES_CBC_ENCRYPT_DATA_PARAMS CK_DES_CBC_ENCRYPT_DATA_PARAMS
CK_ATTRIBUTE CK_PTR CK_ATTRIBUTE_PTR
CK_X9_42_MQV_DERIVE_PARAMS CK_PTR CK_X9_42_MQV_DERIVE_PARAMS_PTR
CK_ULONG CK_OTP_PARAM_TYPE
CK_PBE_PARAMS CK_PTR CK_PBE_PARAMS_PTR
CK_MECHANISM_TYPE CK_PTR CK_MECHANISM_TYPE_PTR
struct CK_SSL3_KEY_MAT_PARAMS CK_SSL3_KEY_MAT_PARAMS
CK_RC2_PARAMS CK_PTR CK_RC2_PARAMS_PTR
struct CK_ECDH2_DERIVE_PARAMS CK_ECDH2_DERIVE_PARAMS
CK_KEY_WRAP_SET_OAEP_PARAMS CK_PTR CK_KEY_WRAP_SET_OAEP_PARAMS_PTR
CK_AES_CCM_PARAMS CK_PTR CK_AES_CCM_PARAMS_PTR
struct CK_MECHANISM_INFO CK_MECHANISM_INFO
struct CK_RC5_CBC_PARAMS CK_RC5_CBC_PARAMS
CK_OTP_PARAM_TYPE CK_PARAM_TYPE
CK_DSA_PARAMETER_GEN_PARAM CK_PTR CK_DSA_PARAMETER_GEN_PARAM_PTR
struct CK_PBE_PARAMS CK_PBE_PARAMS
CK_FUNCTION_LIST CK_PTR CK_FUNCTION_LIST_PTR
struct CK_SSL3_MASTER_KEY_DERIVE_PARAMS CK_PTR CK_SSL3_MASTER_KEY_DERIVE_PARAMS_PTR
CK_KEA_DERIVE_PARAMS CK_PTR CK_KEA_DERIVE_PARAMS_PTR
struct CK_OTP_PARAMS CK_OTP_PARAMS
struct CK_CMS_SIG_PARAMS CK_CMS_SIG_PARAMS
CK_MECHANISM_INFO CK_PTR CK_MECHANISM_INFO_PTR
struct CK_RC2_MAC_GENERAL_PARAMS CK_RC2_MAC_GENERAL_PARAMS
struct CK_SESSION_INFO CK_SESSION_INFO
CK_AES_CTR_PARAMS CK_PTR CK_AES_CTR_PARAMS_PTR
struct CK_ECMQV_DERIVE_PARAMS CK_ECMQV_DERIVE_PARAMS
CK_ULONG CK_RSA_PKCS_MGF_TYPE
struct CK_CCM_PARAMS CK_CCM_PARAMS
CK_RSA_PKCS_OAEP_SOURCE_TYPE CK_PTR CK_RSA_PKCS_OAEP_SOURCE_TYPE_PTR
struct CK_ECDH_AES_KEY_WRAP_PARAMS CK_ECDH_AES_KEY_WRAP_PARAMS
CK_ULONG CK_CERTIFICATE_CATEGORY
CK_X9_42_DH2_DERIVE_PARAMS CK_PTR CK_X9_42_DH2_DERIVE_PARAMS_PTR
CK_RSA_PKCS_PSS_PARAMS CK_PTR CK_RSA_PKCS_PSS_PARAMS_PTR
CK_ULONG CK_PKCS5_PBKD2_PSEUDO_RANDOM_FUNCTION_TYPE
CK_TLS_MAC_PARAMS CK_PTR CK_TLS_MAC_PARAMS_PTR
CK_RSA_PKCS_MGF_TYPE CK_PTR CK_RSA_PKCS_MGF_TYPE_PTR
CK_GCM_PARAMS CK_PTR CK_GCM_PARAMS_PTR
CK_ULONG CK_MAC_GENERAL_PARAMS
CK_ECDH_AES_KEY_WRAP_PARAMS CK_PTR CK_ECDH_AES_KEY_WRAP_PARAMS_PTR
CK_SSL3_KEY_MAT_PARAMS CK_PTR CK_SSL3_KEY_MAT_PARAMS_PTR
CK_CHAR CK_PTR CK_CHAR_PTR
struct CK_AES_GCM_PARAMS CK_AES_GCM_PARAMS
CK_ULONG CK_MECHANISM_TYPE
struct CK_GCM_PARAMS CK_GCM_PARAMS
struct CK_X9_42_MQV_DERIVE_PARAMS CK_X9_42_MQV_DERIVE_PARAMS
struct CK_RC5_PARAMS CK_RC5_PARAMS
CK_TLS12_KEY_MAT_PARAMS CK_PTR CK_TLS12_KEY_MAT_PARAMS_PTR
CK_ECDH2_DERIVE_PARAMS CK_PTR CK_ECDH2_DERIVE_PARAMS_PTR
CK_PKCS5_PBKD2_PARAMS CK_PTR CK_PKCS5_PBKD2_PARAMS_PTR
CK_WTLS_PRF_PARAMS CK_PTR CK_WTLS_PRF_PARAMS_PTR
CK_ULONG CK_EXTRACT_PARAMS
struct CK_AES_CTR_PARAMS CK_AES_CTR_PARAMS
struct CK_PKCS5_PBKD2_PARAMS2 CK_PKCS5_PBKD2_PARAMS2
struct CK_KIP_PARAMS CK_KIP_PARAMS
CK_ULONG CK_CERTIFICATE_TYPE
struct CK_RSA_PKCS_PSS_PARAMS CK_RSA_PKCS_PSS_PARAMS
CK_RSA_PKCS_OAEP_PARAMS CK_PTR CK_RSA_PKCS_OAEP_PARAMS_PTR
CK_SLOT_ID CK_PTR CK_SLOT_ID_PTR
CK_ULONG CK_OBJECT_HANDLE
CK_ULONG CK_HW_FEATURE_TYPE
struct CK_TLS12_MASTER_KEY_DERIVE_PARAMS CK_TLS12_MASTER_KEY_DERIVE_PARAMS
CK_PKCS5_PBKD2_PARAMS2 CK_PTR CK_PKCS5_PBKD2_PARAMS2_PTR
CK_CMS_SIG_PARAMS CK_PTR CK_CMS_SIG_PARAMS_PTR
CK_ULONG CK_ATTRIBUTE_TYPE
struct CK_CAMELLIA_CBC_ENCRYPT_DATA_PARAMS CK_CAMELLIA_CBC_ENCRYPT_DATA_PARAMS
struct CK_TLS_KDF_PARAMS CK_TLS_KDF_PARAMS
CK_SSL3_KEY_MAT_OUT CK_PTR CK_SSL3_KEY_MAT_OUT_PTR
CK_WTLS_KEY_MAT_PARAMS CK_PTR CK_WTLS_KEY_MAT_PARAMS_PTR
CK_ECMQV_DERIVE_PARAMS CK_PTR CK_ECMQV_DERIVE_PARAMS_PTR
struct CK_C_INITIALIZE_ARGS CK_C_INITIALIZE_ARGS
struct CK_MECHANISM CK_MECHANISM
struct CK_SSL3_MASTER_KEY_DERIVE_PARAMS CK_SSL3_MASTER_KEY_DERIVE_PARAMS
CK_VOID_PTR CK_PTR CK_VOID_PTR_PTR
CK_ULONG CK_JAVA_MIDP_SECURITY_DOMAIN
CK_AES_CBC_ENCRYPT_DATA_PARAMS CK_PTR CK_AES_CBC_ENCRYPT_DATA_PARAMS_PTR
CK_GOSTR3410_KEY_WRAP_PARAMS CK_PTR CK_GOSTR3410_KEY_WRAP_PARAMS_PTR
struct CK_WTLS_PRF_PARAMS CK_WTLS_PRF_PARAMS
CK_AES_GCM_PARAMS CK_PTR CK_AES_GCM_PARAMS_PTR
CK_OBJECT_CLASS CK_PTR CK_OBJECT_CLASS_PTR
struct CK_SEED_CBC_ENCRYPT_DATA_PARAMS CK_SEED_CBC_ENCRYPT_DATA_PARAMS
struct CK_WTLS_KEY_MAT_PARAMS CK_WTLS_KEY_MAT_PARAMS
CK_SESSION_HANDLE CK_PTR CK_SESSION_HANDLE_PTR
CK_VERSION CK_PTR CK_VERSION_PTR
CK_ULONG CK_PTR CK_ULONG_PTR
CK_UTF8CHAR CK_PTR CK_UTF8CHAR_PTR
struct CK_GOSTR3410_DERIVE_PARAMS CK_GOSTR3410_DERIVE_PARAMS
CK_MECHANISM CK_PTR CK_MECHANISM_PTR
struct CK_ECDH1_DERIVE_PARAMS CK_ECDH1_DERIVE_PARAMS
struct CK_RSA_PKCS_OAEP_PARAMS CK_RSA_PKCS_OAEP_PARAMS
struct CK_PKCS5_PBKD2_PARAMS CK_PKCS5_PBKD2_PARAMS
struct CK_SKIPJACK_RELAYX_PARAMS CK_SKIPJACK_RELAYX_PARAMS
CK_ULONG ulRequiredAttributesLen
CK_MECHANISM_PTR pSigningMechanism
CK_BYTE_PTR pRequestedAttributes
CK_MECHANISM_PTR pDigestMechanism
CK_UTF8CHAR_PTR pContentType
CK_BYTE_PTR pRequiredAttributes
CK_OBJECT_HANDLE certificateHandle
CK_ULONG ulRequestedAttributesLen
CK_UNLOCKMUTEX UnlockMutex
CK_DESTROYMUTEX DestroyMutex
CK_CREATEMUTEX CreateMutex
CK_ULONG ulPrivateDataLen
CK_OBJECT_HANDLE hPrivateData
CK_ULONG ulPublicDataLen2
CK_ULONG ulPublicDataLen2
CK_OBJECT_HANDLE publicKey
CK_OBJECT_HANDLE hPrivateData
CK_ULONG ulPrivateDataLen
CK_VERSION cryptokiVersion
CK_VERSION libraryVersion
CK_UTF8CHAR manufacturerID[32]
CK_UTF8CHAR libraryDescription[32]
CK_MECHANISM_PTR pMechanism
CK_MECHANISM_TYPE mechanism
CK_UTF8CHAR_PTR pPassword
CK_PKCS5_PBKDF2_SALT_SOURCE_TYPE saltSource
CK_PKCS5_PBKD2_PSEUDO_RANDOM_FUNCTION_TYPE prf
CK_UTF8CHAR_PTR pPassword
CK_VOID_PTR pSaltSourceData
CK_ULONG ulSaltSourceDataLen
CK_UTF8CHAR_PTR pPassword
CK_PKCS5_PBKD2_PSEUDO_RANDOM_FUNCTION_TYPE prf
CK_ULONG_PTR ulPasswordLen
CK_ULONG ulSaltSourceDataLen
CK_VOID_PTR pSaltSourceData
CK_PKCS5_PBKDF2_SALT_SOURCE_TYPE saltSource
CK_RSA_PKCS_OAEP_PARAMS_PTR pOAEPParams
CK_MECHANISM_TYPE hashAlg
CK_RSA_PKCS_OAEP_SOURCE_TYPE source
CK_MECHANISM_TYPE hashAlg
CK_ULONG ulOldPublicDataLen
CK_BYTE_PTR pOldPublicData
CK_ULONG ulOldPasswordLen
CK_ULONG ulOldWrappedXLen
CK_BYTE_PTR pNewPublicData
CK_ULONG ulNewPasswordLen
CK_ULONG ulNewPublicDataLen
CK_VERSION firmwareVersion
CK_UTF8CHAR slotDescription[64]
CK_VERSION hardwareVersion
CK_UTF8CHAR manufacturerID[32]
CK_OBJECT_HANDLE hServerKey
CK_OBJECT_HANDLE hServerMacSecret
CK_OBJECT_HANDLE hClientMacSecret
CK_OBJECT_HANDLE hClientKey
CK_SSL3_RANDOM_DATA RandomInfo
CK_SSL3_KEY_MAT_OUT_PTR pReturnedKeyMaterial
CK_SSL3_RANDOM_DATA RandomInfo
CK_ULONG ulServerRandomLen
CK_BYTE_PTR pClientRandom
CK_ULONG ulClientRandomLen
CK_BYTE_PTR pServerRandom
CK_SSL3_KEY_MAT_OUT_PTR pReturnedKeyMaterial
CK_MECHANISM_TYPE prfHashMechanism
CK_SSL3_RANDOM_DATA RandomInfo
CK_MECHANISM_TYPE prfHashMechanism
CK_SSL3_RANDOM_DATA RandomInfo
CK_MECHANISM_TYPE prfMechanism
CK_ULONG ulContextDataLength
CK_SSL3_RANDOM_DATA RandomInfo
CK_ULONG ulServerOrClient
CK_MECHANISM_TYPE prfHashMechanism
CK_ULONG_PTR pulOutputLen
CK_ULONG ulTotalPrivateMemory
CK_UTF8CHAR manufacturerID[32]
CK_ULONG ulTotalPublicMemory
CK_VERSION firmwareVersion
CK_ULONG ulMaxRwSessionCount
CK_ULONG ulRwSessionCount
CK_VERSION hardwareVersion
CK_ULONG ulMaxSessionCount
CK_ULONG ulFreePrivateMemory
CK_ULONG ulFreePublicMemory
CK_OBJECT_HANDLE hMacSecret
CK_WTLS_KEY_MAT_OUT_PTR pReturnedKeyMaterial
CK_ULONG ulSequenceNumber
CK_WTLS_RANDOM_DATA RandomInfo
CK_MECHANISM_TYPE DigestMechanism
CK_MECHANISM_TYPE DigestMechanism
CK_WTLS_RANDOM_DATA RandomInfo
CK_ULONG_PTR pulOutputLen
CK_MECHANISM_TYPE DigestMechanism
CK_BYTE_PTR pClientRandom
CK_BYTE_PTR pServerRandom
CK_ULONG ulServerRandomLen
CK_ULONG ulClientRandomLen
CK_ULONG ulPrivateDataLen
CK_ULONG ulPublicDataLen2
CK_OBJECT_HANDLE hPrivateData
CK_OBJECT_HANDLE hPrivateData
CK_OBJECT_HANDLE publicKey
CK_ULONG ulPublicDataLen2
CK_ULONG ulPrivateDataLen