Searched refs:pTemplate (Results 1 - 25 of 32) sorted by relevance

12

/osnet-11/usr/src/lib/pkcs11/libpkcs11/common/
H A Dpkcs11Object.c40 CK_ATTRIBUTE_PTR pTemplate,
50 return (fast_funcs->C_CreateObject(hSession, pTemplate,
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_ULON
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 Dpkcs11Keys.c43 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey)
56 pTemplate, ulCount, phKey));
79 pMechanism, pTemplate, ulCount, phKey);
216 CK_ULONG ulWrappedKeyLen, CK_ATTRIBUTE_PTR pTemplate,
231 pTemplate, ulAttributeCount, phKey));
255 pTemplate, ulAttributeCount, phKey);
273 CK_OBJECT_HANDLE hBaseKey, CK_ATTRIBUTE_PTR pTemplate,
287 hBaseKey, pTemplate, ulAttributeCount, phKey));
310 pMechanism, hBaseKey, pTemplate, ulAttributeCount, 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
214 C_UnwrapKey(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hUnwrappingKey, CK_BYTE_PTR pWrappedKey, CK_ULONG ulWrappedKeyLen, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulAttributeCount, CK_OBJECT_HANDLE_PTR phKey) argument
272 C_DeriveKey(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hBaseKey, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulAttributeCount, CK_OBJECT_HANDLE_PTR phKey) argument
H A DmetaObject.c111 meta_CreateObject(CK_SESSION_HANDLE hSession, CK_ATTRIBUTE_PTR pTemplate, argument
123 if (pTemplate == NULL || ulCount < 1 || phObject == NULL)
145 (void) get_template_boolean(CKA_TOKEN, pTemplate, ulCount,
158 (void) get_template_boolean(CKA_PRIVATE, pTemplate, ulCount,
163 (void) get_template_boolean(CKA_EXTRACTABLE, pTemplate, ulCount,
170 (void) get_template_boolean(CKA_SENSITIVE, pTemplate, ulCount,
181 if (meta_freeobject_check(session, object, NULL, pTemplate, ulCount,
192 if (!meta_freeobject_set(object, pTemplate, ulCount, B_TRUE)) {
216 slot_session->hSession, pTemplate, ulCount, &hNewObject);
247 slot_session->hSession, pTemplate, ulCoun
345 meta_CopyObject(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phNewObject) argument
673 meta_GetAttributeValue(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument
729 meta_SetAttributeValue(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument
1033 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
1098 meta_FindObjectsInit(CK_SESSION_HANDLE hSession, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument
[all...]
H A DmetaKeys.c39 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey)
57 rv = meta_generate_keys(session, pMechanism, pTemplate, ulCount, key,
186 CK_ULONG ulWrappedKeyLen, CK_ATTRIBUTE_PTR pTemplate,
210 (void) get_template_boolean(CKA_TOKEN, pTemplate, ulAttributeCount,
215 pTemplate, ulAttributeCount, outputKey);
245 CK_OBJECT_HANDLE hBaseKey, CK_ATTRIBUTE_PTR pTemplate,
411 pTemplate, ulAttributeCount, newKey1, newKey2, newKey3, newKey4);
38 meta_GenerateKey(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey) argument
184 meta_UnwrapKey(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hUnwrappingKey, CK_BYTE_PTR pWrappedKey, CK_ULONG ulWrappedKeyLen, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulAttributeCount, CK_OBJECT_HANDLE_PTR phKey) argument
244 meta_DeriveKey(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hBaseKey, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulAttributeCount, CK_OBJECT_HANDLE_PTR phKey) argument
H A DmetaGlobal.h618 CK_ATTRIBUTE *pTemplate, CK_ULONG ulAttributeCount,
736 CK_RV meta_CreateObject(CK_SESSION_HANDLE hSession, CK_ATTRIBUTE_PTR pTemplate,
739 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount,
745 CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount);
747 CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount);
749 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount);
820 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey);
831 CK_ULONG ulWrappedKeyLen, CK_ATTRIBUTE_PTR pTemplate,
834 CK_OBJECT_HANDLE hBaseKey, CK_ATTRIBUTE_PTR pTemplate,
/osnet-11/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dobject.c304 object_create(CK_ATTRIBUTE * pTemplate, argument
320 if (! pTemplate) {
325 attr = pTemplate;
355 rc = object_create_skel(pTemplate, ulCount,
424 object_copy(CK_ATTRIBUTE * pTemplate, argument
437 if (! old_obj || ! pTemplate || ! new_obj) {
459 rc = template_add_attributes(new_tmpl, pTemplate, ulCount);
662 CK_ATTRIBUTE * pTemplate,
677 pTemplate[i].type);
680 pTemplate[
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 Dobj_mgr.c361 CK_ATTRIBUTE * pTemplate,
369 if (! sess || ! pTemplate || ! handle) {
377 rc = object_create(pTemplate, ulCount, &o);
543 CK_ATTRIBUTE * pTemplate,
554 if (! sess || ! pTemplate || ! new_handle) {
566 rc = object_copy(pTemplate, ulCount, old_obj, &new_obj);
687 CK_ATTRIBUTE * pTemplate,
702 if (! pTemplate && (ulCount != 0)) {
705 rc = object_create_skel(pTemplate, ulCount,
1147 CK_ATTRIBUTE * pTemplate,
360 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 Dapi_interface.c480 CK_ATTRIBUTE_PTR pTemplate,
501 if (!pTemplate && ulCount) {
505 rv = FuncList.ST_CopyObject(rSession, hObject, pTemplate,
516 CK_ATTRIBUTE_PTR pTemplate,
529 if (! pTemplate) {
540 rv = FuncList.ST_CreateObject(rSession, pTemplate,
723 CK_ATTRIBUTE_PTR pTemplate,
740 if (!pTemplate && ulAttributeCount) {
745 hBaseKey, pTemplate, ulAttributeCount, phKey);
1097 CK_ATTRIBUTE_PTR pTemplate,
477 C_CopyObject( CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phNewObject) argument
514 C_CreateObject( CK_SESSION_HANDLE hSession, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phObject) argument
720 C_DeriveKey(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hBaseKey, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulAttributeCount, CK_OBJECT_HANDLE_PTR phKey) argument
1096 C_FindObjectsInit(CK_SESSION_HANDLE hSession, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument
1118 C_GenerateKey(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey) argument
1211 C_GetAttributeValue(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument
1830 C_SetAttributeValue(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument
2091 C_UnwrapKey(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hUnwrappingKey, CK_BYTE_PTR pWrappedKey, CK_ULONG ulWrappedKeyLen, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulAttributeCount, CK_OBJECT_HANDLE_PTR phKey) argument
[all...]
H A Dnew_host.c871 CK_ATTRIBUTE_PTR pTemplate,
895 rc = object_mgr_add(sess, pTemplate, ulCount, phObject);
906 CK_ATTRIBUTE_PTR pTemplate,
931 rc = object_mgr_copy(sess, pTemplate, ulCount,
998 CK_ATTRIBUTE_PTR pTemplate,
1016 rc = object_mgr_get_attribute_values(sess, hObject, pTemplate, ulCount);
1025 CK_ATTRIBUTE_PTR pTemplate,
1043 rc = object_mgr_set_attribute_values(sess, hObject, pTemplate, ulCount);
1051 CK_ATTRIBUTE_PTR pTemplate,
1080 rc = object_mgr_find_init(sess, pTemplate, ulCoun
870 SC_CreateObject(ST_SESSION_HANDLE sSession, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phObject) argument
903 SC_CopyObject( ST_SESSION_HANDLE sSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phNewObject) argument
996 SC_GetAttributeValue(ST_SESSION_HANDLE sSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument
1023 SC_SetAttributeValue(ST_SESSION_HANDLE sSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument
1050 SC_FindObjectsInit(ST_SESSION_HANDLE sSession, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument
2257 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 Dtpmtok_int.h1342 (ST_SESSION_T hSession, CK_ATTRIBUTE_PTR pTemplate,
1348 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG usCount,
1360 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG usCount);
1364 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG usCount);
1367 (ST_SESSION_T hSession, CK_ATTRIBUTE_PTR pTemplate,
1509 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG usCount,
1529 CK_ULONG usWrappedKeyLen, CK_ATTRIBUTE_PTR pTemplate,
1534 CK_OBJECT_HANDLE hBaseKey, CK_ATTRIBUTE_PTR pTemplate,
H A Dtemplate.c302 CK_ATTRIBUTE * pTemplate,
310 if (! is_attribute_defined(pTemplate[i].type)) {
314 pTemplate[i].ulValueLen);
318 attr->type = pTemplate[i].type;
319 attr->ulValueLen = pTemplate[i].ulValueLen;
323 (void) memcpy(attr->pValue, pTemplate[i].pValue,
301 template_add_attributes(TEMPLATE * tmpl, CK_ATTRIBUTE * pTemplate, CK_ULONG ulCount) argument
/osnet-11/usr/src/lib/pkcs11/pkcs11_kms/common/
H A DkmsKeys.c49 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey)
70 if ((pTemplate == NULL) && (ulCount != 0)) {
91 rv = kms_build_object(pTemplate, ulCount, new_objp);
161 CK_ULONG ulWrappedKeyLen, CK_ATTRIBUTE_PTR pTemplate,
173 CK_OBJECT_HANDLE hBaseKey, CK_ATTRIBUTE_PTR pTemplate,
48 C_GenerateKey(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey) argument
159 C_UnwrapKey(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hUnwrappingKey, CK_BYTE_PTR pWrappedKey, CK_ULONG ulWrappedKeyLen, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulAttributeCount, CK_OBJECT_HANDLE_PTR phKey) argument
172 C_DeriveKey(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hBaseKey, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulAttributeCount, CK_OBJECT_HANDLE_PTR phKey) argument
H A DkmsObject.c39 CK_ATTRIBUTE_PTR pTemplate,
51 if ((pTemplate == NULL) || (ulCount == 0) ||
65 rv = kms_add_object(pTemplate, ulCount, phObject, session_p);
78 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount,
93 if (((ulCount > 0) && (pTemplate == NULL)) ||
144 rv = kms_set_attribute(new_object, &pTemplate[i],
278 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount)
290 if ((pTemplate == NULL) || (ulCount == 0))
324 rv = kms_get_attribute(object_p, &pTemplate[i]);
343 CK_ATTRIBUTE_PTR pTemplate, CK_ULON
38 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
277 C_GetAttributeValue(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument
342 C_SetAttributeValue(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument
502 C_FindObjectsInit(CK_SESSION_HANDLE sh, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument
[all...]
H A DkmsObjectUtil.c220 kms_add_object(CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, argument
233 rv = kms_build_object(pTemplate, ulCount, new_objp);
543 search_for_objects(kms_session_t *sp, CK_ATTRIBUTE_PTR pTemplate, argument
562 pTemplate, ulCount);
571 if (pTemplate[i].type == CKA_TOKEN) {
573 token_flag_val = *((CK_BBOOL *)pTemplate[i].pValue);
575 if (pTemplate[i].type == CKA_LABEL) {
576 label = (char *)pTemplate[i].pValue;
578 if (pTemplate[i].type == CKA_CLASS) {
579 findclass = *((CK_OBJECT_CLASS *)pTemplate[
714 kms_find_objects_init(kms_session_t *sp, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument
[all...]
H A DkmsObject.h227 CK_RV kms_add_object(CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount,
263 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount);
272 CK_ULONG *num_result_pclasses, CK_ATTRIBUTE_PTR pTemplate,
/osnet-11/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftKeys.c35 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey)
55 if ((pTemplate == NULL) && (ulCount != 0)) {
60 rv = soft_genkey(session_p, pMechanism, pTemplate,
220 CK_ULONG ulWrappedKeyLen, CK_ATTRIBUTE_PTR pTemplate,
241 if ((pTemplate == NULL) || (ulAttributeCount == 0)) {
297 pWrappedKey, ulWrappedKeyLen, pTemplate, ulAttributeCount,
319 CK_OBJECT_HANDLE hBaseKey, CK_ATTRIBUTE_PTR pTemplate,
341 if (((pTemplate != NULL) && (ulAttributeCount == 0)) ||
342 ((pTemplate == NULL) && (ulAttributeCount != 0))) {
359 pTemplate, ulAttributeCoun
34 C_GenerateKey(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey) argument
218 C_UnwrapKey(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hUnwrappingKey, CK_BYTE_PTR pWrappedKey, CK_ULONG ulWrappedKeyLen, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulAttributeCount, CK_OBJECT_HANDLE_PTR phKey) argument
318 C_DeriveKey(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hBaseKey, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulAttributeCount, CK_OBJECT_HANDLE_PTR phKey) argument
[all...]
H A DsoftObject.c37 CK_ATTRIBUTE_PTR pTemplate,
57 if ((pTemplate == NULL) || (ulCount == 0) ||
64 rv = soft_add_object(pTemplate, ulCount, phObject, session_p);
77 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount,
99 if (((ulCount > 0) && (pTemplate == NULL)) ||
134 rv = soft_set_attribute(new_object, &pTemplate[i], B_TRUE);
329 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount)
349 if ((pTemplate == NULL) || (ulCount == 0)) {
387 rv = soft_get_attribute(object_p, &pTemplate[i]);
410 CK_ATTRIBUTE_PTR pTemplate, CK_ULON
36 C_CreateObject(CK_SESSION_HANDLE hSession, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phObject) argument
76 C_CopyObject(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phNewObject) argument
328 C_GetAttributeValue(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument
409 C_SetAttributeValue(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument
560 C_FindObjectsInit(CK_SESSION_HANDLE sh, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument
[all...]
H A DsoftKeysUtil.c65 soft_gen_keyobject(CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, argument
85 rv = soft_build_key(pTemplate, ulCount, new_objp, class, key_type,
158 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey)
209 if (pTemplate[i].type == CKA_KEY_TYPE &&
210 pTemplate[i].pValue != NULL) {
211 key_type = *((CK_KEY_TYPE*)pTemplate[i].pValue);
230 if (pTemplate[i].type == CKA_KEY_TYPE &&
231 pTemplate[i].pValue != NULL) {
232 key_type = *((CK_KEY_TYPE*)pTemplate[i].pValue);
235 if (pTemplate[
157 soft_genkey(soft_session_t *session_p, CK_MECHANISM_PTR pMechanism, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey) argument
870 soft_derivekey(soft_session_t *session_p, CK_MECHANISM_PTR pMechanism, soft_object_t *basekey_p, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulAttributeCount, CK_OBJECT_HANDLE_PTR phKey) argument
1585 soft_unwrap_secret_len_check(CK_KEY_TYPE keytype, CK_MECHANISM_TYPE mechtype, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulAttributeCount) argument
1658 soft_unwrapkey(soft_session_t *session_p, CK_MECHANISM_PTR pMechanism, soft_object_t *unwrappingkey_p, CK_BYTE_PTR pWrappedKey, CK_ULONG ulWrappedKeyLen, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulAttributeCount, CK_OBJECT_HANDLE_PTR phKey) argument
[all...]
H A DsoftObjectUtil.c229 soft_add_object(CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, argument
247 rv = soft_build_object(pTemplate, ulCount, new_objp);
595 search_for_objects(CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, argument
613 pTemplate, ulCount);
617 if (pTemplate[i].type == CKA_PRIVATE) {
632 if (pTemplate[i].type == CKA_TOKEN) {
634 token_flag_val = *((CK_BBOOL *)pTemplate[i].pValue);
674 num_pclasses, pTemplate, ulCount)) {
722 num_pclasses, pTemplate, ulCount)) {
753 soft_find_objects_init(soft_session_t *sp, CK_ATTRIBUTE_PTR pTemplate, argument
[all...]
H A DsoftSSL.c404 * . pTemplate & ulAttributeCount: Any extra attributes for the key to be
425 soft_object_t *basekey_p, CK_ATTRIBUTE_PTR pTemplate,
568 if ((pTemplate[i].type == CKA_CLASS) &&
569 (*((CK_OBJECT_CLASS *)pTemplate[i].pValue) !=
574 if ((pTemplate[i].type == CKA_KEY_TYPE) &&
575 (*((CK_KEY_TYPE *)pTemplate[i].pValue) !=
581 bcopy(pTemplate, &new_tmpl[4],
603 * . pTemplate & ulAttributeCount: Any extra attributes for the key to be
631 soft_object_t *basekey_p, CK_ATTRIBUTE_PTR pTemplate,
893 bcopy(pTemplate,
424 soft_ssl_master_key_derive(soft_session_t *sp, CK_MECHANISM_PTR mech, soft_object_t *basekey_p, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulAttributeCount, CK_OBJECT_HANDLE_PTR phKey) argument
630 soft_ssl_key_and_mac_derive(soft_session_t *sp, CK_MECHANISM_PTR mech, soft_object_t *basekey_p, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulAttributeCount) argument
[all...]
/osnet-11/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelUtil.c776 process_object_attributes(CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, argument
802 switch (pTemplate[i].type) {
809 if (pTemplate[i].pValue != NULL &&
810 (pTemplate[i].ulValueLen < value_len)) {
817 value_len = pTemplate[i].ulValueLen;
820 cur_attr->oa_type = pTemplate[i].type;
824 if ((pTemplate[i].pValue != NULL) &&
825 (pTemplate[i].ulValueLen > 0)) {
826 ptr = malloc(pTemplate[i].ulValueLen);
832 (void) memcpy(ptr, pTemplate[
879 get_object_attributes(CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, caddr_t obj_attrs) argument
948 CK_ATTRIBUTE pTemplate[2]; local
[all...]
H A DkernelObject.c38 CK_ATTRIBUTE_PTR pTemplate,
50 if ((pTemplate == NULL) || (ulCount == 0) ||
64 rv = kernel_add_object(pTemplate, ulCount, phObject, session_p);
78 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount,
97 if (((ulCount > 0) && (pTemplate == NULL)) ||
148 rv = kernel_set_attribute(new_object, &pTemplate[i],
197 rv = process_object_attributes(pTemplate, ulCount,
393 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount)
406 if ((pTemplate == NULL) || (ulCount == 0))
441 rv = kernel_get_attribute(object_p, &pTemplate[
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
392 C_GetAttributeValue(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument
512 C_SetAttributeValue(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument
729 C_FindObjectsInit(CK_SESSION_HANDLE sh, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount) argument
[all...]
H A DkernelObjectUtil.c208 kernel_add_object(CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, argument
238 rv = process_object_attributes(pTemplate, ulCount,
293 rv = kernel_build_object(pTemplate, ulCount, new_objp, sp,
598 search_for_objects(kernel_session_t *sp, CK_ATTRIBUTE_PTR pTemplate, argument
612 pTemplate, ulCount);
632 num_pclasses, pTemplate, ulCount)) {
663 kernel_find_objects_init(kernel_session_t *sp, CK_ATTRIBUTE_PTR pTemplate, argument
671 rv = kernel_validate_attr(pTemplate, ulCount, &class);
684 rv = search_for_objects(sp, pTemplate, ulCount, fcontext);
H A DkernelKeys.c106 is_secret_key_template(CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulAttributeCount) argument
110 if (pTemplate[i].type == CKA_CLASS &&
111 *(CK_OBJECT_CLASS *)(pTemplate[i].pValue) ==
142 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulAttributeCount,
150 if (pTemplate[i].type == CKA_KEY_TYPE) {
151 get_ulong_attr_from_template(&key_type, &pTemplate[i]);
171 if (pTemplate[i].type == CKA_VALUE_LEN) {
173 &pTemplate[i]);
208 pTemplate, ulAttributeCount))
247 key_gen_by_value(CK_MECHANISM_PTR pMechanism, CK_ATTRIBUTE_PTR pTemplate, argument
141 get_key_len_from_template(CK_MECHANISM_PTR pMechanism, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulAttributeCount, kernel_object_t *basekey_p, ulong_t *key_len) 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
1744 C_UnwrapKey(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hUnwrappingKey, CK_BYTE_PTR pWrappedKey, CK_ULONG ulWrappedKeyLen, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulAttributeCount, CK_OBJECT_HANDLE_PTR phKey) argument
2178 derive_key_by_value(CK_MECHANISM_PTR pMechanism, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulAttributeCount, kernel_session_t *session_p, crypto_mech_type_t k_mech_type, kernel_object_t *basekey_p, kernel_object_t *new_objp) argument
2323 C_DeriveKey(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hBaseKey, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulAttributeCount, CK_OBJECT_HANDLE_PTR phKey) argument
[all...]
/osnet-11/usr/src/lib/pkcs11/include/
H A Dpkcs11f.h265 CK_ATTRIBUTE_PTR pTemplate, /* the object's template */
279 CK_ATTRIBUTE_PTR pTemplate, /* template for new object */
314 CK_ATTRIBUTE_PTR pTemplate, /* specifies attrs; gets vals */
327 CK_ATTRIBUTE_PTR pTemplate, /* specifies attrs and values */
339 CK_ATTRIBUTE_PTR pTemplate, /* attribute values to match */
768 CK_ATTRIBUTE_PTR pTemplate, /* template for new key */
828 CK_ATTRIBUTE_PTR pTemplate, /* new key template */
843 CK_ATTRIBUTE_PTR pTemplate, /* new key template */

Completed in 68 milliseconds

12