Home
last modified time | relevance | path

Searched full:head (Results 1 – 25 of 63) sorted by relevance

123

/optee_os/lib/libutils/isoc/include/sys/
H A Dqueue.h48 * head of the list. Elements being removed from the head of the list
58 * or after an existing element or at the head of the list. A list
61 * A simple queue is headed by a pair of pointers, one the head of the
64 * head of the list. New elements can be added to the list after
65 * an existing element, at the head of the list, or at the end of the
68 * A tail queue is headed by a pair of pointers, one to the head of the
72 * after an existing element, at the head of the list, or at the end of
75 * A circle queue is headed by a pair of pointers, one to the head of the
79 * an existing element, at the head of the list, or at the end of the list.
94 #define LIST_HEAD_INITIALIZER(head) \ argument
[all …]
/optee_os/ta/pkcs11/src/
H A Dattributes.h66 * @head: *@head holds the retrieved pointer
72 enum pkcs11_rc init_attributes_head(struct obj_attrs **head);
77 * @head: *@head points to serialized attributes,
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);
98 * @head: Pointer to serialized attributes
100 * @attr: Array of pointers to the data inside @head
116 void get_attribute_ptrs(struct obj_attrs *head, uint32_t attribute,
121 * @head: Pointer to serialized attributes
133 enum pkcs11_rc get_attribute_ptr(struct obj_attrs *head, uint32_t 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);
153 * @head - head of the attributes of parent object.
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,
[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.h23 * @head - pointer to the formatted serialized object (its head)
30 * This function copies an attribute list from a client API attribute head
34 * @head points to a blob starting with a pkcs11 attribute header.
35 * @head may point to an unaligned address.
39 enum pkcs11_rc sanitize_client_object(struct obj_attrs **dst, void *head,
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()
205 * @head - reference to serialized attributes
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()
289 /* make sure that supplied "head" isn't freed */ in create_object()
292 if (get_bool(head, PKCS11_CKA_TOKEN)) in create_object()
[all …]
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 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()
/optee_os/scripts/
H A Dcheckpatch.sh48 checkpatch.sh HEAD~5 Check the commit 5 revisions before
49 the current HEAD.
55 checkpatch.sh HEAD~5..HEAD~1 Check each commit from HEAD~5 to
56 HEAD~1 exclusively, aka not including
57 HEAD~1. (requires git v2.19)
64 checkpatch.sh HEAD~10-5 Check 5 commits moving forward in
65 history starting from HEAD~10.
68 checkpatch.sh branch1 tags/tag1 Check the HEAD of branch1 and the
69 HEAD of tag1. (requires git v2.19)
/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
98 /* read head */ in tee_svc_storage_read_head()
100 res = fops->read(o->fh, 0, &head, NULL, &bytes); in tee_svc_storage_read_head()
103 EMSG("Head corrupt"); 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()
[all …]
/optee_os/core/lib/zlib/
H A Dinflate.c115 state->mode < HEAD || state->mode > SYNC)
131 state->mode = HEAD;
136 state->head = Z_NULL;
232 state->mode = HEAD; /* to pass state test in inflateReset2() */
659 case HEAD:
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)
[all …]
H A Dinflate.h22 HEAD = 16180, /* i: waiting for magic header */ enumerator
62 HEAD -> (gzip) or (zlib) or (raw)
95 gz_headerp head; /* where to save gzip header information */ member
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
H A Dasn1.h377 * When this function returns, \c *cur is the head of a linked
382 * The head of the list (i.e. \c *cur itself) describes the
411 * - Allocate a head node `mbedtls_asn1_sequence *head` with mbedtls_calloc().
414 * call mbedtls_asn1_sequence_free() on `head`.
415 * - Allocate a head node `mbedtls_asn1_sequence *head` in any manner,
416 * for example on the stack. Make sure that `head->next == NULL`.
417 * Pass `head` as the `cur` argument to mbedtls_asn1_get_sequence_of().
419 * call mbedtls_asn1_sequence_free() on `head->cur`,
420 * then free `head` itself in the appropriate manner.
617 * \param head Pointer to the head of the list of named data entries to free.
[all …]
H A Dx509.h330 * \note This function allocates a linked list, and places the head
331 * pointer in \p head. This list must later be freed by a
334 * \param[out] head Address in which to store the pointer to the head of the
341 int mbedtls_x509_string_to_names(mbedtls_asn1_named_data **head, const char *name);
/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/arch/arm/include/crypto/
H A Dghash-ce-core.h20 const uint8_t *head);
23 const uint8_t *head);
/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/libutils/isoc/arch/arm/softfloat/
H A DREADME.html4 <HEAD>
6 </HEAD>
/optee_os/core/lib/qcbor/src/
H A Dqcbor_encode.c265 * Public function to encode a CBOR head. See qcbor/qcbor_encode.h
274 * == Description of the CBOR Head == in QCBOREncode_EncodeHead()
276 * The head of a CBOR data item in QCBOREncode_EncodeHead()
281 * Every CBOR data item has a "head". It is made up of the "major in QCBOREncode_EncodeHead()
319 * Thus the CBOR head may be 1, 2, 3, 5 or 9 bytes long. in QCBOREncode_EncodeHead()
333 * outputs the encoded CBOR head for them. It does conversion to in QCBOREncode_EncodeHead()
414 /* The buffer must have room for the largest CBOR HEAD + one in QCBOREncode_EncodeHead()
528 * @brief Append the CBOR head, the major type and argument
535 * This formats the CBOR "head" and appends it to the output.
545 /* A stack buffer large enough for a CBOR head */ in QCBOREncode_Private_AppendCBORHead()
[all …]
/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()
/optee_os/lib/libutils/isoc/arch/arm/softfloat/doc/
H A DSoftFloat-history.html4 <HEAD>
6 </HEAD>

123