Searched refs:obj_attrs (Results 1 – 13 of 13) sorted by relevance
/optee_os/ta/pkcs11/src/ |
A D | pkcs11_attributes.h | 13 struct obj_attrs; 135 struct obj_attrs *head); 138 struct obj_attrs *head); 141 struct obj_attrs *key2); 154 struct obj_attrs *head); 157 struct obj_attrs *head); 168 bool object_is_private(struct obj_attrs *head); 170 bool object_is_token(struct obj_attrs *head); 174 bool object_is_copyable(struct obj_attrs *head); 184 struct obj_attrs *head, [all …]
|
A D | attributes.h | 58 struct obj_attrs { struct 72 enum pkcs11_rc init_attributes_head(struct obj_attrs **head); argument 85 enum pkcs11_rc add_attribute(struct obj_attrs **head, uint32_t attribute, 116 void get_attribute_ptrs(struct obj_attrs *head, uint32_t attribute, 185 enum pkcs11_rc modify_attributes_list(struct obj_attrs **dst, 186 struct obj_attrs *head); 219 bool attributes_match_reference(struct obj_attrs *ref, 220 struct obj_attrs *candidate); 228 struct obj_attrs *ref); 236 static inline enum pkcs11_class_id get_class(struct obj_attrs *head) in get_class() [all …]
|
A D | attributes.c | 22 enum pkcs11_rc init_attributes_head(struct obj_attrs **head) in init_attributes_head() 34 size_t buf_len = sizeof(struct obj_attrs) + (*head)->attrs_size; in add_attribute() 64 struct obj_attrs *h = *head; in _remove_attribute() 70 cur = (char *)h + sizeof(struct obj_attrs); in _remove_attribute() 107 char *cur = (char *)head + sizeof(struct obj_attrs); in get_attribute_ptrs() 208 struct obj_attrs *head) in modify_attributes_list() 210 char *cur = (char *)head + sizeof(struct obj_attrs); in modify_attributes_list() 233 bool get_bool(struct obj_attrs *head, uint32_t attribute) in get_bool() 249 struct obj_attrs *ref) in attributes_match_reference() 280 struct obj_attrs *ref) in attributes_match_add_reference() [all …]
|
A D | pkcs11_attributes.c | 303 struct obj_attrs *temp, in set_attributes_opt_or_null() 474 struct obj_attrs *temp) in create_storage_attributes() 539 struct obj_attrs *temp) in create_symm_key_attributes() 716 struct obj_attrs *temp, in create_pub_key_attributes() 790 struct obj_attrs *temp) in create_priv_key_attributes() 917 struct obj_attrs *parent, in create_attributes_from_template() 922 struct obj_attrs *temp = NULL; in create_attributes_from_template() 1276 struct obj_attrs *head) in check_access_attrs_against_token() 1306 struct obj_attrs *head) in check_created_attrs_against_token() 1462 struct obj_attrs *key2) in check_created_attrs() [all …]
|
A D | object.h | 14 struct obj_attrs; 29 struct obj_attrs *attributes; 45 struct pkcs11_object *create_token_object(struct obj_attrs *head, 49 enum pkcs11_rc create_object(void *session, struct obj_attrs *attributes,
|
A D | processing.h | 89 enum pkcs11_rc tee2pkcs_add_attribute(struct obj_attrs **head, 164 struct obj_attrs **pub_head, 165 struct obj_attrs **priv_head); 194 struct obj_attrs **pub_head, 195 struct obj_attrs **priv_head);
|
A D | sanitize_object.h | 17 bool sanitize_consistent_class_and_type(struct obj_attrs *attrs); 39 enum pkcs11_rc sanitize_client_object(struct obj_attrs **dst, void *head,
|
A D | sanitize_object.c | 27 bool sanitize_consistent_class_and_type(struct obj_attrs *attrs) in sanitize_consistent_class_and_type() 72 static enum pkcs11_rc sanitize_class_and_type(struct obj_attrs **dst, void *src, in sanitize_class_and_type() 168 static enum pkcs11_rc sanitize_boolprops(struct obj_attrs **dst, void *src, in sanitize_boolprops() 226 static uint32_t sanitize_indirect_attr(struct obj_attrs **dst, in sanitize_indirect_attr() 230 struct obj_attrs *obj2 = NULL; in sanitize_indirect_attr() 249 enum pkcs11_rc sanitize_client_object(struct obj_attrs **dst, void *src, in sanitize_client_object()
|
A D | object.c | 170 static struct pkcs11_object *create_obj_instance(struct obj_attrs *head, in create_obj_instance() 187 struct pkcs11_object *create_token_object(struct obj_attrs *head, in create_token_object() 206 enum pkcs11_rc create_object(void *sess, struct obj_attrs *head, in create_object() 245 size_t size = sizeof(struct obj_attrs) + in create_object() 310 struct obj_attrs *head = NULL; in entry_create_object() 501 struct obj_attrs *req_attrs = NULL; in entry_find_objects_init() 953 obj_size = ((struct obj_attrs *)obj->attributes)->attrs_size + in entry_get_object_size() 954 sizeof(struct obj_attrs); in entry_get_object_size() 974 struct obj_attrs *head = NULL; in entry_set_attribute_value() 1084 struct obj_attrs *head = NULL; in entry_copy_object() [all …]
|
A D | processing_ec.c | 447 static enum pkcs11_rc tee2pkcs_ec_attributes(struct obj_attrs **pub_head, in tee2pkcs_ec_attributes() 448 struct obj_attrs **priv_head, in tee2pkcs_ec_attributes() 555 struct obj_attrs **pub_head, in generate_ec_keys() 556 struct obj_attrs **priv_head) in generate_ec_keys()
|
A D | processing_rsa.c | 455 static enum pkcs11_rc tee2pkcs_rsa_attributes(struct obj_attrs **pub_head, in tee2pkcs_rsa_attributes() 456 struct obj_attrs **priv_head, in tee2pkcs_rsa_attributes() 531 struct obj_attrs **pub_head, in generate_rsa_keys() 532 struct obj_attrs **priv_head) in generate_rsa_keys()
|
A D | processing.c | 128 struct obj_attrs *attrs = obj->attributes; in get_object_key_bit_size() 160 static enum pkcs11_rc generate_random_key_value(struct obj_attrs **head) in generate_random_key_value() 211 struct obj_attrs *head = NULL; in entry_generate_secret() 357 enum pkcs11_rc tee2pkcs_add_attribute(struct obj_attrs **head, in tee2pkcs_add_attribute() 394 struct obj_attrs *pub_head = NULL; in entry_generate_key_pair() 395 struct obj_attrs *priv_head = NULL; in entry_generate_key_pair() 806 struct obj_attrs *head = NULL; in entry_processing_key()
|
A D | persistent_token.c | 474 struct obj_attrs *attr = NULL; in load_persistent_object_attributes() 561 size = sizeof(struct obj_attrs) + obj->attributes->attrs_size; in update_persistent_object_attributes()
|
Completed in 21 milliseconds