Lines Matching full:head
172 static struct pkcs11_object *create_obj_instance(struct obj_attrs *head, in create_obj_instance() argument
183 obj->attributes = head; in create_obj_instance()
189 struct pkcs11_object *create_token_object(struct obj_attrs *head, in create_token_object() argument
193 struct pkcs11_object *obj = create_obj_instance(head, token); in create_token_object()
205 * @head - reference to serialized attributes
208 enum pkcs11_rc create_object(void *sess, struct obj_attrs *head, in create_object() argument
217 trace_attributes("[create]", head); in create_object()
225 obj = create_obj_instance(head, NULL); in create_object()
289 /* make sure that supplied "head" isn't freed */ in create_object()
292 if (get_bool(head, PKCS11_CKA_TOKEN)) in create_object()
312 struct obj_attrs *head = NULL; in entry_create_object() local
346 rc = create_attributes_from_template(&head, template, template_size, in entry_create_object()
356 rc = set_check_value_attr(&head); in entry_create_object()
365 head); in entry_create_object()
369 rc = check_created_attrs_against_token(session, head); in entry_create_object()
373 rc = check_access_attrs_against_token(session, head); in entry_create_object()
379 * referenced in @head, including the key value and are assumed in entry_create_object()
382 rc = create_object(session, head, &obj_handle); in entry_create_object()
389 * attributes. We clear reference in head to NULL as the serializer in entry_create_object()
393 head = NULL; in entry_create_object()
403 TEE_Free(head); in entry_create_object()
990 struct obj_attrs *head = NULL; in entry_set_attribute_value() local
1050 * Prepare a clean initial state (@head) for the template. Helps in in entry_set_attribute_value()
1054 rc = create_attributes_from_template(&head, template, template_size, in entry_set_attribute_value()
1061 /* Check the attributes in @head to see if they are modifiable */ in entry_set_attribute_value()
1062 rc = check_attrs_against_modification(session, head, obj, function); in entry_set_attribute_value()
1077 * All checks complete. The attributes in @head have been checked and in entry_set_attribute_value()
1080 rc = modify_attributes_list(&head_new, head); in entry_set_attribute_value()
1109 TEE_Free(head); in entry_set_attribute_value()
1128 struct obj_attrs *head = NULL; in entry_copy_object() local
1192 * Prepare a clean initial state (@head) for the template. Helps in in entry_copy_object()
1196 rc = create_attributes_from_template(&head, template, template_size, in entry_copy_object()
1203 /* Check the attributes in @head to see if they are modifiable */ in entry_copy_object()
1204 rc = check_attrs_against_modification(session, head, obj, function); in entry_copy_object()
1213 * If CKA_EXTRACTABLE attribute in passed template (@head) is in entry_copy_object()
1221 rc = get_attribute(head, PKCS11_CKA_EXTRACTABLE, &bbool, &size); in entry_copy_object()
1223 rc = add_attribute(&head, PKCS11_CKA_NEVER_EXTRACTABLE, in entry_copy_object()
1245 * Modify the copied attribute @head_new based on the template @head in entry_copy_object()
1248 rc = modify_attributes_list(&head_new, head); in entry_copy_object()
1269 * attributes. We clear reference in head to NULL as the serializer in entry_copy_object()
1283 TEE_Free(head); in entry_copy_object()