Go to the documentation of this file.
26 #define CRYPTOKI_VERSION_MAJOR 2
27 #define CRYPTOKI_VERSION_MINOR 20
28 #define CRYPTOKI_VERSION_AMENDMENT 3
33 #ifndef CK_DISABLE_TRUE_FALSE
35 #define FALSE CK_FALSE
67 #define CK_UNAVAILABLE_INFORMATION (~0UL)
68 #define CK_EFFECTIVELY_INFINITE 0
83 #define CK_INVALID_HANDLE 0
114 #define CKN_SURRENDER 0
117 #define CKN_OTP_CHANGED 1
141 #define CKF_TOKEN_PRESENT 0x00000001
142 #define CKF_REMOVABLE_DEVICE 0x00000002
143 #define CKF_HW_SLOT 0x00000004
182 #define CKF_RNG 0x00000001
184 #define CKF_WRITE_PROTECTED 0x00000002
187 #define CKF_LOGIN_REQUIRED 0x00000004
189 #define CKF_USER_PIN_INITIALIZED 0x00000008
196 #define CKF_RESTORE_KEY_NOT_NEEDED 0x00000020
201 #define CKF_CLOCK_ON_TOKEN 0x00000040
206 #define CKF_PROTECTED_AUTHENTICATION_PATH 0x00000100
213 #define CKF_DUAL_CRYPTO_OPERATIONS 0x00000200
220 #define CKF_TOKEN_INITIALIZED 0x00000400
226 #define CKF_SECONDARY_AUTHENTICATION 0x00000800
231 #define CKF_USER_PIN_COUNT_LOW 0x00010000
235 #define CKF_USER_PIN_FINAL_TRY 0x00020000
240 #define CKF_USER_PIN_LOCKED 0x00040000
246 #define CKF_USER_PIN_TO_BE_CHANGED 0x00080000
251 #define CKF_SO_PIN_COUNT_LOW 0x00100000
255 #define CKF_SO_PIN_FINAL_TRY 0x00200000
260 #define CKF_SO_PIN_LOCKED 0x00400000
266 #define CKF_SO_PIN_TO_BE_CHANGED 0x00800000
287 #define CKU_CONTEXT_SPECIFIC 2
293 #define CKS_RO_PUBLIC_SESSION 0
294 #define CKS_RO_USER_FUNCTIONS 1
295 #define CKS_RW_PUBLIC_SESSION 2
296 #define CKS_RW_USER_FUNCTIONS 3
297 #define CKS_RW_SO_FUNCTIONS 4
314 #define CKF_RW_SESSION 0x00000002
315 #define CKF_SERIAL_SESSION 0x00000004
338 #define CKO_DATA 0x00000000
339 #define CKO_CERTIFICATE 0x00000001
340 #define CKO_PUBLIC_KEY 0x00000002
341 #define CKO_PRIVATE_KEY 0x00000003
342 #define CKO_SECRET_KEY 0x00000004
343 #define CKO_HW_FEATURE 0x00000005
344 #define CKO_DOMAIN_PARAMETERS 0x00000006
345 #define CKO_MECHANISM 0x00000007
348 #define CKO_OTP_KEY 0x00000008
350 #define CKO_VENDOR_DEFINED 0x80000000
361 #define CKH_MONOTONIC_COUNTER 0x00000001
362 #define CKH_CLOCK 0x00000002
363 #define CKH_USER_INTERFACE 0x00000003
364 #define CKH_VENDOR_DEFINED 0x80000000
371 #define CKK_RSA 0x00000000
372 #define CKK_DSA 0x00000001
373 #define CKK_DH 0x00000002
377 #define CKK_ECDSA 0x00000003
378 #define CKK_EC 0x00000003
379 #define CKK_X9_42_DH 0x00000004
380 #define CKK_KEA 0x00000005
382 #define CKK_GENERIC_SECRET 0x00000010
383 #define CKK_RC2 0x00000011
384 #define CKK_RC4 0x00000012
385 #define CKK_DES 0x00000013
386 #define CKK_DES2 0x00000014
387 #define CKK_DES3 0x00000015
390 #define CKK_CAST 0x00000016
391 #define CKK_CAST3 0x00000017
393 #define CKK_CAST5 0x00000018
394 #define CKK_CAST128 0x00000018
395 #define CKK_RC5 0x00000019
396 #define CKK_IDEA 0x0000001A
397 #define CKK_SKIPJACK 0x0000001B
398 #define CKK_BATON 0x0000001C
399 #define CKK_JUNIPER 0x0000001D
400 #define CKK_CDMF 0x0000001E
401 #define CKK_AES 0x0000001F
404 #define CKK_BLOWFISH 0x00000020
405 #define CKK_TWOFISH 0x00000021
408 #define CKK_SECURID 0x00000022
409 #define CKK_HOTP 0x00000023
410 #define CKK_ACTI 0x00000024
413 #define CKK_CAMELLIA 0x00000025
415 #define CKK_ARIA 0x00000026
418 #define CKK_VENDOR_DEFINED 0x80000000
430 #define CKC_X_509 0x00000000
431 #define CKC_X_509_ATTR_CERT 0x00000001
432 #define CKC_WTLS 0x00000002
433 #define CKC_VENDOR_DEFINED 0x80000000
444 #define CKF_ARRAY_ATTRIBUTE 0x40000000
448 #define CK_OTP_FORMAT_DECIMAL 0
449 #define CK_OTP_FORMAT_HEXADECIMAL 1
450 #define CK_OTP_FORMAT_ALPHANUMERIC 2
451 #define CK_OTP_FORMAT_BINARY 3
455 #define CK_OTP_PARAM_IGNORED 0
456 #define CK_OTP_PARAM_OPTIONAL 1
457 #define CK_OTP_PARAM_MANDATORY 2
460 #define CKA_CLASS 0x00000000
461 #define CKA_TOKEN 0x00000001
462 #define CKA_PRIVATE 0x00000002
463 #define CKA_LABEL 0x00000003
464 #define CKA_APPLICATION 0x00000010
465 #define CKA_VALUE 0x00000011
468 #define CKA_OBJECT_ID 0x00000012
470 #define CKA_CERTIFICATE_TYPE 0x00000080
471 #define CKA_ISSUER 0x00000081
472 #define CKA_SERIAL_NUMBER 0x00000082
476 #define CKA_AC_ISSUER 0x00000083
477 #define CKA_OWNER 0x00000084
478 #define CKA_ATTR_TYPES 0x00000085
481 #define CKA_TRUSTED 0x00000086
485 #define CKA_CERTIFICATE_CATEGORY 0x00000087
486 #define CKA_JAVA_MIDP_SECURITY_DOMAIN 0x00000088
487 #define CKA_URL 0x00000089
488 #define CKA_HASH_OF_SUBJECT_PUBLIC_KEY 0x0000008A
489 #define CKA_HASH_OF_ISSUER_PUBLIC_KEY 0x0000008B
490 #define CKA_CHECK_VALUE 0x00000090
492 #define CKA_KEY_TYPE 0x00000100
493 #define CKA_SUBJECT 0x00000101
494 #define CKA_ID 0x00000102
495 #define CKA_SENSITIVE 0x00000103
496 #define CKA_ENCRYPT 0x00000104
497 #define CKA_DECRYPT 0x00000105
498 #define CKA_WRAP 0x00000106
499 #define CKA_UNWRAP 0x00000107
500 #define CKA_SIGN 0x00000108
501 #define CKA_SIGN_RECOVER 0x00000109
502 #define CKA_VERIFY 0x0000010A
503 #define CKA_VERIFY_RECOVER 0x0000010B
504 #define CKA_DERIVE 0x0000010C
505 #define CKA_START_DATE 0x00000110
506 #define CKA_END_DATE 0x00000111
507 #define CKA_MODULUS 0x00000120
508 #define CKA_MODULUS_BITS 0x00000121
509 #define CKA_PUBLIC_EXPONENT 0x00000122
510 #define CKA_PRIVATE_EXPONENT 0x00000123
511 #define CKA_PRIME_1 0x00000124
512 #define CKA_PRIME_2 0x00000125
513 #define CKA_EXPONENT_1 0x00000126
514 #define CKA_EXPONENT_2 0x00000127
515 #define CKA_COEFFICIENT 0x00000128
516 #define CKA_PRIME 0x00000130
517 #define CKA_SUBPRIME 0x00000131
518 #define CKA_BASE 0x00000132
521 #define CKA_PRIME_BITS 0x00000133
522 #define CKA_SUBPRIME_BITS 0x00000134
523 #define CKA_SUB_PRIME_BITS CKA_SUBPRIME_BITS
526 #define CKA_VALUE_BITS 0x00000160
527 #define CKA_VALUE_LEN 0x00000161
532 #define CKA_EXTRACTABLE 0x00000162
533 #define CKA_LOCAL 0x00000163
534 #define CKA_NEVER_EXTRACTABLE 0x00000164
535 #define CKA_ALWAYS_SENSITIVE 0x00000165
538 #define CKA_KEY_GEN_MECHANISM 0x00000166
540 #define CKA_MODIFIABLE 0x00000170
544 #define CKA_ECDSA_PARAMS 0x00000180
545 #define CKA_EC_PARAMS 0x00000180
547 #define CKA_EC_POINT 0x00000181
551 #define CKA_SECONDARY_AUTH 0x00000200
552 #define CKA_AUTH_PIN_FLAGS 0x00000201
556 #define CKA_ALWAYS_AUTHENTICATE 0x00000202
558 #define CKA_WRAP_WITH_TRUSTED 0x00000210
559 #define CKA_WRAP_TEMPLATE (CKF_ARRAY_ATTRIBUTE|0x00000211)
560 #define CKA_UNWRAP_TEMPLATE (CKF_ARRAY_ATTRIBUTE|0x00000212)
563 #define CKA_OTP_FORMAT 0x00000220
564 #define CKA_OTP_LENGTH 0x00000221
565 #define CKA_OTP_TIME_INTERVAL 0x00000222
566 #define CKA_OTP_USER_FRIENDLY_MODE 0x00000223
567 #define CKA_OTP_CHALLENGE_REQUIREMENT 0x00000224
568 #define CKA_OTP_TIME_REQUIREMENT 0x00000225
569 #define CKA_OTP_COUNTER_REQUIREMENT 0x00000226
570 #define CKA_OTP_PIN_REQUIREMENT 0x00000227
571 #define CKA_OTP_COUNTER 0x0000022E
572 #define CKA_OTP_TIME 0x0000022F
573 #define CKA_OTP_USER_IDENTIFIER 0x0000022A
574 #define CKA_OTP_SERVICE_IDENTIFIER 0x0000022B
575 #define CKA_OTP_SERVICE_LOGO 0x0000022C
576 #define CKA_OTP_SERVICE_LOGO_TYPE 0x0000022D
581 #define CKA_HW_FEATURE_TYPE 0x00000300
582 #define CKA_RESET_ON_INIT 0x00000301
583 #define CKA_HAS_RESET 0x00000302
586 #define CKA_PIXEL_X 0x00000400
587 #define CKA_PIXEL_Y 0x00000401
588 #define CKA_RESOLUTION 0x00000402
589 #define CKA_CHAR_ROWS 0x00000403
590 #define CKA_CHAR_COLUMNS 0x00000404
591 #define CKA_COLOR 0x00000405
592 #define CKA_BITS_PER_PIXEL 0x00000406
593 #define CKA_CHAR_SETS 0x00000480
594 #define CKA_ENCODING_METHODS 0x00000481
595 #define CKA_MIME_TYPES 0x00000482
596 #define CKA_MECHANISM_TYPE 0x00000500
597 #define CKA_REQUIRED_CMS_ATTRIBUTES 0x00000501
598 #define CKA_DEFAULT_CMS_ATTRIBUTES 0x00000502
599 #define CKA_SUPPORTED_CMS_ATTRIBUTES 0x00000503
600 #define CKA_ALLOWED_MECHANISMS (CKF_ARRAY_ATTRIBUTE|0x00000600)
602 #define CKA_VENDOR_DEFINED 0x80000000
632 #define CKM_RSA_PKCS_KEY_PAIR_GEN 0x00000000
633 #define CKM_RSA_PKCS 0x00000001
634 #define CKM_RSA_9796 0x00000002
635 #define CKM_RSA_X_509 0x00000003
639 #define CKM_MD2_RSA_PKCS 0x00000004
640 #define CKM_MD5_RSA_PKCS 0x00000005
641 #define CKM_SHA1_RSA_PKCS 0x00000006
645 #define CKM_RIPEMD128_RSA_PKCS 0x00000007
646 #define CKM_RIPEMD160_RSA_PKCS 0x00000008
647 #define CKM_RSA_PKCS_OAEP 0x00000009
651 #define CKM_RSA_X9_31_KEY_PAIR_GEN 0x0000000A
652 #define CKM_RSA_X9_31 0x0000000B
653 #define CKM_SHA1_RSA_X9_31 0x0000000C
654 #define CKM_RSA_PKCS_PSS 0x0000000D
655 #define CKM_SHA1_RSA_PKCS_PSS 0x0000000E
657 #define CKM_DSA_KEY_PAIR_GEN 0x00000010
658 #define CKM_DSA 0x00000011
659 #define CKM_DSA_SHA1 0x00000012
660 #define CKM_DH_PKCS_KEY_PAIR_GEN 0x00000020
661 #define CKM_DH_PKCS_DERIVE 0x00000021
666 #define CKM_X9_42_DH_KEY_PAIR_GEN 0x00000030
667 #define CKM_X9_42_DH_DERIVE 0x00000031
668 #define CKM_X9_42_DH_HYBRID_DERIVE 0x00000032
669 #define CKM_X9_42_MQV_DERIVE 0x00000033
672 #define CKM_SHA256_RSA_PKCS 0x00000040
673 #define CKM_SHA384_RSA_PKCS 0x00000041
674 #define CKM_SHA512_RSA_PKCS 0x00000042
675 #define CKM_SHA256_RSA_PKCS_PSS 0x00000043
676 #define CKM_SHA384_RSA_PKCS_PSS 0x00000044
677 #define CKM_SHA512_RSA_PKCS_PSS 0x00000045
680 #define CKM_SHA224_RSA_PKCS 0x00000046
681 #define CKM_SHA224_RSA_PKCS_PSS 0x00000047
683 #define CKM_RC2_KEY_GEN 0x00000100
684 #define CKM_RC2_ECB 0x00000101
685 #define CKM_RC2_CBC 0x00000102
686 #define CKM_RC2_MAC 0x00000103
689 #define CKM_RC2_MAC_GENERAL 0x00000104
690 #define CKM_RC2_CBC_PAD 0x00000105
692 #define CKM_RC4_KEY_GEN 0x00000110
693 #define CKM_RC4 0x00000111
694 #define CKM_DES_KEY_GEN 0x00000120
695 #define CKM_DES_ECB 0x00000121
696 #define CKM_DES_CBC 0x00000122
697 #define CKM_DES_MAC 0x00000123
700 #define CKM_DES_MAC_GENERAL 0x00000124
701 #define CKM_DES_CBC_PAD 0x00000125
703 #define CKM_DES2_KEY_GEN 0x00000130
704 #define CKM_DES3_KEY_GEN 0x00000131
705 #define CKM_DES3_ECB 0x00000132
706 #define CKM_DES3_CBC 0x00000133
707 #define CKM_DES3_MAC 0x00000134
712 #define CKM_DES3_MAC_GENERAL 0x00000135
713 #define CKM_DES3_CBC_PAD 0x00000136
714 #define CKM_CDMF_KEY_GEN 0x00000140
715 #define CKM_CDMF_ECB 0x00000141
716 #define CKM_CDMF_CBC 0x00000142
717 #define CKM_CDMF_MAC 0x00000143
718 #define CKM_CDMF_MAC_GENERAL 0x00000144
719 #define CKM_CDMF_CBC_PAD 0x00000145
722 #define CKM_DES_OFB64 0x00000150
723 #define CKM_DES_OFB8 0x00000151
724 #define CKM_DES_CFB64 0x00000152
725 #define CKM_DES_CFB8 0x00000153
727 #define CKM_MD2 0x00000200
730 #define CKM_MD2_HMAC 0x00000201
731 #define CKM_MD2_HMAC_GENERAL 0x00000202
733 #define CKM_MD5 0x00000210
736 #define CKM_MD5_HMAC 0x00000211
737 #define CKM_MD5_HMAC_GENERAL 0x00000212
739 #define CKM_SHA_1 0x00000220
742 #define CKM_SHA_1_HMAC 0x00000221
743 #define CKM_SHA_1_HMAC_GENERAL 0x00000222
748 #define CKM_RIPEMD128 0x00000230
749 #define CKM_RIPEMD128_HMAC 0x00000231
750 #define CKM_RIPEMD128_HMAC_GENERAL 0x00000232
751 #define CKM_RIPEMD160 0x00000240
752 #define CKM_RIPEMD160_HMAC 0x00000241
753 #define CKM_RIPEMD160_HMAC_GENERAL 0x00000242
756 #define CKM_SHA256 0x00000250
757 #define CKM_SHA256_HMAC 0x00000251
758 #define CKM_SHA256_HMAC_GENERAL 0x00000252
761 #define CKM_SHA224 0x00000255
762 #define CKM_SHA224_HMAC 0x00000256
763 #define CKM_SHA224_HMAC_GENERAL 0x00000257
765 #define CKM_SHA384 0x00000260
766 #define CKM_SHA384_HMAC 0x00000261
767 #define CKM_SHA384_HMAC_GENERAL 0x00000262
768 #define CKM_SHA512 0x00000270
769 #define CKM_SHA512_HMAC 0x00000271
770 #define CKM_SHA512_HMAC_GENERAL 0x00000272
773 #define CKM_SECURID_KEY_GEN 0x00000280
774 #define CKM_SECURID 0x00000282
777 #define CKM_HOTP_KEY_GEN 0x00000290
778 #define CKM_HOTP 0x00000291
781 #define CKM_ACTI 0x000002A0
782 #define CKM_ACTI_KEY_GEN 0x000002A1
786 #define CKM_CAST_KEY_GEN 0x00000300
787 #define CKM_CAST_ECB 0x00000301
788 #define CKM_CAST_CBC 0x00000302
789 #define CKM_CAST_MAC 0x00000303
790 #define CKM_CAST_MAC_GENERAL 0x00000304
791 #define CKM_CAST_CBC_PAD 0x00000305
792 #define CKM_CAST3_KEY_GEN 0x00000310
793 #define CKM_CAST3_ECB 0x00000311
794 #define CKM_CAST3_CBC 0x00000312
795 #define CKM_CAST3_MAC 0x00000313
796 #define CKM_CAST3_MAC_GENERAL 0x00000314
797 #define CKM_CAST3_CBC_PAD 0x00000315
798 #define CKM_CAST5_KEY_GEN 0x00000320
799 #define CKM_CAST128_KEY_GEN 0x00000320
800 #define CKM_CAST5_ECB 0x00000321
801 #define CKM_CAST128_ECB 0x00000321
802 #define CKM_CAST5_CBC 0x00000322
803 #define CKM_CAST128_CBC 0x00000322
804 #define CKM_CAST5_MAC 0x00000323
805 #define CKM_CAST128_MAC 0x00000323
806 #define CKM_CAST5_MAC_GENERAL 0x00000324
807 #define CKM_CAST128_MAC_GENERAL 0x00000324
808 #define CKM_CAST5_CBC_PAD 0x00000325
809 #define CKM_CAST128_CBC_PAD 0x00000325
810 #define CKM_RC5_KEY_GEN 0x00000330
811 #define CKM_RC5_ECB 0x00000331
812 #define CKM_RC5_CBC 0x00000332
813 #define CKM_RC5_MAC 0x00000333
814 #define CKM_RC5_MAC_GENERAL 0x00000334
815 #define CKM_RC5_CBC_PAD 0x00000335
816 #define CKM_IDEA_KEY_GEN 0x00000340
817 #define CKM_IDEA_ECB 0x00000341
818 #define CKM_IDEA_CBC 0x00000342
819 #define CKM_IDEA_MAC 0x00000343
820 #define CKM_IDEA_MAC_GENERAL 0x00000344
821 #define CKM_IDEA_CBC_PAD 0x00000345
822 #define CKM_GENERIC_SECRET_KEY_GEN 0x00000350
823 #define CKM_CONCATENATE_BASE_AND_KEY 0x00000360
824 #define CKM_CONCATENATE_BASE_AND_DATA 0x00000362
825 #define CKM_CONCATENATE_DATA_AND_BASE 0x00000363
826 #define CKM_XOR_BASE_AND_DATA 0x00000364
827 #define CKM_EXTRACT_KEY_FROM_KEY 0x00000365
828 #define CKM_SSL3_PRE_MASTER_KEY_GEN 0x00000370
829 #define CKM_SSL3_MASTER_KEY_DERIVE 0x00000371
830 #define CKM_SSL3_KEY_AND_MAC_DERIVE 0x00000372
835 #define CKM_SSL3_MASTER_KEY_DERIVE_DH 0x00000373
836 #define CKM_TLS_PRE_MASTER_KEY_GEN 0x00000374
837 #define CKM_TLS_MASTER_KEY_DERIVE 0x00000375
838 #define CKM_TLS_KEY_AND_MAC_DERIVE 0x00000376
839 #define CKM_TLS_MASTER_KEY_DERIVE_DH 0x00000377
842 #define CKM_TLS_PRF 0x00000378
844 #define CKM_SSL3_MD5_MAC 0x00000380
845 #define CKM_SSL3_SHA1_MAC 0x00000381
846 #define CKM_MD5_KEY_DERIVATION 0x00000390
847 #define CKM_MD2_KEY_DERIVATION 0x00000391
848 #define CKM_SHA1_KEY_DERIVATION 0x00000392
851 #define CKM_SHA256_KEY_DERIVATION 0x00000393
852 #define CKM_SHA384_KEY_DERIVATION 0x00000394
853 #define CKM_SHA512_KEY_DERIVATION 0x00000395
856 #define CKM_SHA224_KEY_DERIVATION 0x00000396
858 #define CKM_PBE_MD2_DES_CBC 0x000003A0
859 #define CKM_PBE_MD5_DES_CBC 0x000003A1
860 #define CKM_PBE_MD5_CAST_CBC 0x000003A2
861 #define CKM_PBE_MD5_CAST3_CBC 0x000003A3
862 #define CKM_PBE_MD5_CAST5_CBC 0x000003A4
863 #define CKM_PBE_MD5_CAST128_CBC 0x000003A4
864 #define CKM_PBE_SHA1_CAST5_CBC 0x000003A5
865 #define CKM_PBE_SHA1_CAST128_CBC 0x000003A5
866 #define CKM_PBE_SHA1_RC4_128 0x000003A6
867 #define CKM_PBE_SHA1_RC4_40 0x000003A7
868 #define CKM_PBE_SHA1_DES3_EDE_CBC 0x000003A8
869 #define CKM_PBE_SHA1_DES2_EDE_CBC 0x000003A9
870 #define CKM_PBE_SHA1_RC2_128_CBC 0x000003AA
871 #define CKM_PBE_SHA1_RC2_40_CBC 0x000003AB
874 #define CKM_PKCS5_PBKD2 0x000003B0
876 #define CKM_PBA_SHA1_WITH_SHA1_HMAC 0x000003C0
879 #define CKM_WTLS_PRE_MASTER_KEY_GEN 0x000003D0
880 #define CKM_WTLS_MASTER_KEY_DERIVE 0x000003D1
881 #define CKM_WTLS_MASTER_KEY_DERIVE_DH_ECC 0x000003D2
882 #define CKM_WTLS_PRF 0x000003D3
883 #define CKM_WTLS_SERVER_KEY_AND_MAC_DERIVE 0x000003D4
884 #define CKM_WTLS_CLIENT_KEY_AND_MAC_DERIVE 0x000003D5
886 #define CKM_KEY_WRAP_LYNKS 0x00000400
887 #define CKM_KEY_WRAP_SET_OAEP 0x00000401
890 #define CKM_CMS_SIG 0x00000500
893 #define CKM_KIP_DERIVE 0x00000510
894 #define CKM_KIP_WRAP 0x00000511
895 #define CKM_KIP_MAC 0x00000512
898 #define CKM_CAMELLIA_KEY_GEN 0x00000550
899 #define CKM_CAMELLIA_ECB 0x00000551
900 #define CKM_CAMELLIA_CBC 0x00000552
901 #define CKM_CAMELLIA_MAC 0x00000553
902 #define CKM_CAMELLIA_MAC_GENERAL 0x00000554
903 #define CKM_CAMELLIA_CBC_PAD 0x00000555
904 #define CKM_CAMELLIA_ECB_ENCRYPT_DATA 0x00000556
905 #define CKM_CAMELLIA_CBC_ENCRYPT_DATA 0x00000557
906 #define CKM_CAMELLIA_CTR 0x00000558
909 #define CKM_ARIA_KEY_GEN 0x00000560
910 #define CKM_ARIA_ECB 0x00000561
911 #define CKM_ARIA_CBC 0x00000562
912 #define CKM_ARIA_MAC 0x00000563
913 #define CKM_ARIA_MAC_GENERAL 0x00000564
914 #define CKM_ARIA_CBC_PAD 0x00000565
915 #define CKM_ARIA_ECB_ENCRYPT_DATA 0x00000566
916 #define CKM_ARIA_CBC_ENCRYPT_DATA 0x00000567
919 #define CKM_SKIPJACK_KEY_GEN 0x00001000
920 #define CKM_SKIPJACK_ECB64 0x00001001
921 #define CKM_SKIPJACK_CBC64 0x00001002
922 #define CKM_SKIPJACK_OFB64 0x00001003
923 #define CKM_SKIPJACK_CFB64 0x00001004
924 #define CKM_SKIPJACK_CFB32 0x00001005
925 #define CKM_SKIPJACK_CFB16 0x00001006
926 #define CKM_SKIPJACK_CFB8 0x00001007
927 #define CKM_SKIPJACK_WRAP 0x00001008
928 #define CKM_SKIPJACK_PRIVATE_WRAP 0x00001009
929 #define CKM_SKIPJACK_RELAYX 0x0000100a
930 #define CKM_KEA_KEY_PAIR_GEN 0x00001010
931 #define CKM_KEA_KEY_DERIVE 0x00001011
932 #define CKM_FORTEZZA_TIMESTAMP 0x00001020
933 #define CKM_BATON_KEY_GEN 0x00001030
934 #define CKM_BATON_ECB128 0x00001031
935 #define CKM_BATON_ECB96 0x00001032
936 #define CKM_BATON_CBC128 0x00001033
937 #define CKM_BATON_COUNTER 0x00001034
938 #define CKM_BATON_SHUFFLE 0x00001035
939 #define CKM_BATON_WRAP 0x00001036
943 #define CKM_ECDSA_KEY_PAIR_GEN 0x00001040
944 #define CKM_EC_KEY_PAIR_GEN 0x00001040
946 #define CKM_ECDSA 0x00001041
947 #define CKM_ECDSA_SHA1 0x00001042
951 #define CKM_ECDH1_DERIVE 0x00001050
952 #define CKM_ECDH1_COFACTOR_DERIVE 0x00001051
953 #define CKM_ECMQV_DERIVE 0x00001052
955 #define CKM_JUNIPER_KEY_GEN 0x00001060
956 #define CKM_JUNIPER_ECB128 0x00001061
957 #define CKM_JUNIPER_CBC128 0x00001062
958 #define CKM_JUNIPER_COUNTER 0x00001063
959 #define CKM_JUNIPER_SHUFFLE 0x00001064
960 #define CKM_JUNIPER_WRAP 0x00001065
961 #define CKM_FASTHASH 0x00001070
967 #define CKM_AES_KEY_GEN 0x00001080
968 #define CKM_AES_ECB 0x00001081
969 #define CKM_AES_CBC 0x00001082
970 #define CKM_AES_MAC 0x00001083
971 #define CKM_AES_MAC_GENERAL 0x00001084
972 #define CKM_AES_CBC_PAD 0x00001085
975 #define CKM_AES_CTR 0x00001086
978 #define CKM_BLOWFISH_KEY_GEN 0x00001090
979 #define CKM_BLOWFISH_CBC 0x00001091
980 #define CKM_TWOFISH_KEY_GEN 0x00001092
981 #define CKM_TWOFISH_CBC 0x00001093
985 #define CKM_DES_ECB_ENCRYPT_DATA 0x00001100
986 #define CKM_DES_CBC_ENCRYPT_DATA 0x00001101
987 #define CKM_DES3_ECB_ENCRYPT_DATA 0x00001102
988 #define CKM_DES3_CBC_ENCRYPT_DATA 0x00001103
989 #define CKM_AES_ECB_ENCRYPT_DATA 0x00001104
990 #define CKM_AES_CBC_ENCRYPT_DATA 0x00001105
992 #define CKM_DSA_PARAMETER_GEN 0x00002000
993 #define CKM_DH_PKCS_PARAMETER_GEN 0x00002001
994 #define CKM_X9_42_DH_PARAMETER_GEN 0x00002002
996 #define CKM_VENDOR_DEFINED 0x80000000
1025 #define CKF_HW 0x00000001
1032 #define CKF_ENCRYPT 0x00000100
1033 #define CKF_DECRYPT 0x00000200
1034 #define CKF_DIGEST 0x00000400
1035 #define CKF_SIGN 0x00000800
1036 #define CKF_SIGN_RECOVER 0x00001000
1037 #define CKF_VERIFY 0x00002000
1038 #define CKF_VERIFY_RECOVER 0x00004000
1039 #define CKF_GENERATE 0x00008000
1040 #define CKF_GENERATE_KEY_PAIR 0x00010000
1041 #define CKF_WRAP 0x00020000
1042 #define CKF_UNWRAP 0x00040000
1043 #define CKF_DERIVE 0x00080000
1049 #define CKF_EC_F_P 0x00100000
1050 #define CKF_EC_F_2M 0x00200000
1051 #define CKF_EC_ECPARAMETERS 0x00400000
1052 #define CKF_EC_NAMEDCURVE 0x00800000
1053 #define CKF_EC_UNCOMPRESS 0x01000000
1054 #define CKF_EC_COMPRESS 0x02000000
1056 #define CKF_EXTENSION 0x80000000
1066 #define CKR_OK 0x00000000
1067 #define CKR_CANCEL 0x00000001
1068 #define CKR_HOST_MEMORY 0x00000002
1069 #define CKR_SLOT_ID_INVALID 0x00000003
1074 #define CKR_GENERAL_ERROR 0x00000005
1075 #define CKR_FUNCTION_FAILED 0x00000006
1079 #define CKR_ARGUMENTS_BAD 0x00000007
1080 #define CKR_NO_EVENT 0x00000008
1081 #define CKR_NEED_TO_CREATE_THREADS 0x00000009
1082 #define CKR_CANT_LOCK 0x0000000A
1084 #define CKR_ATTRIBUTE_READ_ONLY 0x00000010
1085 #define CKR_ATTRIBUTE_SENSITIVE 0x00000011
1086 #define CKR_ATTRIBUTE_TYPE_INVALID 0x00000012
1087 #define CKR_ATTRIBUTE_VALUE_INVALID 0x00000013
1088 #define CKR_DATA_INVALID 0x00000020
1089 #define CKR_DATA_LEN_RANGE 0x00000021
1090 #define CKR_DEVICE_ERROR 0x00000030
1091 #define CKR_DEVICE_MEMORY 0x00000031
1092 #define CKR_DEVICE_REMOVED 0x00000032
1093 #define CKR_ENCRYPTED_DATA_INVALID 0x00000040
1094 #define CKR_ENCRYPTED_DATA_LEN_RANGE 0x00000041
1095 #define CKR_FUNCTION_CANCELED 0x00000050
1096 #define CKR_FUNCTION_NOT_PARALLEL 0x00000051
1099 #define CKR_FUNCTION_NOT_SUPPORTED 0x00000054
1101 #define CKR_KEY_HANDLE_INVALID 0x00000060
1105 #define CKR_KEY_SIZE_RANGE 0x00000062
1106 #define CKR_KEY_TYPE_INCONSISTENT 0x00000063
1112 #define CKR_KEY_NOT_NEEDED 0x00000064
1113 #define CKR_KEY_CHANGED 0x00000065
1114 #define CKR_KEY_NEEDED 0x00000066
1115 #define CKR_KEY_INDIGESTIBLE 0x00000067
1116 #define CKR_KEY_FUNCTION_NOT_PERMITTED 0x00000068
1117 #define CKR_KEY_NOT_WRAPPABLE 0x00000069
1118 #define CKR_KEY_UNEXTRACTABLE 0x0000006A
1120 #define CKR_MECHANISM_INVALID 0x00000070
1121 #define CKR_MECHANISM_PARAM_INVALID 0x00000071
1125 #define CKR_OBJECT_HANDLE_INVALID 0x00000082
1126 #define CKR_OPERATION_ACTIVE 0x00000090
1127 #define CKR_OPERATION_NOT_INITIALIZED 0x00000091
1128 #define CKR_PIN_INCORRECT 0x000000A0
1129 #define CKR_PIN_INVALID 0x000000A1
1130 #define CKR_PIN_LEN_RANGE 0x000000A2
1133 #define CKR_PIN_EXPIRED 0x000000A3
1134 #define CKR_PIN_LOCKED 0x000000A4
1136 #define CKR_SESSION_CLOSED 0x000000B0
1137 #define CKR_SESSION_COUNT 0x000000B1
1138 #define CKR_SESSION_HANDLE_INVALID 0x000000B3
1139 #define CKR_SESSION_PARALLEL_NOT_SUPPORTED 0x000000B4
1140 #define CKR_SESSION_READ_ONLY 0x000000B5
1141 #define CKR_SESSION_EXISTS 0x000000B6
1145 #define CKR_SESSION_READ_ONLY_EXISTS 0x000000B7
1146 #define CKR_SESSION_READ_WRITE_SO_EXISTS 0x000000B8
1148 #define CKR_SIGNATURE_INVALID 0x000000C0
1149 #define CKR_SIGNATURE_LEN_RANGE 0x000000C1
1150 #define CKR_TEMPLATE_INCOMPLETE 0x000000D0
1151 #define CKR_TEMPLATE_INCONSISTENT 0x000000D1
1152 #define CKR_TOKEN_NOT_PRESENT 0x000000E0
1153 #define CKR_TOKEN_NOT_RECOGNIZED 0x000000E1
1154 #define CKR_TOKEN_WRITE_PROTECTED 0x000000E2
1155 #define CKR_UNWRAPPING_KEY_HANDLE_INVALID 0x000000F0
1156 #define CKR_UNWRAPPING_KEY_SIZE_RANGE 0x000000F1
1157 #define CKR_UNWRAPPING_KEY_TYPE_INCONSISTENT 0x000000F2
1158 #define CKR_USER_ALREADY_LOGGED_IN 0x00000100
1159 #define CKR_USER_NOT_LOGGED_IN 0x00000101
1160 #define CKR_USER_PIN_NOT_INITIALIZED 0x00000102
1161 #define CKR_USER_TYPE_INVALID 0x00000103
1165 #define CKR_USER_ANOTHER_ALREADY_LOGGED_IN 0x00000104
1166 #define CKR_USER_TOO_MANY_TYPES 0x00000105
1168 #define CKR_WRAPPED_KEY_INVALID 0x00000110
1169 #define CKR_WRAPPED_KEY_LEN_RANGE 0x00000112
1170 #define CKR_WRAPPING_KEY_HANDLE_INVALID 0x00000113
1171 #define CKR_WRAPPING_KEY_SIZE_RANGE 0x00000114
1172 #define CKR_WRAPPING_KEY_TYPE_INCONSISTENT 0x00000115
1173 #define CKR_RANDOM_SEED_NOT_SUPPORTED 0x00000120
1176 #define CKR_RANDOM_NO_RNG 0x00000121
1179 #define CKR_DOMAIN_PARAMS_INVALID 0x00000130
1182 #define CKR_BUFFER_TOO_SMALL 0x00000150
1183 #define CKR_SAVED_STATE_INVALID 0x00000160
1184 #define CKR_INFORMATION_SENSITIVE 0x00000170
1185 #define CKR_STATE_UNSAVEABLE 0x00000180
1188 #define CKR_CRYPTOKI_NOT_INITIALIZED 0x00000190
1189 #define CKR_CRYPTOKI_ALREADY_INITIALIZED 0x00000191
1190 #define CKR_MUTEX_BAD 0x000001A0
1191 #define CKR_MUTEX_NOT_LOCKED 0x000001A1
1194 #define CKR_NEW_PIN_MODE 0x000001B0
1195 #define CKR_NEXT_OTP 0x000001B1
1198 #define CKR_FUNCTION_REJECTED 0x00000200
1200 #define CKR_VENDOR_DEFINED 0x80000000
1263 #define CKF_LIBRARY_CANT_CREATE_OS_THREADS 0x00000001
1264 #define CKF_OS_LOCKING_OK 0x00000002
1272 #define CKF_DONT_BLOCK 1
1286 #define CKG_MGF1_SHA1 0x00000001
1287 #define CKG_MGF1_SHA256 0x00000002
1288 #define CKG_MGF1_SHA384 0x00000003
1289 #define CKG_MGF1_SHA512 0x00000004
1291 #define CKG_MGF1_SHA224 0x00000005
1302 #define CKZ_DATA_SPECIFIED 0x00000001
1332 #define CKD_NULL 0x00000001
1333 #define CKD_SHA1_KDF 0x00000002
1390 #define CKD_SHA1_KDF_ASN1 0x00000003
1391 #define CKD_SHA1_KDF_CONCATENATE 0x00000004
1765 #define CKP_PKCS5_PBKD2_HMAC_SHA1 0x00000001
1777 #define CKZ_SALT_SPECIFIED 0x00000001
1824 #define CK_OTP_VALUE 0
1825 #define CK_OTP_PIN 1
1826 #define CK_OTP_CHALLENGE 2
1827 #define CK_OTP_TIME 3
1828 #define CK_OTP_COUNTER 4
1829 #define CK_OTP_FLAGS 5
1830 #define CK_OTP_OUTPUT_LENGTH 6
1831 #define CK_OTP_OUTPUT_FORMAT 7
1834 #define CKF_NEXT_OTP 0x00000001
1835 #define CKF_EXCLUDE_TIME 0x00000002
1836 #define CKF_EXCLUDE_COUNTER 0x00000004
1837 #define CKF_EXCLUDE_CHALLENGE 0x00000008
1838 #define CKF_EXCLUDE_PIN 0x00000010
1839 #define CKF_USER_FRIENDLY_OTP 0x00000020