Home
last modified time | relevance | path

Searched refs:head (Results 1 – 25 of 46) sorted by relevance

12

/optee_os/lib/libutils/isoc/include/sys/
A Dqueue.h174 #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/out/arm/export-ta_arm64/include/sys/
A Dqueue.h174 #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/out/arm/export-ta_arm32/include/sys/
A Dqueue.h174 #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/ta/pkcs11/src/
A Dattributes.h72 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 Dattributes.c24 *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 Dpkcs11_attributes.h135 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 Dsanitize_object.c254 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 Dpkcs11_attributes.c1276 struct obj_attrs *head) in check_access_attrs_against_token() argument
1280 switch (get_class(head)) { in check_access_attrs_against_token()
1306 struct obj_attrs *head) in check_created_attrs_against_token() argument
1347 struct obj_attrs *head, in check_attr_bval() argument
1584 struct obj_attrs *head) in parent_key_complies_allowed_processings() argument
1638 struct obj_attrs *head) in check_parent_attrs_against_processing() argument
1644 if (!get_bool(head, attr)) { in check_parent_attrs_against_processing()
2058 struct obj_attrs *head, in check_attrs_against_modification() argument
2070 end = cur + head->attrs_size; in check_attrs_against_modification()
2179 switch (get_class(*head)) { in set_key_data()
[all …]
A Dobject.c181 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 Dserializer.c110 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 Dprocessing.c168 if (!*head) in generate_random_key_value()
211 struct obj_attrs *head = NULL; in entry_generate_secret() local
267 rc = check_created_attrs(head, NULL); in entry_generate_secret()
288 rc = generate_random_key_value(&head); in entry_generate_secret()
304 rc = create_object(session, head, &obj_handle); in entry_generate_secret()
314 head = NULL; in entry_generate_secret()
325 TEE_Free(head); in entry_generate_secret()
806 struct obj_attrs *head = NULL; in entry_processing_key() local
987 rc = set_key_data(&head, out_buf, out_size); in entry_processing_key()
1010 head = NULL; in entry_processing_key()
[all …]
A Dsanitize_object.h39 enum pkcs11_rc sanitize_client_object(struct obj_attrs **dst, void *head,
/optee_os/core/tee/
A Dfs_htree.c90 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 Dtee_svc_storage.c89 struct tee_svc_storage_head head; in tee_svc_storage_read_head() local
109 if (ADD_OVERFLOW(sizeof(head), head.attr_size, &tmp)) { in tee_svc_storage_read_head()
123 res = tee_obj_set_type(o, head.objectType, head.maxKeySize); in tee_svc_storage_read_head()
129 if (head.attr_size) { in tee_svc_storage_read_head()
130 attr = malloc(head.attr_size); in tee_svc_storage_read_head()
137 bytes = head.attr_size; in tee_svc_storage_read_head()
152 o->info.dataSize = size - sizeof(head) - head.attr_size; in tee_svc_storage_read_head()
153 o->info.keySize = head.keySize; in tee_svc_storage_read_head()
156 o->have_attrs = head.have_attrs; in tee_svc_storage_read_head()
290 head.attr_size = attr_size; in tee_svc_storage_init_file()
[all …]
/optee_os/core/lib/zlib/
A Dinflate.c135 state->head = Z_NULL;
675 if (state->head != Z_NULL)
676 state->head->done = -1;
720 if (state->head != Z_NULL)
728 if (state->head != Z_NULL)
736 if (state->head != Z_NULL) {
830 if (state->head != Z_NULL) {
832 state->head->done = 1;
1364 gz_headerp head;
1374 state->head = head;
[all …]
/optee_os/core/arch/arm/crypto/
A Daes-gcm-ce.c70 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/core/arch/arm/include/crypto/
A Dghash-ce-core.h20 const uint8_t *head);
23 const uint8_t *head);
/optee_os/lib/libmbedtls/mbedtls/library/
A Dx509_create.c123 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 Dasn1write.c413 mbedtls_asn1_named_data **head, in mbedtls_asn1_store_named_data() argument
420 if( ( cur = asn1_find_named_data( *head, oid, oid_len ) ) == NULL ) in mbedtls_asn1_store_named_data()
451 cur->next = *head; in mbedtls_asn1_store_named_data()
452 *head = cur; in mbedtls_asn1_store_named_data()
/optee_os/core/crypto/
A Daes-gcm-sw.c38 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/core/arch/arm/mm/
A Dmobj_ffa.c134 static struct mobj_ffa *pop_from_list(struct mobj_ffa_head *head, in pop_from_list() argument
139 struct mobj_ffa *mf = SLIST_FIRST(head); in pop_from_list()
146 SLIST_REMOVE_HEAD(head, link); in pop_from_list()
162 static struct mobj_ffa *find_in_list(struct mobj_ffa_head *head, in find_in_list() argument
169 SLIST_FOREACH(mf, head, link) in find_in_list()
/optee_os/out/arm/export-ta_arm32/include/mbedtls/
A Dx509.h334 int mbedtls_x509_string_to_names( mbedtls_asn1_named_data **head, const char *name );
335 int mbedtls_x509_set_extension( mbedtls_asn1_named_data **head, const char *oid, size_t oid_len,
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
A Dx509.h334 int mbedtls_x509_string_to_names( mbedtls_asn1_named_data **head, const char *name );
335 int mbedtls_x509_set_extension( mbedtls_asn1_named_data **head, const char *oid, size_t oid_len,
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/
A Dx509.h334 int mbedtls_x509_string_to_names( mbedtls_asn1_named_data **head, const char *name );
335 int mbedtls_x509_set_extension( mbedtls_asn1_named_data **head, const char *oid, size_t oid_len,
/optee_os/out/arm/export-ta_arm64/include/mbedtls/
A Dx509.h334 int mbedtls_x509_string_to_names( mbedtls_asn1_named_data **head, const char *name );
335 int mbedtls_x509_set_extension( mbedtls_asn1_named_data **head, const char *oid, size_t oid_len,

Completed in 54 milliseconds

12