/illumos-gate/usr/src/lib/pkcs11/libpkcs11/common/ |
H A D | pkcs11Slot.h | 45 CK_SLOT_ID slotid; 51 CK_SLOT_ID sl_id; /* real slotID from provider */ 91 CK_SLOT_ID st_first; /* First used slot ID, used for loops */ 92 CK_SLOT_ID st_last; /* Last slot ID allocated */ 95 CK_SLOT_ID st_event_slot; /* Slot with event */ 125 extern CK_RV pkcs11_slot_allocate(CK_SLOT_ID *slot); 127 extern CK_RV pkcs11_is_valid_slot(CK_SLOT_ID slot_id); 128 extern CK_RV pkcs11_validate_and_convert_slotid(CK_SLOT_ID slot_id, 129 CK_SLOT_ID *real_slot_id);
|
H A D | pkcs11SlotToken.c | 57 CK_SLOT_ID true_id; in C_GetSlotList() 59 CK_SLOT_ID count = 0, i; in C_GetSlotList() 60 CK_SLOT_ID slot_id; /* slot ID for returning to the application */ in C_GetSlotList() 134 C_GetSlotInfo(CK_SLOT_ID slotID, CK_SLOT_INFO_PTR pInfo) in C_GetSlotInfo() 138 CK_SLOT_ID fw_st_id; /* id for accessing framework's slottable */ in C_GetSlotInfo() 169 C_GetTokenInfo(CK_SLOT_ID slotID, CK_TOKEN_INFO_PTR pInfo) in C_GetTokenInfo() 172 CK_SLOT_ID fw_st_id; /* id for accessing framework's slottable */ in C_GetTokenInfo() 215 CK_SLOT_ID i, j; in C_WaitForSlotEvent() 219 CK_SLOT_ID event_slot; in C_WaitForSlotEvent() 582 C_GetMechanismList(CK_SLOT_ID slotID, CK_MECHANISM_TYPE_PTR pMechanismList, in C_GetMechanismList() [all …]
|
H A D | metaSlotToken.c | 83 meta_GetSlotInfo(CK_SLOT_ID slotID, CK_SLOT_INFO_PTR pInfo) in meta_GetSlotInfo() 86 CK_SLOT_ID true_id; in meta_GetSlotInfo() 133 meta_GetTokenInfo(CK_SLOT_ID slotID, CK_TOKEN_INFO_PTR pInfo) in meta_GetTokenInfo() 137 CK_SLOT_ID true_id; in meta_GetTokenInfo() 239 meta_GetMechanismList(CK_SLOT_ID slotID, CK_MECHANISM_TYPE_PTR pMechanismList, in meta_GetMechanismList() 271 meta_GetMechanismInfo(CK_SLOT_ID slotID, CK_MECHANISM_TYPE type, in meta_GetMechanismInfo() 348 meta_InitToken(CK_SLOT_ID slotID, CK_UTF8CHAR_PTR pPin, CK_ULONG ulPinLen, in meta_InitToken()
|
H A D | pkcs11Session.c | 41 C_OpenSession(CK_SLOT_ID slotID, CK_FLAGS flags, CK_VOID_PTR pApplication, in C_OpenSession() 46 CK_SLOT_ID true_id; in C_OpenSession() 47 CK_SLOT_ID fw_st_id; /* id for accessing framework's slottable */ in C_OpenSession() 162 C_CloseAllSessions(CK_SLOT_ID slotID) in C_CloseAllSessions() 167 CK_SLOT_ID true_id; in C_CloseAllSessions() 168 CK_SLOT_ID fw_st_id; /* id for accessing framework's slottable */ in C_CloseAllSessions() 249 CK_SLOT_ID slot_id; in C_GetSessionInfo()
|
H A D | pkcs11Keys.c | 45 CK_SLOT_ID slotid; in C_GenerateKey() 102 CK_SLOT_ID slotid; in C_GenerateKeyPair() 162 CK_SLOT_ID slotid; in C_WrapKey() 219 CK_SLOT_ID slotid; in C_UnwrapKey() 276 CK_SLOT_ID slotid; in C_DeriveKey()
|
H A D | pkcs11Slottable.c | 123 pkcs11_slot_allocate(CK_SLOT_ID *pslot_id) { in pkcs11_slot_allocate() 266 pkcs11_is_valid_slot(CK_SLOT_ID slot_id) { in pkcs11_is_valid_slot() 292 pkcs11_validate_and_convert_slotid(CK_SLOT_ID slot_id, in pkcs11_validate_and_convert_slotid() 293 CK_SLOT_ID *real_slot_id) { in pkcs11_validate_and_convert_slotid()
|
H A D | pkcs11SUNWExtensions.c | 98 match_mech(CK_SLOT_ID slot_id, void *args, CK_RV *rv) in match_mech() 124 boolean_t (*criteria)(CK_SLOT_ID slot_id, void *args, CK_RV *rv), in pkcs11_GetCriteriaSession() 130 CK_SLOT_ID slot_id; in pkcs11_GetCriteriaSession() 158 slot_list = malloc(slotcount * sizeof (CK_SLOT_ID)); in pkcs11_GetCriteriaSession() 211 CK_SLOT_ID slot_id; in SUNW_C_GetMechSession() 240 slot_list = malloc(slotcount * sizeof (CK_SLOT_ID)); in SUNW_C_GetMechSession() 283 CK_SLOT_ID slot_id; in SUNW_C_KeyToObject()
|
H A D | pkcs11Session.h | 39 CK_SLOT_ID se_slotid; /* slotID in framework */ 62 extern CK_RV pkcs11_session_add(struct pkcs11_slot *pslot, CK_SLOT_ID slot_id,
|
H A D | metaGlobal.h | 243 CK_SLOT_ID fw_st_id; /* used for accessing framework's slottable */ 483 CK_SLOT_ID fw_st_id; /* framework slot table ID */ 555 extern CK_SLOT_ID metaslot_keystore_slotid; 689 CK_SLOT_ID meta_slotManager_get_framework_table_id(CK_ULONG slotnum); 705 CK_RV meta_GetSlotInfo(CK_SLOT_ID slotID, CK_SLOT_INFO_PTR pInfo); 706 CK_RV meta_GetTokenInfo(CK_SLOT_ID slotID, CK_TOKEN_INFO_PTR pInfo); 707 CK_RV meta_GetMechanismList(CK_SLOT_ID slotID, 709 CK_RV meta_GetMechanismInfo(CK_SLOT_ID slotID, CK_MECHANISM_TYPE type, 711 CK_RV meta_InitToken(CK_SLOT_ID slotID, CK_UTF8CHAR_PTR pPin, 717 CK_RV meta_OpenSession(CK_SLOT_ID slotID, CK_FLAGS flags, [all …]
|
H A D | metaSlotManager.c | 52 CK_SLOT_ID metaslot_keystore_slotid; 72 CK_SLOT_ID i; in meta_slotManager_initialize() 234 CK_SLOT_ID true_id, fw_st_id; in meta_slotManager_find_object_token() 370 CK_SLOT_ID 443 CK_SLOT_ID fw_st_id, true_id; in meta_get_slot_session()
|
H A D | pkcs11Rand.c | 43 CK_SLOT_ID slotid; in C_SeedRandom() 96 CK_SLOT_ID slotid; in C_GenerateRandom()
|
H A D | pkcs11Conf.c | 60 CK_SLOT_ID fast_slot = 0; 256 CK_SLOT_ID slot_id; /* slotID assigned for framework */ in pkcs11_slot_mapping() 488 prov_slots = calloc(prov_slot_count, sizeof (CK_SLOT_ID)); in pkcs11_slot_mapping() 807 pkcs11_is_dismech(CK_SLOT_ID slotid, CK_MECHANISM_TYPE mech) in pkcs11_is_dismech()
|
H A D | pkcs11Sign.c | 47 CK_SLOT_ID slotid; in C_SignInit() 224 CK_SLOT_ID slotid; in C_SignRecoverInit()
|
H A D | pkcs11Verify.c | 46 CK_SLOT_ID slotid; in C_VerifyInit() 222 CK_SLOT_ID slotid; in C_VerifyRecoverInit()
|
H A D | pkcs11Conf.h | 40 extern boolean_t pkcs11_is_dismech(CK_SLOT_ID slotid, CK_MECHANISM_TYPE mech);
|
H A D | pkcs11Global.h | 44 extern CK_SLOT_ID fast_slot;
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelSession.h | 82 CK_SLOT_ID ses_slotid; /* slotID saved from C_OpenSession() */ 161 void kernel_delete_all_sessions(CK_SLOT_ID slotID, boolean_t wrapper_only); 166 CK_RV kernel_add_session(CK_SLOT_ID slotID, CK_FLAGS flags, 169 void kernel_delete_session(CK_SLOT_ID slotID, kernel_session_t *sp,
|
H A D | kernelSlotToken.c | 80 C_GetSlotInfo(CK_SLOT_ID slotID, CK_SLOT_INFO_PTR pInfo) in C_GetSlotInfo() 134 C_GetTokenInfo(CK_SLOT_ID slotID, CK_TOKEN_INFO_PTR pInfo) in C_GetTokenInfo() 221 C_GetMechanismList(CK_SLOT_ID slotID, CK_MECHANISM_TYPE_PTR pMechanismList, in C_GetMechanismList() 362 C_GetMechanismInfo(CK_SLOT_ID slotID, CK_MECHANISM_TYPE type, in C_GetMechanismInfo() 386 C_InitToken(CK_SLOT_ID slotID, CK_UTF8CHAR_PTR pPin, CK_ULONG ulPinLen, in C_InitToken()
|
H A D | kernelSessionUtil.c | 50 kernel_delete_all_sessions(CK_SLOT_ID slotID, boolean_t wrapper_only) in kernel_delete_all_sessions() 95 kernel_add_session(CK_SLOT_ID slotID, CK_FLAGS flags, CK_VOID_PTR pApplication, in kernel_add_session() 180 kernel_delete_session(CK_SLOT_ID slotID, kernel_session_t *session_p, in kernel_delete_session()
|
H A D | kernelSlot.h | 56 CK_SLOT_ID sl_provider_id; /* kernel provider ID */
|
/illumos-gate/usr/src/lib/pkcs11/include/ |
H A D | pkcs11f.h | 84 CK_SLOT_ID slotID, /* the ID of the slot */ 96 CK_SLOT_ID slotID, /* ID of the token's slot */ 108 CK_SLOT_ID slotID, /* ID of token's slot */ 121 CK_SLOT_ID slotID, /* ID of the token's slot */ 132 CK_SLOT_ID slotID, /* ID of the token's slot */ 173 CK_SLOT_ID slotID, /* the slot's ID */ 197 CK_SLOT_ID slotID /* the token's slot */
|
/illumos-gate/usr/src/lib/libkmf/libkmf/common/ |
H A D | pk11tokens.c | 131 sizeof (CK_SLOT_ID))) == NULL) in kmf_get_token_slots() 159 tmp_count * sizeof (CK_SLOT_ID))) == NULL) { in kmf_get_token_slots() 291 kmf_pk11_token_lookup(KMF_HANDLE_T handle, char *label, CK_SLOT_ID *slot_id) in kmf_pk11_token_lookup() 506 CK_SLOT_ID slot_id; in kmf_select_token() 564 CK_SLOT_ID slot_id = 0; in kmf_pk11_init_token()
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softSlotToken.c | 302 C_GetSlotInfo(CK_SLOT_ID slotID, CK_SLOT_INFO_PTR pInfo) in C_GetSlotInfo() 329 C_GetTokenInfo(CK_SLOT_ID slotID, CK_TOKEN_INFO_PTR pInfo) in C_GetTokenInfo() 408 C_GetMechanismList(CK_SLOT_ID slotID, CK_MECHANISM_TYPE_PTR pMechanismList, in C_GetMechanismList() 451 C_GetMechanismInfo(CK_SLOT_ID slotID, CK_MECHANISM_TYPE type, in C_GetMechanismInfo() 488 C_InitToken(CK_SLOT_ID slotID, CK_UTF8CHAR_PTR pPin, CK_ULONG ulPinLen, in C_InitToken()
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | tpmtok_int.h | 179 CK_SLOT_ID slotID; 188 CK_SLOT_ID SltId; 442 CK_RV (*t_init)(char *, CK_SLOT_ID, TSS_HCONTEXT *); 446 CK_RV (*t_session)(CK_SLOT_ID); 496 extern void copy_slot_info(CK_SLOT_ID, CK_SLOT_INFO_PTR); 617 void copy_slot_info(CK_SLOT_ID, CK_SLOT_INFO_PTR); 1267 (void *ppFunctionList, CK_SLOT_ID slotID, CK_CHAR_PTR pCorrelator); 1285 (CK_SLOT_ID slotID, CK_SLOT_INFO_PTR pInfo); 1288 (CK_SLOT_ID slotID, CK_TOKEN_INFO_PTR pInfo); 1291 (CK_SLOT_ID slotID, CK_MECHANISM_TYPE_PTR pMechanismList, [all …]
|
/illumos-gate/usr/src/cmd/cmd-crypto/pktool/ |
H A D | common.h | 89 extern CK_RV login_token(CK_SLOT_ID slot_id, CK_UTF8CHAR_PTR pin, 92 extern CK_RV quick_start(CK_SLOT_ID slot_id, CK_FLAGS sess_flags,
|