Home
last modified time | relevance | path

Searched refs:kernel_session_t (Results 1 – 21 of 21) sorted by relevance

/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelSession.h101 } kernel_session_t; typedef
114 kernel_session_t *first; /* points to the first session in the list */
115 kernel_session_t *last; /* points to the last session in the list */
159 CK_RV handle2session(CK_SESSION_HANDLE hSession, kernel_session_t **session_p);
163 void kernel_delete_all_objects_in_session(kernel_session_t *sp,
169 void kernel_delete_session(CK_SLOT_ID slotID, kernel_session_t *sp,
172 void kernel_session_delay_free(kernel_session_t *sp);
H A DkernelSessionUtil.c52 kernel_session_t *session_p; in kernel_delete_all_sessions()
99 kernel_session_t *new_sp = NULL; in kernel_add_session()
105 new_sp = calloc(1, sizeof (kernel_session_t)); in kernel_add_session()
180 kernel_delete_session(CK_SLOT_ID slotID, kernel_session_t *session_p, in kernel_delete_session()
405 handle2session(CK_SESSION_HANDLE hSession, kernel_session_t **session_p) in handle2session()
407 kernel_session_t *sp = (kernel_session_t *)(hSession); in handle2session()
438 kernel_session_delay_free(kernel_session_t *sp) in kernel_session_delay_free()
440 kernel_session_t *tmp; in kernel_session_delay_free()
482 kernel_session_t *session_p; in kernel_acquire_all_slots_mutexes()
515 kernel_session_t *session_p; in kernel_release_all_slots_mutexes()
H A DkernelSession.c85 kernel_session_t *session_p; in C_CloseSession()
152 get_ses_state(kernel_session_t *session_p) in get_ses_state()
179 kernel_session_t *session_p; in C_GetSessionInfo()
219 kernel_get_operationstate(kernel_session_t *session_p, CK_STATE ses_state, in kernel_get_operationstate()
311 kernel_session_t *session_p; in C_GetOperationState()
346 kernel_set_operationstate(kernel_session_t *session_p, CK_STATE ses_state, in kernel_set_operationstate()
412 kernel_session_t *session_p; in C_SetOperationState()
444 kernel_session_t *session_p; in C_Login()
477 kernel_session_t *sp; in C_Login()
535 kernel_session_t *session_p; in C_Logout()
H A DkernelGlobal.h89 CK_RV get_cka_private_value(kernel_session_t *, crypto_object_id_t,
91 CK_RV process_found_objects(kernel_session_t *, CK_OBJECT_HANDLE *,
95 CK_RV kernel_decrypt_init(kernel_session_t *, kernel_object_t *,
97 CK_RV kernel_decrypt(kernel_session_t *, CK_BYTE_PTR, CK_ULONG, CK_BYTE_PTR,
H A DkernelObjectUtil.c45 kernel_add_object_to_session(kernel_object_t *objp, kernel_session_t *sp) in kernel_add_object_to_session()
106 boolean_t copy_everything, kernel_session_t *sp) in kernel_copy_object()
209 CK_ULONG *objecthandle_p, kernel_session_t *sp) in kernel_add_object()
342 kernel_remove_object_from_session(kernel_object_t *objp, kernel_session_t *sp) in kernel_remove_object_from_session()
465 kernel_delete_session_object(kernel_session_t *sp, kernel_object_t *objp, in kernel_delete_session_object()
551 kernel_delete_all_objects_in_session(kernel_session_t *sp, in kernel_delete_all_objects_in_session()
598 search_for_objects(kernel_session_t *sp, CK_ATTRIBUTE_PTR pTemplate, in search_for_objects()
601 kernel_session_t *session_p; in search_for_objects()
663 kernel_find_objects_init(kernel_session_t *sp, CK_ATTRIBUTE_PTR pTemplate, in kernel_find_objects_init()
697 kernel_find_objects_final(kernel_session_t *sp) in kernel_find_objects_final()
[all …]
H A DkernelObject.h529 CK_ULONG *objecthandle_p, kernel_session_t *sp);
531 CK_RV kernel_delete_session_object(kernel_session_t *sp, kernel_object_t *objp,
542 kernel_object_t *new_object, kernel_session_t *sp, uint_t);
546 kernel_session_t *sp);
555 CK_ATTRIBUTE_PTR template, boolean_t copy, kernel_session_t *sp);
559 void kernel_add_object_to_session(kernel_object_t *objp, kernel_session_t *sp);
573 CK_RV kernel_find_objects_init(kernel_session_t *sp,
576 void kernel_find_objects_final(kernel_session_t *sp);
578 void kernel_find_objects(kernel_session_t *sp,
602 CK_RV kernel_delete_token_object(kernel_slot_t *pslot, kernel_session_t *sp,
[all …]
H A DkernelEmulate.h65 CK_RV emulate_buf_init(kernel_session_t *session_p, int buflen, int opflag);
66 CK_RV emulate_init(kernel_session_t *session_p, CK_MECHANISM_PTR pMechanism,
68 CK_RV emulate_update(kernel_session_t *session_p, CK_BYTE_PTR pPart,
H A DkernelObject.c46 kernel_session_t *session_p; in C_CreateObject()
85 kernel_session_t *session_p; in C_CopyObject()
303 kernel_session_t *session_p = (kernel_session_t *)(hSession); in C_DestroyObject()
400 kernel_session_t *session_p; in C_GetAttributeValue()
520 kernel_session_t *session_p; in C_SetAttributeValue()
656 kernel_session_t *session_p; in C_GetObjectSize()
735 kernel_session_t *session_p; in C_FindObjectsInit()
830 kernel_session_t *session_p; in C_FindObjects()
928 kernel_session_t *session_p; in C_FindObjectsFinal()
H A DkernelDecrypt.c41 kernel_decrypt_init(kernel_session_t *session_p, kernel_object_t *key_p, in kernel_decrypt_init()
177 kernel_session_t *session_p; in C_DecryptInit()
210 kernel_decrypt(kernel_session_t *session_p, CK_BYTE_PTR pEncryptedData, in kernel_decrypt()
296 kernel_session_t *session_p; in C_Decrypt()
353 kernel_session_t *session_p; in C_DecryptUpdate()
454 kernel_session_t *session_p; in C_DecryptFinal()
H A DkernelEmulate.c68 emulate_buf_init(kernel_session_t *session_p, int buflen, int opflag) in emulate_buf_init()
116 emulate_init(kernel_session_t *session_p, CK_MECHANISM_PTR pMechanism, in emulate_init()
151 emulate_update(kernel_session_t *session_p, CK_BYTE_PTR pPart, in emulate_update()
H A DkernelVerify.c41 kernel_session_t *session_p; in C_VerifyInit()
184 kernel_session_t *session_p; in C_Verify()
278 kernel_session_t *session_p; in C_VerifyUpdate()
362 kernel_session_t *session_p; in C_VerifyFinal()
459 kernel_session_t *session_p; in C_VerifyRecoverInit()
568 kernel_session_t *session_p; in C_VerifyRecover()
H A DkernelSign.c40 kernel_session_t *session_p; in C_SignInit()
180 kernel_session_t *session_p; in C_Sign()
296 kernel_session_t *session_p; in C_SignUpdate()
379 kernel_session_t *session_p; in C_SignFinal()
503 kernel_session_t *session_p; in C_SignRecoverInit()
610 kernel_session_t *session_p; in C_SignRecover()
H A DkernelRand.c36 kernel_session_t *session_p; in C_SeedRandom()
82 kernel_session_t *session_p; in C_GenerateRandom()
H A DkernelEncrypt.c43 kernel_session_t *session_p; in C_EncryptInit()
195 kernel_session_t *session_p; in C_Encrypt()
327 kernel_session_t *session_p; in C_EncryptUpdate()
429 kernel_session_t *session_p; in C_EncryptFinal()
H A DkernelDigest.c41 kernel_session_t *session_p; in common_digest_init()
146 kernel_session_t *session_p; in C_Digest()
301 kernel_session_t *session_p; in C_DigestUpdate()
403 kernel_session_t *session_p; in C_DigestKey()
569 kernel_session_t *session_p; in C_DigestFinal()
H A DkernelSlot.h58 kernel_session_t *sl_sess_list; /* all open sessions */
H A DkernelKeys.c249 CK_ULONG ulCount, kernel_session_t *session_p, in key_gen_by_value()
364 kernel_session_t *session_p; in C_GenerateKey()
513 kernel_session_t *session_p, crypto_mech_type_t k_mech_type, in key_gen_rsa_by_value()
847 kernel_session_t *session_p, crypto_mech_type_t k_mech_type, in key_gen_dh_by_value()
1131 kernel_session_t *session_p, crypto_mech_type_t k_mech_type, in key_gen_ec_by_value()
1403 kernel_session_t *session_p; in C_GenerateKeyPair()
1415 CK_ATTRIBUTE_PTR, CK_ULONG, kernel_session_t *, crypto_mech_type_t, in C_GenerateKeyPair()
1655 kernel_session_t *session_p; in C_WrapKey()
1745 kernel_session_t *session_p; in C_UnwrapKey()
2174 CK_ULONG ulAttributeCount, kernel_session_t *session_p, in derive_key_by_value()
[all …]
H A DkernelAttributeUtil.c929 kernel_parse_common_attrs(CK_ATTRIBUTE_PTR template, kernel_session_t *sp, in kernel_parse_common_attrs()
1000 CK_ULONG ulAttrNum, kernel_object_t *new_object, kernel_session_t *sp, in kernel_build_public_key_object()
1368 CK_ULONG ulAttrNum, kernel_object_t *new_object, kernel_session_t *sp, in kernel_build_private_key_object()
1842 CK_ULONG ulAttrNum, kernel_object_t *new_object, kernel_session_t *sp) in kernel_build_secret_key_object()
2138 kernel_object_t *new_object, kernel_session_t *sp, uint_t mode) in kernel_build_object()
2886 CK_ATTRIBUTE_PTR template, boolean_t copy, kernel_session_t *sp) in kernel_set_common_key_attribute()
2973 CK_ATTRIBUTE_PTR template, boolean_t copy, kernel_session_t *sp) in kernel_set_public_key_attribute()
3039 CK_ATTRIBUTE_PTR template, boolean_t copy, kernel_session_t *sp) in kernel_set_private_key_attribute()
3137 CK_ATTRIBUTE_PTR template, boolean_t copy, kernel_session_t *sp) in kernel_set_secret_key_attribute()
3231 boolean_t copy, kernel_session_t *sp) in kernel_set_attribute()
H A DkernelUtil.c829 create_new_tobj_in_lib(kernel_slot_t *pslot, kernel_session_t *sp, in create_new_tobj_in_lib()
919 process_found_objects(kernel_session_t *cur_sp, CK_OBJECT_HANDLE *obj_found, in process_found_objects()
928 kernel_session_t *sp; in process_found_objects()
1078 get_cka_private_value(kernel_session_t *sp, crypto_object_id_t oid, in get_cka_private_value()
H A DkernelGeneral.c303 kernel_session_t *delay_free_ses, *tmps; in finalize_common()
H A DkernelSlotToken.c411 kernel_session_t *session_p; in C_SetPIN()