| /optee_os/core/lib/libtomcrypt/src/pk/asn1/der/choice/ |
| H A D | der_decode_choice.c | 21 ltc_asn1_list *list, unsigned long outlen) in der_decode_choice() argument 28 LTC_ARGCHK(list != NULL); in der_decode_choice() 37 list[x].used = 0; in der_decode_choice() 42 size = list[x].size; in der_decode_choice() 43 data = list[x].data; in der_decode_choice() 45 switch (list[x].type) { in der_decode_choice() 49 list[x].used = 1; in der_decode_choice() 59 list[x].used = 1; in der_decode_choice() 69 list[x].used = 1; in der_decode_choice() 79 list[x].used = 1; in der_decode_choice() [all …]
|
| /optee_os/core/lib/libtomcrypt/src/pk/asn1/der/custom_type/ |
| H A D | der_decode_custom_type.c | 44 ltc_asn1_list *list, unsigned long outlen, in der_decode_custom_type_ex() argument 63 LTC_ARGCHK(list != NULL); in der_decode_custom_type_ex() 98 list = root->data; in der_decode_custom_type_ex() 110 list = root; in der_decode_custom_type_ex() 114 in_new[x] = (unsigned char)der_asn1_type_to_identifier_map[list[0].type]; in der_decode_custom_type_ex() 133 list[i].used = 0; in der_decode_custom_type_ex() 143 type = list[i].type; in der_decode_custom_type_ex() 144 size = list[i].size; in der_decode_custom_type_ex() 145 data = list[i].data; in der_decode_custom_type_ex() 146 if (!ordered && list[i].used == 1) { continue; } in der_decode_custom_type_ex() [all …]
|
| H A D | der_length_custom_type.c | 26 const ltc_asn1_list *list; in der_length_custom_type() local 41 list = root; in der_length_custom_type() 44 list = root->data; in der_length_custom_type() 49 type = (ltc_asn1_type)list[i].used; in der_length_custom_type() 51 type = list[i].type; in der_length_custom_type() 53 size = list[i].size; in der_length_custom_type() 54 data = list[i].data; in der_length_custom_type() 61 if (!list[i].used && list[i].optional) continue; in der_length_custom_type() 154 if ((err = der_length_custom_type(&list[i], &x, NULL)) != CRYPT_OK) { in der_length_custom_type()
|
| H A D | der_encode_custom_type.c | 29 const ltc_asn1_list *list; in der_encode_custom_type() local 54 list = root; in der_encode_custom_type() 62 list = root->data; in der_encode_custom_type() 76 type = (ltc_asn1_type)list[i].used; in der_encode_custom_type() 78 type = list[i].type; in der_encode_custom_type() 80 size = list[i].size; in der_encode_custom_type() 81 data = list[i].data; in der_encode_custom_type() 201 if ((err = der_encode_custom_type(&list[i], out + x, &z)) != CRYPT_OK) { in der_encode_custom_type()
|
| /optee_os/core/lib/libtomcrypt/src/pk/asn1/der/sequence/ |
| H A D | der_length_sequence.c | 19 int der_length_sequence(const ltc_asn1_list *list, unsigned long inlen, in der_length_sequence() argument 22 return der_length_sequence_ex(list, inlen, outlen, NULL); in der_length_sequence() 25 int der_length_sequence_ex(const ltc_asn1_list *list, unsigned long inlen, in der_length_sequence_ex() argument 33 LTC_ARGCHK(list != NULL); in der_length_sequence_ex() 39 type = list[i].type; in der_length_sequence_ex() 40 size = list[i].size; in der_length_sequence_ex() 41 data = list[i].data; in der_length_sequence_ex() 48 if (!list[i].used && list[i].optional) continue; in der_length_sequence_ex() 141 if ((err = der_length_custom_type(&list[i], &x, NULL)) != CRYPT_OK) { in der_length_sequence_ex()
|
| H A D | der_encode_sequence_multi.c | 28 ltc_asn1_list *list; in der_encode_sequence_multi() local 84 list = XCALLOC(x, sizeof(*list)); in der_encode_sequence_multi() 85 if (list == NULL) { in der_encode_sequence_multi() 119 LTC_SET_ASN1(list, x++, type, data, size); in der_encode_sequence_multi() 134 err = der_encode_sequence(list, x, out, outlen); in der_encode_sequence_multi() 136 XFREE(list); in der_encode_sequence_multi()
|
| H A D | der_decode_sequence_multi.c | 29 ltc_asn1_list *list; in s_der_decode_sequence_va() local 81 list = XCALLOC(x, sizeof(*list)); in s_der_decode_sequence_va() 82 if (list == NULL) { in s_der_decode_sequence_va() 116 LTC_SET_ASN1(list, x++, type, data, size); in s_der_decode_sequence_va() 126 err = der_decode_sequence_ex(in, inlen, list, x, flags); in s_der_decode_sequence_va() 127 XFREE(list); in s_der_decode_sequence_va()
|
| H A D | der_encode_sequence_ex.c | 22 int der_encode_sequence_ex(const ltc_asn1_list *list, unsigned long inlen, in der_encode_sequence_ex() argument 30 LTC_ARGCHK(list != NULL); in der_encode_sequence_ex() 36 if (der_length_sequence_ex(list, inlen, &y, &z) != CRYPT_OK) return CRYPT_INVALID_ARG; in der_encode_sequence_ex() 58 type = list[i].type; in der_encode_sequence_ex() 59 size = list[i].size; in der_encode_sequence_ex() 60 data = list[i].data; in der_encode_sequence_ex() 180 if ((err = der_encode_custom_type(&list[i], out + x, &z)) != CRYPT_OK) { in der_encode_sequence_ex()
|
| H A D | der_decode_sequence_ex.c | 23 ltc_asn1_list *list, unsigned long outlen, unsigned int flags) in der_decode_sequence_ex() argument 25 return der_decode_custom_type_ex(in, inlen, NULL, list, outlen, flags); in der_decode_sequence_ex()
|
| /optee_os/core/drivers/crypto/se050/adaptors/utils/ |
| H A D | utils.c | 26 uint8_t *list = NULL; in delete_transient_objects() local 38 list = calloc(1, len); in delete_transient_objects() 39 if (!list) in delete_transient_objects() 43 list, &len); in delete_transient_objects() 49 id = (list[i + 0] << (3 * 8)) | in delete_transient_objects() 50 (list[i + 1] << (2 * 8)) | in delete_transient_objects() 51 (list[i + 2] << (1 * 8)) | in delete_transient_objects() 52 (list[i + 3] << (0 * 8)); in delete_transient_objects() 66 free(list); in delete_transient_objects()
|
| /optee_os/core/lib/libfdt/ |
| H A D | fdt_ro.c | 711 const char *list, *end; in fdt_stringlist_count() local 714 list = fdt_getprop(fdt, nodeoffset, property, &length); in fdt_stringlist_count() 715 if (!list) in fdt_stringlist_count() 718 end = list + length; in fdt_stringlist_count() 720 while (list < end) { in fdt_stringlist_count() 721 length = strnlen(list, end - list) + 1; in fdt_stringlist_count() 724 if (list + length > end) in fdt_stringlist_count() 727 list += length; in fdt_stringlist_count() 738 const char *list, *end; in fdt_stringlist_search() local 740 list = fdt_getprop(fdt, nodeoffset, property, &length); in fdt_stringlist_search() [all …]
|
| /optee_os/core/lib/libtomcrypt/src/headers/ |
| H A D | tomcrypt_pk.h | 553 #define LTC_SET_ASN1(list, index, Type, Data, Size) \ argument 556 ltc_asn1_list *LTC_TMPVAR(SA_list) = (list); \ 567 #define LTC_SET_ASN1_IDENTIFIER(list, index, Class, Pc, Tag) \ argument 570 ltc_asn1_list *LTC_TMPVAR(SAI_list) = (list); \ 577 #define LTC_SET_ASN1_CUSTOM_CONSTRUCTED(list, index, Class, Tag, Data) \ argument 580 LTC_SET_ASN1(list, LTC_TMPVAR(SACC), LTC_ASN1_CUSTOM_TYPE, Data, 1); \ 581 LTC_SET_ASN1_IDENTIFIER(list, LTC_TMPVAR(SACC), Class, LTC_ASN1_PC_CONSTRUCTED, Tag); \ 584 #define LTC_SET_ASN1_CUSTOM_PRIMITIVE(list, index, Class, Tag, Type, Data, Size) \ argument 587 LTC_SET_ASN1(list, LTC_TMPVAR(SACP), LTC_ASN1_CUSTOM_TYPE, Data, Size); \ 588 LTC_SET_ASN1_IDENTIFIER(list, LTC_TMPVAR(SACP), Class, LTC_ASN1_PC_PRIMITIVE, Tag); \ [all …]
|
| /optee_os/core/drivers/remoteproc/ |
| H A D | stm32_remoteproc.c | 228 const fdt32_t *list = NULL; in stm32_rproc_get_dma_range() local 240 list = fdt_getprop(fdt, ahb_node, "dma-ranges", &len); in stm32_rproc_get_dma_range() 241 if (!list) { in stm32_rproc_get_dma_range() 256 uint32_t da = fdt32_to_cpu(list[i]); in stm32_rproc_get_dma_range() 257 uint32_t pa = fdt32_to_cpu(list[i + 1]); in stm32_rproc_get_dma_range() 258 uint32_t size = fdt32_to_cpu(list[i + 2]); in stm32_rproc_get_dma_range() 274 const fdt32_t *list = NULL; in stm32_rproc_parse_mems() local 281 list = fdt_getprop(fdt, node, "memory-region", &len); in stm32_rproc_parse_mems() 282 if (!list) { in stm32_rproc_parse_mems() 296 pnode = fdt_node_offset_by_phandle(fdt, fdt32_to_cpu(list[i])); in stm32_rproc_parse_mems()
|
| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | asn1write.c | 357 mbedtls_asn1_named_data *list, in asn1_find_named_data() argument 360 while (list != NULL) { in asn1_find_named_data() 361 if (list->oid.len == len && in asn1_find_named_data() 362 memcmp(list->oid.p, oid, len) == 0) { in asn1_find_named_data() 366 list = list->next; in asn1_find_named_data() 369 return list; in asn1_find_named_data() 372 #define asn1_find_named_data(list, oid, len) \ argument 373 ((mbedtls_asn1_named_data *) mbedtls_asn1_find_named_data(list, oid, len))
|
| H A D | asn1parse.c | 453 const mbedtls_asn1_named_data *mbedtls_asn1_find_named_data(const mbedtls_asn1_named_data *list, in mbedtls_asn1_find_named_data() argument 456 while (list != NULL) { in mbedtls_asn1_find_named_data() 457 if (list->oid.len == len && in mbedtls_asn1_find_named_data() 458 memcmp(list->oid.p, oid, len) == 0) { in mbedtls_asn1_find_named_data() 462 list = list->next; in mbedtls_asn1_find_named_data() 465 return list; in mbedtls_asn1_find_named_data()
|
| /optee_os/lib/libmbedtls/mbedtls/ |
| H A D | SUPPORT.md | 10 - the [Mbed TLS mailing-list 11 archives](https://lists.trustedfirmware.org/archives/list/mbed-tls@lists.trustedfirmware.org/). 16 mailing list](https://lists.trustedfirmware.org/mailman3/lists/mbed-tls.lists.trustedfirmware.org).
|
| /optee_os/core/lib/libtomcrypt/src/pk/asn1/der/set/ |
| H A D | der_encode_setof.c | 53 int der_encode_setof(const ltc_asn1_list *list, unsigned long inlen, in der_encode_setof() argument 64 if (list[x].type != list[x-1].type) { in der_encode_setof() 76 if ((err = der_encode_sequence_ex(list, inlen, buf, outlen, LTC_ASN1_SETOF)) != CRYPT_OK) { in der_encode_setof()
|
| H A D | der_encode_set.c | 42 int der_encode_set(const ltc_asn1_list *list, unsigned long inlen, in der_encode_set() argument 57 copy[x] = list[x]; in der_encode_set()
|
| /optee_os/core/drivers/scmi-msg/ |
| H A D | base.c | 139 const uint8_t *list = NULL; in discover_list_protocols() local 149 list = plat_scmi_protocol_list(msg->channel_id); in discover_list_protocols() 150 count = count_protocols_in_list(list); in discover_list_protocols() 159 memcpy(msg->out + sizeof(p2a), list + a2p->skip, count); in discover_list_protocols()
|
| /optee_os/ |
| H A D | LICENSE | 11 this list of conditions and the following disclaimer. 14 this list of conditions and the following disclaimer in the documentation
|
| /optee_os/core/lib/libtomcrypt/src/pk/ecc/ |
| H A D | ecc_import_pkcs8.c | 13 #define LTC_SET_DER_FLEXI_CHECK(list, index, Type, P) \ argument 16 list[LTC_SDFC_temp##__LINE__].t = Type; \ 17 list[LTC_SDFC_temp##__LINE__].pp = P; \
|
| /optee_os/core/drivers/crypto/caam/utils/ |
| H A D | utils_dmaobj.c | 96 TAILQ_HEAD(dmalist, dmaentry) list; 163 TAILQ_INIT(&priv->list); in allocate_private() 214 TAILQ_INSERT_HEAD(&priv->list, entry, link); in dmalist_add_entry_head() 238 if (TAILQ_EMPTY(&priv->list)) in dmalist_add_entry() 239 TAILQ_INSERT_HEAD(&priv->list, entry, link); in dmalist_add_entry() 241 TAILQ_INSERT_TAIL(&priv->list, entry, link); in dmalist_add_entry() 267 if (TAILQ_FIRST(&priv->list) == before) in dmalist_insert_before_entry() 268 TAILQ_INSERT_HEAD(&priv->list, entry, link); in dmalist_insert_before_entry() 296 TAILQ_INSERT_AFTER(&priv->list, after, entry, link); in dmalist_insert_after_entry() 361 TAILQ_FOREACH(entry, &priv->list, link) { in check_buffer_alignment() [all …]
|
| /optee_os/lib/libutils/isoc/arch/arm/softfloat/ |
| H A D | COPYING.txt | 17 this list of conditions, and the following disclaimer. 20 notice, this list of conditions, and the following disclaimer in the
|
| /optee_os/core/lib/qcbor/ |
| H A D | LICENSE | 18 list of conditions and the following disclaimer. 21 this list of conditions and the following disclaimer in the documentation
|
| /optee_os/core/arch/arm/dts/ |
| H A D | dt_driver_test.dtsi | 24 * list by related drivers (here all simple-bus).
|