Home
last modified time | relevance | path

Searched refs:ulCount (Results 1 – 24 of 24) sorted by relevance

/titanic_41/usr/src/lib/pkcs11/libpkcs11/common/
H A Dpkcs11Object.c41 CK_ULONG ulCount, in C_CreateObject() argument
51 ulCount, phObject)); in C_CreateObject()
67 pTemplate, ulCount, phObject); in C_CreateObject()
83 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, in C_CopyObject() argument
92 pTemplate, ulCount, phNewObject)); in C_CopyObject()
108 hObject, pTemplate, ulCount, phNewObject); in C_CopyObject()
162 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) in C_GetAttributeValue() argument
170 pTemplate, ulCount)); in C_GetAttributeValue()
186 hObject, pTemplate, ulCount); in C_GetAttributeValue()
203 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) in C_SetAttributeValue() argument
[all …]
H A DmetaObject.c113 CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phObject) in meta_CreateObject() argument
124 if (pTemplate == NULL || ulCount < 1 || phObject == NULL) in meta_CreateObject()
146 (void) get_template_boolean(CKA_TOKEN, pTemplate, ulCount, in meta_CreateObject()
159 (void) get_template_boolean(CKA_PRIVATE, pTemplate, ulCount, in meta_CreateObject()
164 (void) get_template_boolean(CKA_EXTRACTABLE, pTemplate, ulCount, in meta_CreateObject()
171 (void) get_template_boolean(CKA_SENSITIVE, pTemplate, ulCount, in meta_CreateObject()
182 if (meta_freeobject_check(session, object, NULL, pTemplate, ulCount, in meta_CreateObject()
191 if (!meta_freeobject_set(object, pTemplate, ulCount, B_TRUE)) in meta_CreateObject()
213 slot_session->hSession, pTemplate, ulCount, &hNewObject); in meta_CreateObject()
244 slot_session->hSession, pTemplate, ulCount, in meta_CreateObject()
[all …]
H A Dpkcs11Keys.c43 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey) in C_GenerateKey() argument
56 pTemplate, ulCount, phKey)); in C_GenerateKey()
79 pMechanism, pTemplate, ulCount, phKey); in C_GenerateKey()
H A DmetaGlobal.h733 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);
H A DmetaKeys.c40 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey) in meta_GenerateKey() argument
58 rv = meta_generate_keys(session, pMechanism, pTemplate, ulCount, key, in meta_GenerateKey()
/titanic_41/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelObject.c43 CK_ULONG ulCount, in C_CreateObject() argument
54 if ((pTemplate == NULL) || (ulCount == 0) || in C_CreateObject()
68 rv = kernel_add_object(pTemplate, ulCount, phObject, session_p); in C_CreateObject()
82 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, in C_CopyObject() argument
101 if (((ulCount > 0) && (pTemplate == NULL)) || in C_CopyObject()
150 for (i = 0; i < ulCount; i++) { in C_CopyObject()
198 object_copy.oc_count = ulCount; in C_CopyObject()
200 if (ulCount > 0) { in C_CopyObject()
201 rv = process_object_attributes(pTemplate, ulCount, in C_CopyObject()
221 free_object_attributes(object_copy.oc_new_attributes, ulCount); in C_CopyObject()
[all …]
H A DkernelObjectUtil.c208 kernel_add_object(CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, in kernel_add_object() argument
237 objc.oc_count = ulCount; in kernel_add_object()
238 rv = process_object_attributes(pTemplate, ulCount, in kernel_add_object()
246 free_object_attributes(objc.oc_attributes, ulCount); in kernel_add_object()
262 free_object_attributes(objc.oc_attributes, ulCount); in kernel_add_object()
293 rv = kernel_build_object(pTemplate, ulCount, new_objp, sp, in kernel_add_object()
599 CK_ULONG ulCount, find_context_t *fcontext) in search_for_objects() argument
609 if (ulCount > 0) { in search_for_objects()
612 pTemplate, ulCount); in search_for_objects()
630 if (ulCount > 0) { in search_for_objects()
[all …]
H A DkernelUtil.c776 process_object_attributes(CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, in process_object_attributes() argument
785 if (ulCount == 0) { in process_object_attributes()
790 attrs = calloc(1, ulCount * sizeof (crypto_object_attribute_t)); in process_object_attributes()
796 for (i = 0; i < ulCount; i++) { in process_object_attributes()
879 get_object_attributes(CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, in get_object_attributes() argument
888 for (i = 0; i < ulCount; i++) { in get_object_attributes()
912 free_object_attributes(caddr_t obj_attrs, CK_ULONG ulCount) in free_object_attributes() argument
917 if ((ulCount == 0) || (obj_attrs == NULL)) { in free_object_attributes()
923 for (i = 0; i < ulCount; i++) { in free_object_attributes()
H A DkernelKeys.c248 CK_ULONG ulCount, kernel_session_t *session_p, in key_gen_by_value() argument
263 rv = get_key_len_from_template(pMechanism, pTemplate, ulCount, in key_gen_by_value()
273 attr_count = ulCount + 1; in key_gen_by_value()
274 newTemplate = grow_template(pTemplate, ulCount, attr_count); in key_gen_by_value()
281 newTemplate[ulCount].type = CKA_VALUE; in key_gen_by_value()
282 newTemplate[ulCount].pValue = (caddr_t)key_buf; in key_gen_by_value()
283 newTemplate[ulCount].ulValueLen = key_len; in key_gen_by_value()
290 rv = process_object_attributes(&newTemplate[ulCount], in key_gen_by_value()
325 rv = get_object_attributes(&newTemplate[ulCount], 1, in key_gen_by_value()
366 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey) in C_GenerateKey() argument
[all …]
H A DkernelObject.h528 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 DkernelAttributeUtil.c3579 CK_ULONG ulCount) in kernel_process_find_attr() argument
3594 for (i = 0; i < ulCount; i++) { in kernel_process_find_attr()
3624 for (i = 0; i < ulCount; i++) { in kernel_process_find_attr()
/titanic_41/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftObject.c39 CK_ULONG ulCount, in C_CreateObject() argument
58 if ((pTemplate == NULL) || (ulCount == 0) || in C_CreateObject()
65 rv = soft_add_object(pTemplate, ulCount, phObject, session_p); in C_CreateObject()
78 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, in C_CopyObject() argument
100 if (((ulCount > 0) && (pTemplate == NULL)) || in C_CopyObject()
133 for (i = 0; i < ulCount; i++) { in C_CopyObject()
330 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) in C_GetAttributeValue() argument
350 if ((pTemplate == NULL) || (ulCount == 0)) { in C_GetAttributeValue()
383 for (i = 0; i < ulCount; i++) { in C_GetAttributeValue()
411 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) in C_SetAttributeValue() argument
[all …]
H A DsoftObjectUtil.c228 soft_add_object(CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, in soft_add_object() argument
246 rv = soft_build_object(pTemplate, ulCount, new_objp); in soft_add_object()
591 search_for_objects(CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, in search_for_objects() argument
606 if (ulCount > 0) { in search_for_objects()
609 pTemplate, ulCount); in search_for_objects()
612 for (i = 0; i < ulCount; i++) { in search_for_objects()
627 for (i = 0; i < ulCount; i++) { in search_for_objects()
658 if (((token_specified) && (ulCount > 1)) || in search_for_objects()
659 ((!token_specified) && (ulCount > 0))) { in search_for_objects()
661 num_pclasses, pTemplate, ulCount)) { in search_for_objects()
[all …]
H A DsoftKeys.c35 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey) in C_GenerateKey() argument
55 if ((pTemplate == NULL) && (ulCount != 0)) { in C_GenerateKey()
61 ulCount, phKey); in C_GenerateKey()
H A DsoftKeysUtil.c62 soft_gen_keyobject(CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, in soft_gen_keyobject() argument
82 rv = soft_build_key(pTemplate, ulCount, new_objp, class, key_type, in soft_gen_keyobject()
154 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey) in soft_genkey() argument
204 for (i = 0; i < ulCount && !keyfound; i++) { in soft_genkey()
225 for (i = 0; i < ulCount; i++) { in soft_genkey()
260 rv = soft_gen_keyobject(pTemplate, ulCount, phKey, session_p, in soft_genkey()
H A DsoftObject.h796 CK_RV soft_add_object(CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount,
860 CK_ULONG ulCount);
869 CK_ULONG ulCount);
H A DsoftAttributeUtil.c6364 CK_ULONG ulCount) argument
6379 for (i = 0; i < ulCount; i++) {
6409 for (i = 0; i < ulCount; i++) {
/titanic_41/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dobject.c305 CK_ULONG ulCount, in object_create() argument
326 for (i = 0; i < ulCount; i++, attr++) { in object_create()
355 rc = object_create_skel(pTemplate, ulCount, in object_create()
425 CK_ULONG ulCount, in object_copy() argument
459 rc = template_add_attributes(new_tmpl, pTemplate, ulCount); in object_copy()
663 CK_ULONG ulCount) in object_get_attribute_values() argument
675 for (i = 0; i < ulCount; i++) { in object_get_attribute_values()
710 CK_ULONG ulCount) in object_set_attribute_values() argument
733 rc = template_add_attributes(new_tmpl, pTemplate, ulCount); in object_set_attribute_values()
815 CK_ULONG ulCount, in object_create_skel() argument
[all …]
H A Dobj_mgr.c363 CK_ULONG ulCount, in object_mgr_add() argument
378 rc = object_create(pTemplate, ulCount, &o); in object_mgr_add()
544 CK_ULONG ulCount, in object_mgr_copy() argument
566 rc = object_copy(pTemplate, ulCount, old_obj, &new_obj); in object_mgr_copy()
688 CK_ULONG ulCount, in object_mgr_create_skel() argument
702 if (! pTemplate && (ulCount != 0)) { in object_mgr_create_skel()
705 rc = object_create_skel(pTemplate, ulCount, in object_mgr_create_skel()
1148 CK_ULONG ulCount) in object_mgr_find_init() argument
1194 ulCount, publ_token_obj_list, TRUE); in object_mgr_find_init()
1196 ulCount, sess_obj_list, TRUE); in object_mgr_find_init()
[all …]
H A Dapi_interface.c482 CK_ULONG ulCount, in C_CopyObject() argument
502 if (!pTemplate && ulCount) { in C_CopyObject()
507 ulCount, phNewObject); in C_CopyObject()
518 CK_ULONG ulCount, in C_CreateObject() argument
533 if (ulCount == 0) { in C_CreateObject()
542 ulCount, phObject); in C_CreateObject()
1099 CK_ULONG ulCount) in C_FindObjectsInit() argument
1111 rv = FuncList.ST_FindObjectsInit(rSession, pTemplate, ulCount); in C_FindObjectsInit()
1122 CK_ULONG ulCount, in C_GenerateKey() argument
1142 pTemplate, ulCount, phKey); in C_GenerateKey()
[all …]
H A Dnew_host.c880 CK_ULONG ulCount, in SC_CreateObject() argument
903 rc = object_mgr_add(sess, pTemplate, ulCount, phObject); in SC_CreateObject()
915 CK_ULONG ulCount, in SC_CopyObject() argument
939 rc = object_mgr_copy(sess, pTemplate, ulCount, in SC_CopyObject()
1007 CK_ULONG ulCount) in SC_GetAttributeValue() argument
1024 rc = object_mgr_get_attribute_values(sess, hObject, pTemplate, ulCount); in SC_GetAttributeValue()
1034 CK_ULONG ulCount) in SC_SetAttributeValue() argument
1051 rc = object_mgr_set_attribute_values(sess, hObject, pTemplate, ulCount); in SC_SetAttributeValue()
1060 CK_ULONG ulCount) in SC_FindObjectsInit() argument
1088 rc = object_mgr_find_init(sess, pTemplate, ulCount); in SC_FindObjectsInit()
[all …]
H A Dtemplate.c304 CK_ULONG ulCount) in template_add_attributes() argument
310 for (i = 0; i < ulCount; i++) { in template_add_attributes()
558 CK_ULONG ulCount, in template_compare() argument
569 for (i = 0; i < ulCount; i++) { in template_compare()
/titanic_41/usr/src/lib/pkcs11/include/
H A Dpkcs11f.h266 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 Dpkcs11t.h1811 CK_ULONG ulCount; member
1818 CK_ULONG ulCount; member