Go to the source code of this file.
#define CK_FALSE 0 |
#define CK_INVALID_HANDLE 0 |
Definition at line 84 of file pkcs11t.h.
Referenced by free_session_list(), pk11_get_session(), pk11_rand_bytes(), pk11_rand_seed_fromfile(), and pk11_return_session().
#define CKF_RNG 0x00000001 |
#define CKU_USER 1 |
#define CKF_RW_SESSION 0x00000002 |
#define CKF_SERIAL_SESSION 0x00000004 |
#define CKA_LABEL 0x00000003 |
#define CKA_ID 0x00000102 |
#define CKA_WRAP_TEMPLATE (CKF_ARRAY_ATTRIBUTE|0x00000211) |
#define CKA_UNWRAP_TEMPLATE (CKF_ARRAY_ATTRIBUTE|0x00000212) |
#define CKA_ALLOWED_MECHANISMS (CKF_ARRAY_ATTRIBUTE|0x00000600) |
#define CKA_WRAP_TEMPLATE (CKF_ARRAY_ATTRIBUTE|0x00000211) |
#define CKA_UNWRAP_TEMPLATE (CKF_ARRAY_ATTRIBUTE|0x00000212) |
#define CKA_DERIVE_TEMPLATE (CKF_ARRAY_ATTRIBUTE|0x00000213) |
#define CKM_RSA_PKCS_KEY_PAIR_GEN 0x00000000 |
#define CKM_MD5_RSA_PKCS 0x00000005 |
#define CKM_SHA1_RSA_PKCS 0x00000006 |
#define CKM_DSA_KEY_PAIR_GEN 0x00000010 |
#define CKM_DSA_SHA1 0x00000012 |
#define CKM_DH_PKCS_KEY_PAIR_GEN 0x00000020 |
#define CKM_DH_PKCS_DERIVE 0x00000021 |
#define CKM_SHA256_RSA_PKCS 0x00000040 |
#define CKM_SHA512_RSA_PKCS 0x00000042 |
#define CKM_MD5 0x00000210 |
#define CKM_MD5_HMAC 0x00000211 |
#define CKM_SHA_1 0x00000220 |
#define CKM_SHA_1_HMAC 0x00000221 |
#define CKM_SHA256 0x00000250 |
#define CKM_SHA256_HMAC 0x00000251 |
#define CKM_SHA224 0x00000255 |
#define CKM_SHA224_HMAC 0x00000256 |
#define CKM_SHA384 0x00000260 |
#define CKM_SHA384_HMAC 0x00000261 |
#define CKM_SHA512 0x00000270 |
#define CKM_SHA512_HMAC 0x00000271 |
#define CKM_EC_KEY_PAIR_GEN 0x00001040 |
#define CKM_ECDSA 0x00001041 |
#define CKM_AES_ECB 0x00001081 |
#define CKM_GOSTR3410_KEY_PAIR_GEN 0x00001200 |
#define CKM_GOSTR3410_WITH_GOSTR3411 0x00001202 |
#define CKM_GOSTR3411 0x00001210 |
#define CKM_DSA_PARAMETER_GEN 0x00002000 |
#define CKM_DH_PKCS_PARAMETER_GEN 0x00002001 |
#define CKF_ENCRYPT 0x00000100 |
#define CKF_DIGEST 0x00000400 |
#define CKF_SIGN 0x00000800 |
#define CKF_VERIFY 0x00002000 |
#define CKF_GENERATE 0x00008000 |
#define CKF_GENERATE_KEY_PAIR 0x00010000 |
#define CKF_DERIVE 0x00080000 |
#define CKR_OK 0x00000000 |
Definition at line 1143 of file pkcs11t.h.
Referenced by choose_slots(), free_session_list(), pk11_initialize(), pk11_rand_bytes(), pkcs_C_Finalize(), setup_session(), and token_login().
#define CKR_LIBRARY_ALREADY_INITIALIZED 0x000000FD |
#define CKR_LIBRARY_FAILED_TO_LOAD 0x000000FE |
Definition at line 1240 of file pkcs11t.h.
Referenced by pkcs_C_CloseSession(), pkcs_C_CreateObject(), pkcs_C_DeriveKey(), pkcs_C_DestroyObject(), pkcs_C_DigestFinal(), pkcs_C_DigestInit(), pkcs_C_DigestUpdate(), pkcs_C_Encrypt(), pkcs_C_EncryptInit(), pkcs_C_Finalize(), pkcs_C_FindObjects(), pkcs_C_FindObjectsFinal(), pkcs_C_FindObjectsInit(), pkcs_C_GenerateKey(), pkcs_C_GenerateKeyPair(), pkcs_C_GenerateRandom(), pkcs_C_GetAttributeValue(), pkcs_C_GetMechanismInfo(), pkcs_C_GetSlotList(), pkcs_C_GetTokenInfo(), pkcs_C_Initialize(), pkcs_C_Login(), pkcs_C_Logout(), pkcs_C_OpenSession(), pkcs_C_SeedRandom(), pkcs_C_SetAttributeValue(), pkcs_C_Sign(), pkcs_C_SignFinal(), pkcs_C_SignInit(), pkcs_C_SignUpdate(), pkcs_C_Verify(), pkcs_C_VerifyFinal(), pkcs_C_VerifyInit(), and pkcs_C_VerifyUpdate().
#define CKR_SYMBOL_RESOLUTION_FAILED 0x000000FF |
Definition at line 1241 of file pkcs11t.h.
Referenced by pkcs_C_CloseSession(), pkcs_C_CreateObject(), pkcs_C_DeriveKey(), pkcs_C_DestroyObject(), pkcs_C_DigestFinal(), pkcs_C_DigestInit(), pkcs_C_DigestUpdate(), pkcs_C_Encrypt(), pkcs_C_EncryptInit(), pkcs_C_Finalize(), pkcs_C_FindObjects(), pkcs_C_FindObjectsFinal(), pkcs_C_FindObjectsInit(), pkcs_C_GenerateKey(), pkcs_C_GenerateKeyPair(), pkcs_C_GenerateRandom(), pkcs_C_GetAttributeValue(), pkcs_C_GetMechanismInfo(), pkcs_C_GetSlotList(), pkcs_C_GetTokenInfo(), pkcs_C_Initialize(), pkcs_C_Login(), pkcs_C_Logout(), pkcs_C_OpenSession(), pkcs_C_SeedRandom(), pkcs_C_SetAttributeValue(), pkcs_C_Sign(), pkcs_C_SignFinal(), pkcs_C_SignInit(), pkcs_C_SignUpdate(), pkcs_C_Verify(), pkcs_C_VerifyFinal(), pkcs_C_VerifyInit(), and pkcs_C_VerifyUpdate().
#define CKF_OS_LOCKING_OK 0x00000002 |
typedef CK_BYTE CK_UTF8CHAR |
typedef CK_BYTE CK_PTR CK_BYTE_PTR |
typedef CK_CHAR CK_PTR CK_CHAR_PTR |
typedef CK_UTF8CHAR CK_PTR CK_UTF8CHAR_PTR |
typedef CK_ULONG CK_PTR CK_ULONG_PTR |
typedef void CK_PTR CK_VOID_PTR |
typedef CK_VOID_PTR CK_PTR CK_VOID_PTR_PTR |
typedef CK_VERSION CK_PTR CK_VERSION_PTR |
typedef CK_INFO CK_PTR CK_INFO_PTR |
typedef CK_ULONG CK_NOTIFICATION |
typedef CK_ULONG CK_SLOT_ID |
typedef CK_SLOT_ID CK_PTR CK_SLOT_ID_PTR |
typedef CK_SLOT_INFO CK_PTR CK_SLOT_INFO_PTR |
typedef CK_TOKEN_INFO CK_PTR CK_TOKEN_INFO_PTR |
typedef CK_ULONG CK_SESSION_HANDLE |
typedef CK_SESSION_HANDLE CK_PTR CK_SESSION_HANDLE_PTR |
typedef CK_ULONG CK_USER_TYPE |
typedef CK_SESSION_INFO CK_PTR CK_SESSION_INFO_PTR |
typedef CK_ULONG CK_OBJECT_HANDLE |
typedef CK_OBJECT_HANDLE CK_PTR CK_OBJECT_HANDLE_PTR |
typedef CK_ULONG CK_OBJECT_CLASS |
typedef CK_OBJECT_CLASS CK_PTR CK_OBJECT_CLASS_PTR |
typedef CK_ULONG CK_HW_FEATURE_TYPE |
typedef CK_ULONG CK_KEY_TYPE |
typedef CK_ULONG CK_CERTIFICATE_TYPE |
typedef CK_ULONG CK_ATTRIBUTE_TYPE |
typedef CK_ATTRIBUTE CK_PTR CK_ATTRIBUTE_PTR |
typedef CK_ULONG CK_MECHANISM_TYPE |
typedef CK_MECHANISM_TYPE CK_PTR CK_MECHANISM_TYPE_PTR |
typedef CK_MECHANISM CK_PTR CK_MECHANISM_PTR |
typedef CK_MECHANISM_INFO CK_PTR CK_MECHANISM_INFO_PTR |
typedef CK_NOTIFICATION event |
typedef CK_NOTIFICATION CK_VOID_PTR pApplication |
typedef struct CK_FUNCTION_LIST CK_FUNCTION_LIST |
typedef CK_FUNCTION_LIST CK_PTR CK_FUNCTION_LIST_PTR |
typedef CK_FUNCTION_LIST_PTR CK_PTR CK_FUNCTION_LIST_PTR_PTR |
typedef CK_C_INITIALIZE_ARGS CK_PTR CK_C_INITIALIZE_ARGS_PTR |
typedef CK_ULONG CK_RSA_PKCS_MGF_TYPE |
typedef CK_RSA_PKCS_MGF_TYPE CK_PTR CK_RSA_PKCS_MGF_TYPE_PTR |
typedef CK_ULONG CK_RSA_PKCS_OAEP_SOURCE_TYPE |
typedef CK_RSA_PKCS_OAEP_SOURCE_TYPE CK_PTR CK_RSA_PKCS_OAEP_SOURCE_TYPE_PTR |
typedef CK_RSA_PKCS_OAEP_PARAMS CK_PTR CK_RSA_PKCS_OAEP_PARAMS_PTR |
typedef CK_RSA_PKCS_PSS_PARAMS CK_PTR CK_RSA_PKCS_PSS_PARAMS_PTR |
typedef CK_ULONG CK_EC_KDF_TYPE |
typedef CK_ECDH1_DERIVE_PARAMS CK_PTR CK_ECDH1_DERIVE_PARAMS_PTR |
typedef CK_ECDH2_DERIVE_PARAMS CK_PTR CK_ECDH2_DERIVE_PARAMS_PTR |
typedef CK_ECMQV_DERIVE_PARAMS CK_PTR CK_ECMQV_DERIVE_PARAMS_PTR |
typedef CK_ULONG CK_X9_42_DH_KDF_TYPE |
typedef CK_X9_42_DH_KDF_TYPE CK_PTR CK_X9_42_DH_KDF_TYPE_PTR |
typedef struct CK_X9_42_DH1_DERIVE_PARAMS CK_PTR CK_X9_42_DH1_DERIVE_PARAMS_PTR |
typedef CK_X9_42_DH2_DERIVE_PARAMS CK_PTR CK_X9_42_DH2_DERIVE_PARAMS_PTR |
typedef CK_X9_42_MQV_DERIVE_PARAMS CK_PTR CK_X9_42_MQV_DERIVE_PARAMS_PTR |
typedef CK_KEA_DERIVE_PARAMS CK_PTR CK_KEA_DERIVE_PARAMS_PTR |
typedef CK_ULONG CK_RC2_PARAMS |
typedef CK_RC2_PARAMS CK_PTR CK_RC2_PARAMS_PTR |
typedef CK_RC2_CBC_PARAMS CK_PTR CK_RC2_CBC_PARAMS_PTR |
typedef CK_RC2_MAC_GENERAL_PARAMS CK_PTR CK_RC2_MAC_GENERAL_PARAMS_PTR |
typedef CK_RC5_PARAMS CK_PTR CK_RC5_PARAMS_PTR |
typedef CK_RC5_CBC_PARAMS CK_PTR CK_RC5_CBC_PARAMS_PTR |
typedef CK_RC5_MAC_GENERAL_PARAMS CK_PTR CK_RC5_MAC_GENERAL_PARAMS_PTR |
typedef CK_ULONG CK_MAC_GENERAL_PARAMS |
typedef CK_MAC_GENERAL_PARAMS CK_PTR CK_MAC_GENERAL_PARAMS_PTR |
typedef CK_DES_CBC_ENCRYPT_DATA_PARAMS CK_PTR CK_DES_CBC_ENCRYPT_DATA_PARAMS_PTR |
typedef CK_AES_CBC_ENCRYPT_DATA_PARAMS CK_PTR CK_AES_CBC_ENCRYPT_DATA_PARAMS_PTR |
typedef CK_SKIPJACK_PRIVATE_WRAP_PARAMS CK_PTR CK_SKIPJACK_PRIVATE_WRAP_PTR |
typedef CK_SKIPJACK_RELAYX_PARAMS CK_PTR CK_SKIPJACK_RELAYX_PARAMS_PTR |
typedef CK_PBE_PARAMS CK_PTR CK_PBE_PARAMS_PTR |
typedef CK_KEY_WRAP_SET_OAEP_PARAMS CK_PTR CK_KEY_WRAP_SET_OAEP_PARAMS_PTR |
typedef struct CK_SSL3_MASTER_KEY_DERIVE_PARAMS CK_PTR CK_SSL3_MASTER_KEY_DERIVE_PARAMS_PTR |
typedef CK_SSL3_KEY_MAT_OUT CK_PTR CK_SSL3_KEY_MAT_OUT_PTR |
typedef CK_SSL3_KEY_MAT_PARAMS CK_PTR CK_SSL3_KEY_MAT_PARAMS_PTR |
typedef CK_TLS_PRF_PARAMS CK_PTR CK_TLS_PRF_PARAMS_PTR |
typedef CK_WTLS_RANDOM_DATA CK_PTR CK_WTLS_RANDOM_DATA_PTR |
typedef CK_WTLS_PRF_PARAMS CK_PTR CK_WTLS_PRF_PARAMS_PTR |
typedef CK_WTLS_KEY_MAT_OUT CK_PTR CK_WTLS_KEY_MAT_OUT_PTR |
typedef CK_WTLS_KEY_MAT_PARAMS CK_PTR CK_WTLS_KEY_MAT_PARAMS_PTR |
typedef CK_CMS_SIG_PARAMS CK_PTR CK_CMS_SIG_PARAMS_PTR |
typedef CK_KEY_DERIVATION_STRING_DATA CK_PTR CK_KEY_DERIVATION_STRING_DATA_PTR |
typedef CK_ULONG CK_EXTRACT_PARAMS |
typedef CK_EXTRACT_PARAMS CK_PTR CK_EXTRACT_PARAMS_PTR |
typedef CK_PKCS5_PBKD2_PARAMS CK_PTR CK_PKCS5_PBKD2_PARAMS_PTR |
typedef CK_ULONG CK_OTP_PARAM_TYPE |
typedef CK_OTP_PARAM_TYPE CK_PARAM_TYPE |
typedef CK_OTP_PARAM CK_PTR CK_OTP_PARAM_PTR |
typedef CK_OTP_PARAMS CK_PTR CK_OTP_PARAMS_PTR |
typedef CK_OTP_SIGNATURE_INFO CK_PTR CK_OTP_SIGNATURE_INFO_PTR |
typedef CK_KIP_PARAMS CK_PTR CK_KIP_PARAMS_PTR |
typedef CK_AES_CTR_PARAMS CK_PTR CK_AES_CTR_PARAMS_PTR |
typedef CK_CAMELLIA_CTR_PARAMS CK_PTR CK_CAMELLIA_CTR_PARAMS_PTR |
typedef CK_CALLBACK_FUNCTION | ( | CK_RV | , | |
CK_NOTIFY | ||||
) |
typedef CK_CALLBACK_FUNCTION | ( | CK_RV | , | |
CK_CREATEMUTEX | ||||
) |
typedef CK_CALLBACK_FUNCTION | ( | CK_RV | , | |
CK_DESTROYMUTEX | ||||
) |
typedef CK_CALLBACK_FUNCTION | ( | CK_RV | , | |
CK_LOCKMUTEX | ||||
) |
typedef CK_CALLBACK_FUNCTION | ( | CK_RV | , | |
CK_UNLOCKMUTEX | ||||
) |