Lines Matching refs:attributes

96 	TEE_Free(obj->attributes);  in cleanup_volatile_obj_ref()
138 trace_attributes("[destroy]", obj->attributes); in destroy_object()
153 if (get_bool(obj->attributes, PKCS11_CKA_TOKEN)) { in destroy_object()
183 obj->attributes = head; in create_obj_instance()
238 if (get_bool(obj->attributes, PKCS11_CKA_TOKEN)) { in create_object()
248 obj->attributes->attrs_size; in create_object()
261 obj->attributes, size, in create_object()
290 obj->attributes = NULL; in create_object()
443 if (get_bool(object->attributes, PKCS11_CKA_TOKEN) && in entry_destroy_object()
452 rc = check_access_attrs_against_token(session, object->attributes); in entry_destroy_object()
457 if (!get_bool(object->attributes, PKCS11_CKA_DESTROYABLE)) in entry_destroy_object()
473 TEE_Free(find_ctx->attributes); in release_find_obj_context()
592 if (!attributes_match_reference(obj->attributes, in entry_find_objects_init()
610 if (!obj->attributes) { in entry_find_objects_init()
620 if (!obj->attributes || in entry_find_objects_init()
622 obj->attributes) || in entry_find_objects_init()
623 !attributes_match_reference(obj->attributes, req_attrs)) { in entry_find_objects_init()
645 find_ctx->attributes = req_attrs; in entry_find_objects_init()
797 rc = check_access_attrs_against_token(session, obj->attributes); in entry_get_attribute_value()
872 rc = get_attribute(obj->attributes, cli_head.id, data_ptr, in entry_get_attribute_value()
962 rc = check_access_attrs_against_token(session, obj->attributes); in entry_get_object_size()
969 obj_size = ((struct obj_attrs *)obj->attributes)->attrs_size + in entry_get_object_size()
1025 if (object_is_token(obj->attributes) && in entry_set_attribute_value()
1035 rc = check_access_attrs_against_token(session, obj->attributes); in entry_set_attribute_value()
1042 if (!object_is_modifiable(obj->attributes)) { in entry_set_attribute_value()
1067 template_size = sizeof(*obj->attributes) + obj->attributes->attrs_size; in entry_set_attribute_value()
1074 TEE_MemMove(head_new, obj->attributes, template_size); in entry_set_attribute_value()
1090 head_old = obj->attributes; in entry_set_attribute_value()
1091 obj->attributes = head_new; in entry_set_attribute_value()
1094 if (get_bool(obj->attributes, PKCS11_CKA_TOKEN)) { in entry_set_attribute_value()
1097 TEE_Free(obj->attributes); in entry_set_attribute_value()
1098 obj->attributes = head_old; in entry_set_attribute_value()
1167 if (object_is_token(obj->attributes) && in entry_copy_object()
1177 rc = check_access_attrs_against_token(session, obj->attributes); in entry_copy_object()
1184 if (!object_is_copyable(obj->attributes)) { in entry_copy_object()
1208 class = get_class(obj->attributes); in entry_copy_object()
1235 template_size = sizeof(*obj->attributes) + obj->attributes->attrs_size; in entry_copy_object()
1242 TEE_MemMove(head_new, obj->attributes, template_size); in entry_copy_object()