Home
last modified time | relevance | path

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

12

/optee_os/lib/libutils/isoc/include/sys/
H A Dqueue.h94 #define LIST_HEAD_INITIALIZER(head) \ argument
107 #define QUEUEDEBUG_LIST_INSERT_HEAD(head, elm, field) \ argument
108 if ((head)->lh_first && \
109 (head)->lh_first->field.le_prev != &(head)->lh_first) \
110 panic("LIST_INSERT_HEAD %p %s:%d", (head), __FILE__, __LINE__);
122 #define QUEUEDEBUG_LIST_INSERT_HEAD(head, elm, field) argument
127 #define LIST_INIT(head) do { \ argument
128 (head)->lh_first = NULL; \
148 #define LIST_INSERT_HEAD(head, elm, field) do { \ argument
149 QUEUEDEBUG_LIST_INSERT_HEAD((head), (elm), field) \
[all …]
/optee_os/ta/pkcs11/src/
H 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,
94 enum pkcs11_rc remove_empty_attribute(struct obj_attrs **head, uint32_t attrib);
116 void get_attribute_ptrs(struct obj_attrs *head, uint32_t attribute,
133 enum pkcs11_rc get_attribute_ptr(struct obj_attrs *head, uint32_t attribute,
158 enum pkcs11_rc get_attribute(struct obj_attrs *head, uint32_t attribute,
171 enum pkcs11_rc set_attribute(struct obj_attrs **head, uint32_t attribute,
186 struct obj_attrs *head);
202 static inline enum pkcs11_rc get_u32_attribute(struct obj_attrs *head, in get_u32_attribute() argument
207 enum pkcs11_rc rc = get_attribute(head, attribute, attr, &size); in get_u32_attribute()
[all …]
H A Dattributes.c21 enum pkcs11_rc init_attributes_head(struct obj_attrs **head) in init_attributes_head() argument
23 *head = TEE_Malloc(sizeof(**head), TEE_MALLOC_FILL_ZERO); in init_attributes_head()
24 if (!*head) in init_attributes_head()
30 enum pkcs11_rc add_attribute(struct obj_attrs **head, uint32_t attribute, in add_attribute() argument
33 size_t buf_len = sizeof(struct obj_attrs) + (*head)->attrs_size; in add_attribute()
34 char **bstart = (void *)head; in add_attribute()
53 head = (void *)bstart; in add_attribute()
54 (*head)->attrs_size += 2 * sizeof(uint32_t) + size; in add_attribute()
55 (*head)->attrs_count++; in add_attribute()
60 static enum pkcs11_rc _remove_attribute(struct obj_attrs **head, in _remove_attribute() argument
[all …]
H A Dpkcs11_attributes.h139 struct obj_attrs *head);
142 struct obj_attrs *head);
158 struct obj_attrs *head);
161 struct obj_attrs *head);
178 bool object_is_private(struct obj_attrs *head);
180 bool object_is_token(struct obj_attrs *head);
182 bool object_is_modifiable(struct obj_attrs *head);
184 bool object_is_copyable(struct obj_attrs *head);
194 struct obj_attrs *head,
198 enum pkcs11_rc set_key_data(struct obj_attrs **head, void *data,
[all …]
H A Dpkcs11_attributes.c1511 static enum pkcs11_rc check_attrs_misc_integrity(struct obj_attrs *head) in check_attrs_misc_integrity() argument
1513 if (get_bool(head, PKCS11_CKA_NEVER_EXTRACTABLE) && in check_attrs_misc_integrity()
1514 get_bool(head, PKCS11_CKA_EXTRACTABLE)) { in check_attrs_misc_integrity()
1516 get_bool(head, PKCS11_CKA_NEVER_EXTRACTABLE), in check_attrs_misc_integrity()
1517 get_bool(head, PKCS11_CKA_EXTRACTABLE)); in check_attrs_misc_integrity()
1522 if (get_bool(head, PKCS11_CKA_ALWAYS_SENSITIVE) && in check_attrs_misc_integrity()
1523 !get_bool(head, PKCS11_CKA_SENSITIVE)) { in check_attrs_misc_integrity()
1525 get_bool(head, PKCS11_CKA_SENSITIVE), in check_attrs_misc_integrity()
1526 get_bool(head, PKCS11_CKA_ALWAYS_SENSITIVE)); in check_attrs_misc_integrity()
1534 bool object_is_private(struct obj_attrs *head) in object_is_private() argument
[all …]
H A Dsanitize_object.c253 struct pkcs11_object_head head = { }; in sanitize_client_object() local
255 size_t pos = sizeof(head); in sanitize_client_object()
259 if (size < sizeof(head)) in sanitize_client_object()
262 TEE_MemMove(&head, src, sizeof(head)); in sanitize_client_object()
264 if (ADD_OVERFLOW(sizeof(head), head.attrs_size, &sz_from_hdr) || in sanitize_client_object()
398 struct pkcs11_object_head head = { }; in trace_attributes_from_api_head() local
402 TEE_MemMove(&head, ref, sizeof(head)); in trace_attributes_from_api_head()
404 if (size > sizeof(head) + head.attrs_size) { in trace_attributes_from_api_head()
406 size, sizeof(head) + head.attrs_size); in trace_attributes_from_api_head()
420 pre, head.attrs_count, head.attrs_size); in trace_attributes_from_api_head()
[all …]
H A Dobject.c172 static struct pkcs11_object *create_obj_instance(struct obj_attrs *head, in create_obj_instance() argument
183 obj->attributes = head; in create_obj_instance()
189 struct pkcs11_object *create_token_object(struct obj_attrs *head, in create_token_object() argument
193 struct pkcs11_object *obj = create_obj_instance(head, token); in create_token_object()
208 enum pkcs11_rc create_object(void *sess, struct obj_attrs *head, in create_object() argument
217 trace_attributes("[create]", head); in create_object()
225 obj = create_obj_instance(head, NULL); in create_object()
292 if (get_bool(head, PKCS11_CKA_TOKEN)) in create_object()
312 struct obj_attrs *head = NULL; in entry_create_object() local
346 rc = create_attributes_from_template(&head, template, template_size, in entry_create_object()
[all …]
H 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()
H A Dprocessing.c173 static enum pkcs11_rc generate_random_key_value(struct obj_attrs **head) in generate_random_key_value() argument
181 if (!*head) in generate_random_key_value()
184 rc = get_attribute_ptr(*head, PKCS11_CKA_VALUE_LEN, &data, &data_size); in generate_random_key_value()
194 rc = remove_empty_attribute(head, PKCS11_CKA_VALUE); in generate_random_key_value()
204 rc = add_attribute(head, PKCS11_CKA_VALUE, value, value_len); in generate_random_key_value()
207 rc = set_check_value_attr(head); in generate_random_key_value()
227 struct obj_attrs *head = NULL; in entry_generate_secret() local
273 rc = create_attributes_from_template(&head, template, template_size, in entry_generate_secret()
283 rc = check_created_attrs(head, NULL); in entry_generate_secret()
287 rc = check_created_attrs_against_processing(proc_params->id, head); in entry_generate_secret()
[all …]
H A Dsanitize_object.h39 enum pkcs11_rc sanitize_client_object(struct obj_attrs **dst, void *head,
H A Dobject.h45 struct pkcs11_object *create_token_object(struct obj_attrs *head,
H A Dprocessing.h121 enum pkcs11_rc tee2pkcs_add_attribute(struct obj_attrs **head,
277 struct obj_attrs **head);
/optee_os/core/tee/
H A Dfs_htree.c91 struct tee_fs_htree_image head; member
133 struct tee_fs_htree_image *head) in rpc_read_head() argument
136 head, sizeof(*head)); in rpc_read_head()
164 const struct tee_fs_htree_image *head) in rpc_write_head() argument
167 head, sizeof(*head)); in rpc_write_head()
335 res = rpc_read_head(ht, idx, &ht->head); in init_head_from_data()
345 struct tee_fs_htree_image head[2]; in init_head_from_data() local
348 res = rpc_read_head(ht, idx, head + idx); in init_head_from_data()
353 idx = get_idx_from_counter(head[0].counter, head[1].counter); in init_head_from_data()
361 ht->head = head[idx]; in init_head_from_data()
[all …]
H A Dtee_svc_storage.c87 struct tee_svc_storage_head head; in tee_svc_storage_read_head() local
100 res = fops->read(o->fh, 0, &head, NULL, &bytes); in tee_svc_storage_read_head()
107 if (ADD_OVERFLOW(sizeof(head), head.attr_size, &tmp)) { in tee_svc_storage_read_head()
121 res = tee_obj_set_type(o, head.objectType, head.maxObjectSize); in tee_svc_storage_read_head()
127 if (head.attr_size) { in tee_svc_storage_read_head()
128 attr = malloc(head.attr_size); in tee_svc_storage_read_head()
135 bytes = head.attr_size; in tee_svc_storage_read_head()
140 if (bytes != head.attr_size) { in tee_svc_storage_read_head()
146 res = tee_obj_attr_from_binary(o, attr, head.attr_size); in tee_svc_storage_read_head()
150 o->info.dataSize = size - sizeof(head) - head.attr_size; in tee_svc_storage_read_head()
[all …]
/optee_os/core/lib/zlib/
H A Dinflate.c136 state->head = Z_NULL;
675 if (state->head != Z_NULL)
676 state->head->done = -1;
721 if (state->head != Z_NULL)
722 state->head->text = (int)((hold >> 8) & 1);
730 if (state->head != Z_NULL)
731 state->head->time = hold;
739 if (state->head != Z_NULL) {
740 state->head->xflags = (int)(hold & 0xff);
741 state->head->os = (int)(hold >> 8);
[all …]
H A Dinflate.h95 gz_headerp head; /* where to save gzip header information */ member
/optee_os/core/arch/arm/include/crypto/
H A Dghash-ce-core.h20 const uint8_t *head);
23 const uint8_t *head);
/optee_os/core/arch/arm/crypto/
H 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/crypto/
H 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/lib/libmbedtls/mbedtls/library/
H A Dasn1write.c377 mbedtls_asn1_named_data **head, in mbedtls_asn1_store_named_data() argument
384 if ((cur = asn1_find_named_data(*head, oid, oid_len)) == NULL) { in mbedtls_asn1_store_named_data()
412 cur->next = *head; in mbedtls_asn1_store_named_data()
413 *head = cur; in mbedtls_asn1_store_named_data()
H A Dx509_create.c281 int mbedtls_x509_string_to_names(mbedtls_asn1_named_data **head, const char *name) in mbedtls_x509_string_to_names() argument
298 if (*head != NULL) { in mbedtls_x509_string_to_names()
351 mbedtls_asn1_store_named_data(head, (char *) oid.p, oid.len, in mbedtls_x509_string_to_names()
384 int mbedtls_x509_set_extension(mbedtls_asn1_named_data **head, const char *oid, size_t oid_len, in mbedtls_x509_set_extension() argument
393 if ((cur = mbedtls_asn1_store_named_data(head, oid, oid_len, in mbedtls_x509_set_extension()
H A Dasn1parse.c433 void mbedtls_asn1_free_named_data_list(mbedtls_asn1_named_data **head) in mbedtls_asn1_free_named_data_list() argument
437 while ((cur = *head) != NULL) { in mbedtls_asn1_free_named_data_list()
438 *head = cur->next; in mbedtls_asn1_free_named_data_list()
H A Dx509_internal.h51 int mbedtls_x509_set_extension(mbedtls_asn1_named_data **head, const char *oid, size_t oid_len,
/optee_os/core/drivers/crypto/hisilicon/
H A Dhisi_qm.h55 uint16_t head; member
88 uint16_t head; member
/optee_os/core/include/tee/
H A Dtee_fs.h37 const void *head, size_t head_size,

12