/illumos-gate/usr/src/lib/pkcs11/libpkcs11/common/ |
H A D | pkcs11Object.c | 41 CK_ULONG ulCount, 51 ulCount, phObject)); 67 pTemplate, ulCount, phObject); 83 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, 92 pTemplate, ulCount, phNewObject)); 108 hObject, pTemplate, ulCount, phNewObject); 162 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) 170 pTemplate, ulCount)); 186 hObject, pTemplate, ulCount); 203 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) 39 C_CreateObject(CK_SESSION_HANDLE hSession, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phObject) argument 82 C_CopyObject(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phNewObject) argument 161 C_GetAttributeValue(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument 202 C_SetAttributeValue(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument 282 C_FindObjectsInit(CK_SESSION_HANDLE hSession, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument [all...] |
H A D | metaObject.c | 113 CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phObject) 124 if (pTemplate == NULL || ulCount < 1 || phObject == NULL) 146 (void) get_template_boolean(CKA_TOKEN, pTemplate, ulCount, 159 (void) get_template_boolean(CKA_PRIVATE, pTemplate, ulCount, 164 (void) get_template_boolean(CKA_EXTRACTABLE, pTemplate, ulCount, 171 (void) get_template_boolean(CKA_SENSITIVE, pTemplate, ulCount, 182 if (meta_freeobject_check(session, object, NULL, pTemplate, ulCount, 191 if (!meta_freeobject_set(object, pTemplate, ulCount, B_TRUE)) 213 slot_session->hSession, pTemplate, ulCount, &hNewObject); 244 slot_session->hSession, pTemplate, ulCount, 112 meta_CreateObject(CK_SESSION_HANDLE hSession, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phObject) argument 342 meta_CopyObject(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phNewObject) argument 670 meta_GetAttributeValue(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument 726 meta_SetAttributeValue(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument 1030 meta_search_for_objects(meta_session_t *session, find_objs_info_t *info, slot_session_t *slot_session, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_ULONG slotnum, boolean_t token_only, int *num_results_alloc) argument 1095 meta_FindObjectsInit(CK_SESSION_HANDLE hSession, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument [all...] |
H A D | pkcs11Keys.c | 43 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey) 56 pTemplate, ulCount, phKey)); 79 pMechanism, pTemplate, ulCount, phKey); 42 C_GenerateKey(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey) argument
|
H A D | metaKeys.c | 40 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey) 58 rv = meta_generate_keys(session, pMechanism, pTemplate, ulCount, key, 39 meta_GenerateKey(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey) argument
|
H A D | metaGlobal.h | 733 CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phObject); 735 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, 741 CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount); 743 CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount); 745 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount); 816 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey);
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelObject.c | 43 CK_ULONG ulCount, 54 if ((pTemplate == NULL) || (ulCount == 0) || 68 rv = kernel_add_object(pTemplate, ulCount, phObject, session_p); 82 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, 101 if (((ulCount > 0) && (pTemplate == NULL)) || 150 for (i = 0; i < ulCount; i++) { 198 object_copy.oc_count = ulCount; 200 if (ulCount > 0) { 201 rv = process_object_attributes(pTemplate, ulCount, 221 free_object_attributes(object_copy.oc_new_attributes, ulCount); 41 C_CreateObject(CK_SESSION_HANDLE hSession, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phObject) argument 81 C_CopyObject(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phNewObject) argument 396 C_GetAttributeValue(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument 516 C_SetAttributeValue(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument 733 C_FindObjectsInit(CK_SESSION_HANDLE sh, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument [all...] |
H A D | kernelObjectUtil.c | 208 kernel_add_object(CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, argument 237 objc.oc_count = ulCount; 238 rv = process_object_attributes(pTemplate, ulCount, 246 free_object_attributes(objc.oc_attributes, ulCount); 262 free_object_attributes(objc.oc_attributes, ulCount); 293 rv = kernel_build_object(pTemplate, ulCount, new_objp, sp, 599 CK_ULONG ulCount, find_context_t *fcontext) 609 if (ulCount > 0) { 612 pTemplate, ulCount); 630 if (ulCount > 598 search_for_objects(kernel_session_t *sp, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, find_context_t *fcontext) argument 663 kernel_find_objects_init(kernel_session_t *sp, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument [all...] |
H A D | kernelUtil.c | 776 process_object_attributes(CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, argument 785 if (ulCount == 0) { 790 attrs = calloc(1, ulCount * sizeof (crypto_object_attribute_t)); 796 for (i = 0; i < ulCount; i++) { 879 get_object_attributes(CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, argument 888 for (i = 0; i < ulCount; i++) { 912 free_object_attributes(caddr_t obj_attrs, CK_ULONG ulCount) argument 917 if ((ulCount == 0) || (obj_attrs == NULL)) { 923 for (i = 0; i < ulCount; i++) {
|
H A D | kernelKeys.c | 248 CK_ULONG ulCount, kernel_session_t *session_p, 263 rv = get_key_len_from_template(pMechanism, pTemplate, ulCount, 273 attr_count = ulCount + 1; 274 newTemplate = grow_template(pTemplate, ulCount, attr_count); 281 newTemplate[ulCount].type = CKA_VALUE; 282 newTemplate[ulCount].pValue = (caddr_t)key_buf; 283 newTemplate[ulCount].ulValueLen = key_len; 290 rv = process_object_attributes(&newTemplate[ulCount], 325 rv = get_object_attributes(&newTemplate[ulCount], 1, 366 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PT 247 key_gen_by_value(CK_MECHANISM_PTR pMechanism, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, kernel_session_t *session_p, crypto_mech_type_t k_mech_type, kernel_object_t *new_objp) argument 365 C_GenerateKey(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey) argument [all...] |
H A D | kernelObject.h | 528 CK_RV kernel_add_object(CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, 574 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount); 584 CK_ULONG ulCount);
|
H A D | kernelAttributeUtil.c | 3579 CK_ULONG ulCount) 3594 for (i = 0; i < ulCount; i++) { 3624 for (i = 0; i < ulCount; i++) { 3577 kernel_process_find_attr(CK_OBJECT_CLASS *pclasses, CK_ULONG *num_result_pclasses, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softObject.c | 39 CK_ULONG ulCount, 58 if ((pTemplate == NULL) || (ulCount == 0) || 65 rv = soft_add_object(pTemplate, ulCount, phObject, session_p); 78 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, 100 if (((ulCount > 0) && (pTemplate == NULL)) || 133 for (i = 0; i < ulCount; i++) { 330 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) 350 if ((pTemplate == NULL) || (ulCount == 0)) { 383 for (i = 0; i < ulCount; i++) { 411 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) 37 C_CreateObject(CK_SESSION_HANDLE hSession, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phObject) argument 77 C_CopyObject(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phNewObject) argument 329 C_GetAttributeValue(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument 410 C_SetAttributeValue(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument 561 C_FindObjectsInit(CK_SESSION_HANDLE sh, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument [all...] |
H A D | softObjectUtil.c | 228 soft_add_object(CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, argument 246 rv = soft_build_object(pTemplate, ulCount, new_objp); 591 search_for_objects(CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, argument 606 if (ulCount > 0) { 609 pTemplate, ulCount); 612 for (i = 0; i < ulCount; i++) { 627 for (i = 0; i < ulCount; i++) { 658 if (((token_specified) && (ulCount > 1)) || 659 ((!token_specified) && (ulCount > 0))) { 661 num_pclasses, pTemplate, ulCount)) { 734 soft_find_objects_init(soft_session_t *sp, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument [all...] |
H A D | softKeys.c | 35 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey) 55 if ((pTemplate == NULL) && (ulCount != 0)) { 61 ulCount, phKey); 34 C_GenerateKey(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey) argument
|
H A D | softKeysUtil.c | 62 soft_gen_keyobject(CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, argument 82 rv = soft_build_key(pTemplate, ulCount, new_objp, class, key_type, 154 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey) 204 for (i = 0; i < ulCount && !keyfound; i++) { 225 for (i = 0; i < ulCount; i++) { 260 rv = soft_gen_keyobject(pTemplate, ulCount, phKey, session_p, 153 soft_genkey(soft_session_t *session_p, CK_MECHANISM_PTR pMechanism, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey) argument
|
H A D | softObject.h | 796 CK_RV soft_add_object(CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, 860 CK_ULONG ulCount); 869 CK_ULONG ulCount);
|
H A D | softAttributeUtil.c | 6364 CK_ULONG ulCount) 6379 for (i = 0; i < ulCount; i++) { 6409 for (i = 0; i < ulCount; i++) { 6362 soft_process_find_attr(CK_OBJECT_CLASS *pclasses, CK_ULONG *num_result_pclasses, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | object.c | 305 CK_ULONG ulCount, 326 for (i = 0; i < ulCount; i++, attr++) { 355 rc = object_create_skel(pTemplate, ulCount, 425 CK_ULONG ulCount, 459 rc = template_add_attributes(new_tmpl, pTemplate, ulCount); 663 CK_ULONG ulCount) 675 for (i = 0; i < ulCount; i++) { 710 CK_ULONG ulCount) 733 rc = template_add_attributes(new_tmpl, pTemplate, ulCount); 815 CK_ULONG ulCount, 304 object_create(CK_ATTRIBUTE * pTemplate, CK_ULONG ulCount, OBJECT ** obj) argument 424 object_copy(CK_ATTRIBUTE * pTemplate, CK_ULONG ulCount, OBJECT * old_obj, OBJECT ** new_obj) argument 661 object_get_attribute_values(OBJECT * obj, CK_ATTRIBUTE * pTemplate, CK_ULONG ulCount) argument 708 object_set_attribute_values(OBJECT * obj, CK_ATTRIBUTE * pTemplate, CK_ULONG ulCount) argument 814 object_create_skel(CK_ATTRIBUTE * pTemplate, CK_ULONG ulCount, CK_ULONG mode, CK_ULONG class, CK_ULONG subclass, OBJECT ** obj) argument [all...] |
H A D | obj_mgr.c | 363 CK_ULONG ulCount, 378 rc = object_create(pTemplate, ulCount, &o); 544 CK_ULONG ulCount, 566 rc = object_copy(pTemplate, ulCount, old_obj, &new_obj); 688 CK_ULONG ulCount, 702 if (! pTemplate && (ulCount != 0)) { 705 rc = object_create_skel(pTemplate, ulCount, 1148 CK_ULONG ulCount) 1194 ulCount, publ_token_obj_list, TRUE); 1196 ulCount, sess_obj_lis 361 object_mgr_add(SESSION * sess, CK_ATTRIBUTE * pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE * handle) argument 542 object_mgr_copy(SESSION * sess, CK_ATTRIBUTE * pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE old_handle, CK_OBJECT_HANDLE * new_handle) argument 686 object_mgr_create_skel(SESSION * sess, CK_ATTRIBUTE * pTemplate, CK_ULONG ulCount, CK_ULONG mode, CK_ULONG obj_type, CK_ULONG sub_class, OBJECT ** obj) argument 1146 object_mgr_find_init(SESSION * sess, CK_ATTRIBUTE * pTemplate, CK_ULONG ulCount) argument 1217 object_mgr_find_build_list(SESSION * sess, CK_ATTRIBUTE * pTemplate, CK_ULONG ulCount, DL_NODE * obj_list, CK_BBOOL public_only) argument 1342 object_mgr_get_attribute_values(SESSION * sess, CK_OBJECT_HANDLE handle, CK_ATTRIBUTE * pTemplate, CK_ULONG ulCount) argument 1712 object_mgr_set_attribute_values(SESSION * sess, CK_OBJECT_HANDLE handle, CK_ATTRIBUTE * pTemplate, CK_ULONG ulCount) argument [all...] |
H A D | api_interface.c | 482 CK_ULONG ulCount, 502 if (!pTemplate && ulCount) { 507 ulCount, phNewObject); 518 CK_ULONG ulCount, 533 if (ulCount == 0) { 542 ulCount, phObject); 1099 CK_ULONG ulCount) 1111 rv = FuncList.ST_FindObjectsInit(rSession, pTemplate, ulCount); 1122 CK_ULONG ulCount, 1142 pTemplate, ulCount, phKe 478 C_CopyObject( CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phNewObject) argument 515 C_CreateObject( CK_SESSION_HANDLE hSession, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phObject) argument 1097 C_FindObjectsInit(CK_SESSION_HANDLE hSession, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument 1119 C_GenerateKey(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey) argument 1212 C_GetAttributeValue(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument 1828 C_SetAttributeValue(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument [all...] |
H A D | new_host.c | 880 CK_ULONG ulCount, 903 rc = object_mgr_add(sess, pTemplate, ulCount, phObject); 915 CK_ULONG ulCount, 939 rc = object_mgr_copy(sess, pTemplate, ulCount, 1007 CK_ULONG ulCount) 1024 rc = object_mgr_get_attribute_values(sess, hObject, pTemplate, ulCount); 1034 CK_ULONG ulCount) 1051 rc = object_mgr_set_attribute_values(sess, hObject, pTemplate, ulCount); 1060 CK_ULONG ulCount) 1088 rc = object_mgr_find_init(sess, pTemplate, ulCount); 878 SC_CreateObject(ST_SESSION_HANDLE sSession, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phObject) argument 911 SC_CopyObject( ST_SESSION_HANDLE sSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phNewObject) argument 1004 SC_GetAttributeValue(ST_SESSION_HANDLE sSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument 1031 SC_SetAttributeValue(ST_SESSION_HANDLE sSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument 1058 SC_FindObjectsInit(ST_SESSION_HANDLE sSession, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument 2265 SC_UnwrapKey(ST_SESSION_HANDLE sSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hUnwrappingKey, CK_BYTE_PTR pWrappedKey, CK_ULONG ulWrappedKeyLen, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey) argument [all...] |
H A D | template.c | 304 CK_ULONG ulCount) 310 for (i = 0; i < ulCount; i++) { 558 CK_ULONG ulCount, 569 for (i = 0; i < ulCount; i++) { 302 template_add_attributes(TEMPLATE * tmpl, CK_ATTRIBUTE * pTemplate, CK_ULONG ulCount) argument 557 template_compare(CK_ATTRIBUTE * t1, CK_ULONG ulCount, TEMPLATE * t2) argument
|
/illumos-gate/usr/src/lib/pkcs11/include/ |
H A D | pkcs11f.h | 266 CK_ULONG ulCount, /* attributes in template */ 280 CK_ULONG ulCount, /* attributes in template */ 315 CK_ULONG ulCount /* attributes in template */ 328 CK_ULONG ulCount /* attributes in template */ 340 CK_ULONG ulCount /* attrs in search template */ 769 CK_ULONG ulCount, /* # of attrs in template */
|
H A D | pkcs11t.h | 1811 CK_ULONG ulCount; member in struct:CK_OTP_PARAMS 1818 CK_ULONG ulCount; member in struct:CK_OTP_SIGNATURE_INFO
|