Lines Matching refs:attrs

236 					       uint32_t const *attrs,  in set_mandatory_attributes()  argument
246 if (get_attribute_ptr(temp, attrs[n], &value, &size)) in set_mandatory_attributes()
249 rc = add_attribute(out, attrs[n], value, size); in set_mandatory_attributes()
271 uint32_t const *attrs, in set_optional_attributes_with_def() argument
282 rc = get_attribute_ptr(temp, attrs[n], &value, &size); in set_optional_attributes_with_def()
285 rc = get_default_value(attrs[n], &value, &size); in set_optional_attributes_with_def()
294 rc = add_attribute(out, attrs[n], value, size); in set_optional_attributes_with_def()
304 uint32_t const *attrs, in set_attributes_opt_or_null() argument
307 return set_optional_attributes_with_def(out, temp, attrs, attrs_count, in set_attributes_opt_or_null()
313 uint32_t const *attrs, in set_optional_attributes() argument
316 return set_optional_attributes_with_def(out, temp, attrs, attrs_count, in set_optional_attributes()
923 struct obj_attrs *attrs = NULL; in create_attributes_from_template() local
1086 rc = create_data_attributes(&attrs, temp); in create_attributes_from_template()
1089 rc = create_certificate_attributes(&attrs, temp); in create_attributes_from_template()
1095 rc = create_symm_key_attributes(&attrs, temp); in create_attributes_from_template()
1098 rc = create_pub_key_attributes(&attrs, temp, function); in create_attributes_from_template()
1101 rc = create_priv_key_attributes(&attrs, temp); in create_attributes_from_template()
1137 rc = add_attribute(&attrs, PKCS11_CKA_LOCAL, &local, sizeof(local)); in create_attributes_from_template()
1141 switch (get_class(attrs)) { in create_attributes_from_template()
1152 get_bool(attrs, PKCS11_CKA_SENSITIVE); in create_attributes_from_template()
1155 !get_bool(attrs, PKCS11_CKA_EXTRACTABLE); in create_attributes_from_template()
1170 rc = set_attribute(&attrs, in create_attributes_from_template()
1180 always_sensitive = get_bool(attrs, in create_attributes_from_template()
1182 never_extract = !get_bool(attrs, in create_attributes_from_template()
1189 rc = add_attribute(&attrs, PKCS11_CKA_ALWAYS_SENSITIVE, in create_attributes_from_template()
1194 rc = add_attribute(&attrs, PKCS11_CKA_NEVER_EXTRACTABLE, in create_attributes_from_template()
1205 rc = add_attribute(&attrs, PKCS11_CKA_KEY_GEN_MECHANISM, in create_attributes_from_template()
1215 *out = attrs; in create_attributes_from_template()
1218 trace_attributes("object", attrs); in create_attributes_from_template()
1224 TEE_Free(attrs); in create_attributes_from_template()