/optee_os-3.20.0/lib/libutils/isoc/include/sys/ |
A D | queue.h | 174 #define LIST_FIRST(head) ((head)->lh_first) argument 249 #define SLIST_FIRST(head) ((head)->slh_first) argument 274 (head)->stqh_last = &(head)->stqh_first; \ 297 (head)->stqh_last = &(head)->stqh_first; \ 366 (head)->sqh_last = &(head)->sqh_first; \ 389 (head)->sqh_last = &(head)->sqh_first; \ 473 (head)->tqh_last = &(head)->tqh_first; \ 615 { (void *)&head, (void *)&head } 627 (head)->cqh_first = (void *)(head); \ 628 (head)->cqh_last = (void *)(head); \ [all …]
|
/optee_os-3.20.0/ta/pkcs11/src/ |
A D | attributes.h | 72 enum pkcs11_rc init_attributes_head(struct obj_attrs **head); 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, 186 struct obj_attrs *head); 207 enum pkcs11_rc rc = get_attribute(head, attribute, attr, &size); in get_u32_attribute() 236 static inline enum pkcs11_class_id get_class(struct obj_attrs *head) in get_class() argument 241 if (get_attribute(head, PKCS11_CKA_CLASS, &class, &size)) in get_class() 259 if (get_attribute(head, PKCS11_CKA_KEY_TYPE, &type, &size)) in get_key_type() 277 if (get_u32_attribute(head, PKCS11_CKA_CERTIFICATE_TYPE, &type)) in get_certificate_type() 295 if (get_attribute(head, PKCS11_CKA_MECHANISM_TYPE, &type, &size)) in get_mechanism_type() [all …]
|
A D | attributes.c | 24 *head = TEE_Malloc(sizeof(**head), TEE_MALLOC_FILL_ZERO); in init_attributes_head() 25 if (!*head) in init_attributes_head() 35 char **bstart = (void *)head; in add_attribute() 54 head = (void *)bstart; in add_attribute() 56 (*head)->attrs_count++; in add_attribute() 64 struct obj_attrs *h = *head; in _remove_attribute() 428 struct obj_attrs head = { }; in trace_attributes() local 431 TEE_MemMove(&head, ref, sizeof(head)); in trace_attributes() 433 if (!head.attrs_count) in trace_attributes() 447 pre, head.attrs_count, head.attrs_size); in trace_attributes() [all …]
|
A D | pkcs11_attributes.h | 135 struct obj_attrs *head); 138 struct obj_attrs *head); 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); 172 bool object_is_modifiable(struct obj_attrs *head); 174 bool object_is_copyable(struct obj_attrs *head); 184 struct obj_attrs *head, 188 enum pkcs11_rc set_key_data(struct obj_attrs **head, void *data, [all …]
|
A D | pkcs11_attributes.c | 1302 struct obj_attrs *head) in check_access_attrs_against_token() argument 1306 switch (get_class(head)) { in check_access_attrs_against_token() 1332 struct obj_attrs *head) in check_created_attrs_against_token() argument 1373 struct obj_attrs *head, in check_attr_bval() argument 1623 struct obj_attrs *head) in parent_key_complies_allowed_processings() argument 1677 struct obj_attrs *head) in check_parent_attrs_against_processing() argument 1683 if (!get_bool(head, attr)) { in check_parent_attrs_against_processing() 2114 struct obj_attrs *head, in check_attrs_against_modification() argument 2126 end = cur + head->attrs_size; in check_attrs_against_modification() 2380 switch (get_class(*head)) { in set_key_data() [all …]
|
A D | sanitize_object.c | 254 struct pkcs11_object_head head = { }; in sanitize_client_object() local 256 size_t pos = sizeof(head); in sanitize_client_object() 260 if (size < sizeof(head)) in sanitize_client_object() 263 TEE_MemMove(&head, src, sizeof(head)); in sanitize_client_object() 265 if (ADD_OVERFLOW(sizeof(head), head.attrs_size, &sz_from_hdr) || in sanitize_client_object() 399 struct pkcs11_object_head head = { }; in trace_attributes_from_api_head() local 403 TEE_MemMove(&head, ref, sizeof(head)); in trace_attributes_from_api_head() 405 if (size > sizeof(head) + head.attrs_size) { in trace_attributes_from_api_head() 407 size, sizeof(head) + head.attrs_size); in trace_attributes_from_api_head() 421 pre, head.attrs_count, head.attrs_size); in trace_attributes_from_api_head() [all …]
|
A D | serializer.c | 110 struct pkcs11_attribute_head head = { }; in serialargs_alloc_get_one_attribute() local 115 rc = serialargs_get(args, &head, sizeof(head)); in serialargs_alloc_get_one_attribute() 119 rc = alloc_and_get(args, orig_next, &head, sizeof(head), &p, head.size); in serialargs_alloc_get_one_attribute()
|
A D | object.c | 181 obj->attributes = head; in create_obj_instance() 215 trace_attributes("[create]", head); in create_object() 290 if (get_bool(head, PKCS11_CKA_TOKEN)) in create_object() 310 struct obj_attrs *head = NULL; in entry_create_object() local 358 head); in entry_create_object() 386 head = NULL; in entry_create_object() 396 TEE_Free(head); in entry_create_object() 974 struct obj_attrs *head = NULL; in entry_set_attribute_value() local 1066 TEE_Free(head); in entry_set_attribute_value() 1084 struct obj_attrs *head = NULL; in entry_copy_object() local [all …]
|
A D | processing.c | 174 if (!*head) in generate_random_key_value() 217 struct obj_attrs *head = NULL; in entry_generate_secret() local 273 rc = check_created_attrs(head, NULL); in entry_generate_secret() 294 rc = generate_random_key_value(&head); in entry_generate_secret() 310 rc = create_object(session, head, &obj_handle); in entry_generate_secret() 320 head = NULL; in entry_generate_secret() 331 TEE_Free(head); in entry_generate_secret() 813 struct obj_attrs *head = NULL; in entry_processing_key() local 1020 rc = set_key_data(&head, out_buf, out_size); in entry_processing_key() 1044 head = NULL; in entry_processing_key() [all …]
|
A D | sanitize_object.h | 39 enum pkcs11_rc sanitize_client_object(struct obj_attrs **dst, void *head,
|
A D | object.h | 45 struct pkcs11_object *create_token_object(struct obj_attrs *head,
|
/optee_os-3.20.0/core/tee/ |
A D | fs_htree.c | 90 struct tee_fs_htree_image head; member 135 head, sizeof(*head)); in rpc_read_head() 166 head, sizeof(*head)); in rpc_write_head() 352 idx = get_idx_from_counter(head[0].counter, head[1].counter); in init_head_from_data() 360 ht->head = head[idx]; in init_head_from_data() 452 iv = ht->head.iv; in authenc_init() 479 (void *)&ht->head.counter, in authenc_init() 480 sizeof(ht->head.counter)); in authenc_init() 558 return authenc_decrypt_final(ctx, ht->head.tag, ht->head.imeta, in verify_root() 747 ht->head.counter++; in update_root() [all …]
|
A D | tee_svc_storage.c | 90 struct tee_svc_storage_head head; in tee_svc_storage_read_head() local 110 if (ADD_OVERFLOW(sizeof(head), head.attr_size, &tmp)) { in tee_svc_storage_read_head() 124 res = tee_obj_set_type(o, head.objectType, head.maxObjectSize); in tee_svc_storage_read_head() 130 if (head.attr_size) { in tee_svc_storage_read_head() 131 attr = malloc(head.attr_size); in tee_svc_storage_read_head() 138 bytes = head.attr_size; in tee_svc_storage_read_head() 153 o->info.dataSize = size - sizeof(head) - head.attr_size; in tee_svc_storage_read_head() 157 o->have_attrs = head.have_attrs; in tee_svc_storage_read_head() 291 head.attr_size = attr_size; in tee_svc_storage_init_file() 296 head.have_attrs = o->have_attrs; in tee_svc_storage_init_file() [all …]
|
/optee_os-3.20.0/core/lib/zlib/ |
A D | inflate.c | 136 state->head = Z_NULL; 675 if (state->head != Z_NULL) 676 state->head->done = -1; 721 if (state->head != Z_NULL) 730 if (state->head != Z_NULL) 739 if (state->head != Z_NULL) { 838 if (state->head != Z_NULL) { 840 state->head->done = 1; 1376 gz_headerp head; 1386 state->head = head; [all …]
|
A D | inflate.h | 95 gz_headerp head; /* where to save gzip header information */ member
|
/optee_os-3.20.0/core/arch/arm/include/crypto/ |
A D | ghash-ce-core.h | 20 const uint8_t *head); 23 const uint8_t *head);
|
/optee_os-3.20.0/core/arch/arm/crypto/ |
A D | aes-gcm-ce.c | 70 const uint8_t *head) in pmull_ghash_update() argument 73 pmull_ghash_update_p64(num_blocks, dg, src, ghash_key, head); in pmull_ghash_update() 75 pmull_ghash_update_p8(num_blocks, dg, src, ghash_key, head); in pmull_ghash_update() 80 const void *head, const void *data, in internal_aes_gcm_ghash_update() argument 90 pmull_ghash_update(num_blocks, dg, data, &state->ghash_key, head); in internal_aes_gcm_ghash_update()
|
/optee_os-3.20.0/core/crypto/ |
A D | aes-gcm-sw.c | 38 const void *head, const void *data, in internal_aes_gcm_ghash_update() argument 43 if (head) in internal_aes_gcm_ghash_update() 44 ghash_update_block(state, head); in internal_aes_gcm_ghash_update()
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | x509_create.c | 123 int mbedtls_x509_string_to_names( mbedtls_asn1_named_data **head, const char *name ) in mbedtls_x509_string_to_names() argument 135 mbedtls_asn1_free_named_data_list( head ); in mbedtls_x509_string_to_names() 167 mbedtls_asn1_store_named_data( head, oid, strlen( oid ), in mbedtls_x509_string_to_names() 208 int mbedtls_x509_set_extension( mbedtls_asn1_named_data **head, const char *oid, size_t oid_len, in mbedtls_x509_set_extension() argument 213 if( ( cur = mbedtls_asn1_store_named_data( head, oid, oid_len, in mbedtls_x509_set_extension()
|
A D | asn1write.c | 418 mbedtls_asn1_named_data **head, in mbedtls_asn1_store_named_data() argument 425 if( ( cur = asn1_find_named_data( *head, oid, oid_len ) ) == NULL ) in mbedtls_asn1_store_named_data() 456 cur->next = *head; in mbedtls_asn1_store_named_data() 457 *head = cur; in mbedtls_asn1_store_named_data()
|
A D | asn1parse.c | 452 void mbedtls_asn1_free_named_data_list( mbedtls_asn1_named_data **head ) in mbedtls_asn1_free_named_data_list() argument 456 while( ( cur = *head ) != NULL ) in mbedtls_asn1_free_named_data_list() 458 *head = cur->next; in mbedtls_asn1_free_named_data_list()
|
/optee_os-3.20.0/core/include/ |
A D | bench.h | 43 uint64_t head; member
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | x509.h | 355 int mbedtls_x509_string_to_names( mbedtls_asn1_named_data **head, const char *name ); 356 int mbedtls_x509_set_extension( mbedtls_asn1_named_data **head, const char *oid, size_t oid_len,
|
/optee_os-3.20.0/core/arch/arm/mm/ |
A D | mobj_ffa.c | 133 static struct mobj_ffa *pop_from_list(struct mobj_ffa_head *head, in pop_from_list() argument 138 struct mobj_ffa *mf = SLIST_FIRST(head); in pop_from_list() 145 SLIST_REMOVE_HEAD(head, link); in pop_from_list() 161 static struct mobj_ffa *find_in_list(struct mobj_ffa_head *head, in find_in_list() argument 168 SLIST_FOREACH(mf, head, link) in find_in_list()
|
/optee_os-3.20.0/core/include/tee/ |
A D | tee_fs.h | 35 const void *head, size_t head_size,
|