/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/sequence/ |
A D | der_decode_sequence_flexi.c | 15 if (*l == NULL) { in s_new_element() 25 (*l)->next->prev = *l; in s_new_element() 26 *l = (*l)->next; in s_new_element() 49 l = NULL; in s_der_decode_sequence_flexi() 176 if ((l->data = XCALLOC(1, l->size)) == NULL) { in s_der_decode_sequence_flexi() 199 if ((l->data = XCALLOC(1, l->size)) == NULL) { in s_der_decode_sequence_flexi() 464 l->child->parent = l; in s_der_decode_sequence_flexi() 489 l = l->prev; in s_der_decode_sequence_flexi() 507 while (l->prev != NULL || l->parent != NULL) { in s_der_decode_sequence_flexi() 509 l = l->parent; in s_der_decode_sequence_flexi() [all …]
|
A D | der_sequence_free.c | 18 ltc_asn1_list *l; in der_sequence_free() local 47 l = in->next; in der_sequence_free() 49 in = l; in der_sequence_free()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/x509/ |
A D | x509_decode_public_key_from_certificate.c | 13 #define LOOKS_LIKE_SPKI(l) ((l) != NULL) \ argument 18 && ((l)->next->type == LTC_ASN1_BIT_STRING) 55 l = decoded_list; in x509_decode_public_key_from_certificate() 64 if ((l->type == LTC_ASN1_SEQUENCE) && (l->child != NULL)) { in x509_decode_public_key_from_certificate() 65 l = l->child; in x509_decode_public_key_from_certificate() 66 if ((l->type == LTC_ASN1_SEQUENCE) && (l->child != NULL)) { in x509_decode_public_key_from_certificate() 67 l = l->child; in x509_decode_public_key_from_certificate() 85 err = callback(l->data, l->size, ctx); in x509_decode_public_key_from_certificate() 87 err = x509_decode_subject_public_key_info(l->data, l->size, in x509_decode_public_key_from_certificate() 96 l = l->next; in x509_decode_public_key_from_certificate() [all …]
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/pkcs8/ |
A D | pkcs8_decode_flexi.c | 24 ltc_asn1_list *l = NULL; in pkcs8_decode_flexi() local 41 if (l->type == LTC_ASN1_SEQUENCE && in pkcs8_decode_flexi() 42 LTC_ASN1_IS_TYPE(l->child, LTC_ASN1_SEQUENCE) && in pkcs8_decode_flexi() 46 ltc_asn1_list *lalgoid = l->child->child; in pkcs8_decode_flexi() 61 pbes.enc_data = l->child->next; in pkcs8_decode_flexi() 73 der_free_sequence_flexi(l); in pkcs8_decode_flexi() 74 l = NULL; in pkcs8_decode_flexi() 77 *decoded_list = l; in pkcs8_decode_flexi() 82 *decoded_list = l; in pkcs8_decode_flexi() 85 l = NULL; in pkcs8_decode_flexi() [all …]
|
/optee_os-3.20.0/core/kernel/ |
A D | spin_lock_debug.c | 12 struct thread_core_local *l = thread_get_core_local(); in spinlock_count_incr() local 14 l->locked_count++; in spinlock_count_incr() 15 assert(l->locked_count); in spinlock_count_incr() 20 struct thread_core_local *l = thread_get_core_local(); in spinlock_count_decr() local 22 assert(l->locked_count); in spinlock_count_decr() 23 l->locked_count--; in spinlock_count_decr() 28 struct thread_core_local *l; in have_spinlock() local 39 l = thread_get_core_local(); in have_spinlock() 41 return !!l->locked_count; in have_spinlock()
|
A D | thread.c | 217 int ct = l->curr_thread; in get_stackcheck_recursion_flag() 222 else if (!l->flags) in get_stackcheck_recursion_flag() 260 l->curr_thread = 0; in thread_init_boot_thread() 268 assert(l->curr_thread >= 0 && l->curr_thread < CFG_NUM_THREADS); in thread_clr_boot_thread() 282 l->flags |= THREAD_CLF_TMP; in thread_get_tmp_sp() 309 int ct = l->curr_thread; in get_stack_limits() 326 } else if (!l->flags) { in get_stack_limits() 519 struct thread_core_local *l; in thread_set_foreign_intr() local 521 l = thread_get_core_local(); in thread_set_foreign_intr() 543 struct thread_core_local *l; in thread_restore_foreign_intr() local [all …]
|
A D | secstor_ta.c | 16 size_t l; in secstor_ta_open() local 24 l = prop->custom_size; in secstor_ta_open() 25 res = tee_tadb_ta_read(ta, NULL, &l); in secstor_ta_open() 28 if (l != prop->custom_size) { in secstor_ta_open() 62 size_t l = len; in secstor_ta_read() local 63 TEE_Result res = tee_tadb_ta_read(ta, data, &l); in secstor_ta_read() 67 if (l != len) in secstor_ta_read()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/padding/ |
A D | padding_pad.c | 82 unsigned long l, n; in padding_pad() local 90 l = length; in padding_pad() 97 if (*padded_length < l) { in padding_pad() 100 *padded_length = l; in padding_pad() 105 *padded_length = l; in padding_pad() 110 if (l - length > 255) return CRYPT_INVALID_ARG; in padding_pad() 111 diff = (unsigned char)(l - length); in padding_pad() 122 data[l-1] = diff; in padding_pad() 127 data[l-1] = diff; in padding_pad() 131 for (n = length; n < l; ++n) { in padding_pad() [all …]
|
/optee_os-3.20.0/core/arch/arm/plat-bcm/ |
A D | crc32.c | 82 size_t l = 0; in crc32i() local 84 for (l = 0; l < len; l++) in crc32i() 85 crc = ucrc32(buf[l], crc); in crc32i()
|
/optee_os-3.20.0/lib/libutils/ext/include/ |
A D | fault_mitigation.h | 155 #define __FTMN_FUNC_BYTE(f, o, l) ((o) < (l) ? (uint8_t)(f)[(o)] : 0) argument 157 #define __FTMN_GET_FUNC_U64(f, o, l) \ argument 167 #define __FTMN_FUNC_HASH32(f, o, l) \ argument 171 #define __FTMN_FUNC_HASH16(f, o, l) \ argument 175 #define __FTMN_FUNC_HASH8(f, o, l) \ argument 179 #define __FTMN_FUNC_HASH4(f, o, l) \ argument 180 (__FTMN_FUNC_HASH8((f), (o), (l)) ^ \ 183 #define __FTMN_FUNC_HASH2(f, l) \ argument 184 (__FTMN_FUNC_HASH4(f, 0, l) ^ \ 188 #define __FTMN_FUNC_HASH(f, l) \ argument [all …]
|
/optee_os-3.20.0/lib/libutils/isoc/ |
A D | strndup.c | 10 size_t l = strnlen(s, n) + 1; in strndup() local 11 char *p = malloc(l); in strndup() 14 memcpy(p, s, l - 1); in strndup() 15 p[l - 1] = '\0'; in strndup()
|
A D | strdup.c | 10 size_t l = strlen(s) + 1; in strdup() local 11 char *p = malloc(l); in strdup() 14 memcpy(p, s, l); in strdup()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ocb3/ |
A D | ocb3_add_aad.c | 49 unsigned long datalen, l; in ocb3_add_aad() local 56 l = ocb->block_len - ocb->adata_buffer_bytes; in ocb3_add_aad() 57 if (l > aadlen) l = aadlen; in ocb3_add_aad() 58 XMEMCPY(ocb->adata_buffer+ocb->adata_buffer_bytes, aad, l); in ocb3_add_aad() 59 ocb->adata_buffer_bytes += l; in ocb3_add_aad() 68 data = (unsigned char *)aad + l; in ocb3_add_aad() 69 datalen = aadlen - l; in ocb3_add_aad()
|
/optee_os-3.20.0/lib/libutee/ |
A D | tee_api_property.c | 75 size_t l; in propget_get_ext_prop() local 102 l = *len; in propget_get_ext_prop() 104 l <= *len) in propget_get_ext_prop() 106 if (*len < l) { in propget_get_ext_prop() 107 *len = l; in propget_get_ext_prop() 111 *len = l; in propget_get_ext_prop() 117 if (*len < l) { in propget_get_ext_prop() 118 *len = l; in propget_get_ext_prop() 122 *len = l; in propget_get_ext_prop() 195 size_t l; in TEE_GetPropertyAsString() local [all …]
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ec25519/ |
A D | ec25519_import_pkcs8.c | 27 ltc_asn1_list *l = NULL; in ec25519_import_pkcs8() local 38 if ((err = pkcs8_decode_flexi(in, inlen, pwd, pwdlen, &l)) == CRYPT_OK) { in ec25519_import_pkcs8() 43 if ((err = der_decode_sequence_multi(l->data, l->size, in ec25519_import_pkcs8() 79 if (l) der_free_sequence_flexi(l); in ec25519_import_pkcs8()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/math/ |
A D | radix_to_bin.c | 30 unsigned long l; in radix_to_bin() local 40 if ((l = mp_unsigned_bin_size(mpi)) > *len) { in radix_to_bin() 41 *len = l; in radix_to_bin() 45 *len = l; in radix_to_bin()
|
/optee_os-3.20.0/lib/libutils/ext/ |
A D | nex_strdup.c | 11 size_t l = strlen(s) + 1; in nex_strdup() local 12 char *p = nex_malloc(l); in nex_strdup() 15 memcpy(p, s, l); in nex_strdup()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/rsa/ |
A D | rsa_import_pkcs8.c | 54 ltc_asn1_list *l = NULL; in rsa_import_pkcs8() local 78 if ((err = pkcs8_decode_flexi(in, inlen, passwd, passwdlen, &l)) != CRYPT_OK) { in rsa_import_pkcs8() 81 decrypted = l->data; in rsa_import_pkcs8() 82 decryptedlen = l->size; in rsa_import_pkcs8() 108 if (l) der_free_sequence_flexi(l); in rsa_import_pkcs8()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/ciphers/ |
A D | tea.c | 149 unsigned long l; in tea_test() 156 l = sizeof(key); in tea_test() 157 … if ((err = base16_decode(tests[i].key, XSTRLEN(tests[i].key), key, &l)) != CRYPT_OK) return err; in tea_test() 158 l = sizeof(ptct[0]); in tea_test() 159 … if ((err = base16_decode(tests[i].pt, XSTRLEN(tests[i].pt), ptct[0], &l)) != CRYPT_OK) return err; in tea_test() 160 l = sizeof(ptct[1]); in tea_test() 161 … if ((err = base16_decode(tests[i].ct, XSTRLEN(tests[i].ct), ptct[1], &l)) != CRYPT_OK) return err; in tea_test()
|
A D | blowfish.c | 302 ulong32 l, r; in s_blowfish_encipher() local 312 l = *L; in s_blowfish_encipher() 317 l ^= skey->blowfish.K[rounds++]; r ^= F(l); in s_blowfish_encipher() 318 r ^= skey->blowfish.K[rounds++]; l ^= F(r); in s_blowfish_encipher() 319 l ^= skey->blowfish.K[rounds++]; r ^= F(l); in s_blowfish_encipher() 320 r ^= skey->blowfish.K[rounds++]; l ^= F(r); in s_blowfish_encipher() 324 l ^= skey->blowfish.K[16]; in s_blowfish_encipher() 328 *R = l; in s_blowfish_encipher()
|
/optee_os-3.20.0/core/include/drivers/ |
A D | imx_i2c.h | 12 TEE_Result imx_i2c_write(uint8_t bid, uint8_t chip, const uint8_t *p, int l); 13 TEE_Result imx_i2c_read(uint8_t bid, uint8_t chip, uint8_t *p, int l);
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/ |
A D | compare_testvector.c | 12 static void s_print_hex(const char* what, const void* v, const unsigned long l) in s_print_hex() argument 17 for (x = 0; x < l; ) { in s_print_hex() 19 if (!(++x % 16) || x == l) { in s_print_hex()
|
/optee_os-3.20.0/core/pta/ |
A D | secstor_ta_mgmt.c | 106 size_t l = MIN(buf_size, nw_size - offs); in install_ta() local 108 memcpy(buf, nw + offs, l); in install_ta() 109 res = crypto_hash_update(hash_ctx, buf, l); in install_ta() 112 res = tee_tadb_ta_write(ta, buf, l); in install_ta() 115 offs += l; in install_ta()
|
/optee_os-3.20.0/mk/ |
A D | lib.mk | 37 lib-needed-so-files := $(foreach l,$(libl),$(lib-shlibfile-$(l)-$(sm))) 38 lib-Ll-args := $(foreach l,$(libl),-L$(lib-libdir-$(l)-$(sm)) -l$(l))
|
/optee_os-3.20.0/core/arch/arm/kernel/ |
A D | thread.c | 244 l->curr_thread = n; in __thread_alloc_and_run() 259 l->flags &= ~THREAD_CLF_TMP; in __thread_alloc_and_run() 382 l->curr_thread = n; in thread_resume_from_rpc() 407 l->flags &= ~THREAD_CLF_TMP; in thread_resume_from_rpc() 417 int ct = l->curr_thread; in thread_get_saved_thread_sp() 434 int ct = l->curr_thread; in thread_state_free() 448 l->curr_thread = THREAD_ID_INVALID; in thread_state_free() 485 int ct = l->curr_thread; in thread_state_suspend() 519 l->curr_thread = THREAD_ID_INVALID; in thread_state_suspend() 762 thread_set_abt_sp((vaddr_t)l); in thread_init_per_cpu() [all …]
|