Home
last modified time | relevance | path

Searched refs:l (Results 1 – 25 of 67) sorted by relevance

123

/optee_os/core/lib/libtomcrypt/src/pk/asn1/der/sequence/
A Dder_decode_sequence_flexi.c32 (*l)->next->prev = *l; in _new_element()
33 *l = (*l)->next; in _new_element()
55 l = NULL; in der_decode_sequence_flexi()
182 if ((l->data = XCALLOC(1, l->size)) == NULL) { in der_decode_sequence_flexi()
205 if ((l->data = XCALLOC(1, l->size)) == NULL) { in der_decode_sequence_flexi()
300 if ((l->data = XCALLOC(1, l->size)) == NULL) { in der_decode_sequence_flexi()
464 l->child->parent = l; in der_decode_sequence_flexi()
500 l = l->prev; in der_decode_sequence_flexi()
518 while (l->prev != NULL || l->parent != NULL) { in der_decode_sequence_flexi()
520 l = l->parent; in der_decode_sequence_flexi()
[all …]
A Dder_sequence_free.c25 ltc_asn1_list *l; in der_sequence_free() local
54 l = in->next; in der_sequence_free()
56 in = l; in der_sequence_free()
/optee_os/core/lib/libtomcrypt/src/pk/asn1/x509/
A Dx509_decode_public_key_from_certificate.c20 #define LOOKS_LIKE_SPKI(l) ((l) != NULL) \ argument
25 && ((l)->next->type == LTC_ASN1_BIT_STRING)
61 l = decoded_list; in x509_decode_public_key_from_certificate()
70 if ((l->type == LTC_ASN1_SEQUENCE) && (l->child != NULL)) { in x509_decode_public_key_from_certificate()
71 l = l->child; in x509_decode_public_key_from_certificate()
72 if ((l->type == LTC_ASN1_SEQUENCE) && (l->child != NULL)) { in x509_decode_public_key_from_certificate()
73 l = l->child; in x509_decode_public_key_from_certificate()
91 err = ecc_import_subject_public_key_info(l->data, l->size, ctx); in x509_decode_public_key_from_certificate()
93 err = x509_decode_subject_public_key_info(l->data, l->size, in x509_decode_public_key_from_certificate()
102 l = l->next; in x509_decode_public_key_from_certificate()
[all …]
/optee_os/core/lib/libtomcrypt/src/pk/asn1/pkcs8/
A Dpkcs8_decode_flexi.c31 ltc_asn1_list *l = NULL; in pkcs8_decode_flexi() local
48 if (l->type == LTC_ASN1_SEQUENCE && in pkcs8_decode_flexi()
49 LTC_ASN1_IS_TYPE(l->child, LTC_ASN1_SEQUENCE) && in pkcs8_decode_flexi()
53 ltc_asn1_list *lalgoid = l->child->child; in pkcs8_decode_flexi()
68 pbes.enc_data = l->child->next; in pkcs8_decode_flexi()
80 der_free_sequence_flexi(l); in pkcs8_decode_flexi()
81 l = NULL; in pkcs8_decode_flexi()
84 *decoded_list = l; in pkcs8_decode_flexi()
89 *decoded_list = l; in pkcs8_decode_flexi()
92 l = NULL; in pkcs8_decode_flexi()
[all …]
/optee_os/core/arch/arm/kernel/
A Dspin_lock_debug.c13 struct thread_core_local *l = thread_get_core_local(); in spinlock_count_incr() local
15 l->locked_count++; in spinlock_count_incr()
16 assert(l->locked_count); in spinlock_count_incr()
21 struct thread_core_local *l = thread_get_core_local(); in spinlock_count_decr() local
23 assert(l->locked_count); in spinlock_count_decr()
24 l->locked_count--; in spinlock_count_decr()
29 struct thread_core_local *l; in have_spinlock() local
40 l = thread_get_core_local(); in have_spinlock()
42 return !!l->locked_count; in have_spinlock()
A Dthread.c383 int ct = l->curr_thread; in get_stackcheck_recursion_flag()
388 else if (!l->flags) in get_stackcheck_recursion_flag()
523 l->curr_thread = 0; in thread_init_boot_thread()
531 assert(l->curr_thread >= 0 && l->curr_thread < CFG_NUM_THREADS); in thread_clr_boot_thread()
563 l->curr_thread = n; in __thread_alloc_and_run()
693 l->curr_thread = n; in thread_resume_from_rpc()
741 int ct = l->curr_thread; in thread_get_saved_thread_sp()
770 int ct = l->curr_thread; in get_stack_limits()
787 } else if (!l->flags) { in get_stack_limits()
838 int ct = l->curr_thread; in thread_state_free()
[all …]
/optee_os/lib/libutee/
A Dtee_api_property.c75 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/core/lib/libtomcrypt/src/misc/padding/
A Dpadding_pad.c88 unsigned long diff, l; in padding_pad() local
95 l = length; in padding_pad()
96 if ((err = _padding_padded_length(&l, mode)) != CRYPT_OK) { in padding_pad()
102 if (*padded_length < l) { in padding_pad()
105 *padded_length = l; in padding_pad()
110 *padded_length = l; in padding_pad()
115 diff = l - length; in padding_pad()
127 data[l-1] = diff; in padding_pad()
132 data[l-1] = diff; in padding_pad()
145 *padded_length = l; in padding_pad()
/optee_os/core/lib/libtomcrypt/src/encauth/ocb3/
A Docb3_add_aad.c56 unsigned long datalen, l; in ocb3_add_aad() local
63 l = ocb->block_len - ocb->adata_buffer_bytes; in ocb3_add_aad()
64 if (l > aadlen) l = aadlen; in ocb3_add_aad()
65 XMEMCPY(ocb->adata_buffer+ocb->adata_buffer_bytes, aad, l); in ocb3_add_aad()
66 ocb->adata_buffer_bytes += l; in ocb3_add_aad()
75 data = (unsigned char *)aad + l; in ocb3_add_aad()
76 datalen = aadlen - l; in ocb3_add_aad()
/optee_os/core/kernel/
A Dsecstor_ta.c16 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/core/arch/arm/plat-bcm/
A Dcrc32.c82 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/core/lib/libtomcrypt/src/pk/ec25519/
A Dec25519_import_pkcs8.c34 ltc_asn1_list *l = NULL; in ec25519_import_pkcs8() local
45 if ((err = pkcs8_decode_flexi(in, inlen, pwd, pwdlen, &l)) == CRYPT_OK) { in ec25519_import_pkcs8()
50 if ((err = der_decode_sequence_multi(l->data, l->size, in ec25519_import_pkcs8()
86 if (l) der_free_sequence_flexi(l); in ec25519_import_pkcs8()
/optee_os/lib/libutils/isoc/
A Dstrndup.c10 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 Dstrdup.c10 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/core/lib/libtomcrypt/src/math/
A Dradix_to_bin.c37 unsigned long l; in radix_to_bin() local
47 if ((l = mp_unsigned_bin_size(mpi)) > *len) { in radix_to_bin()
48 *len = l; in radix_to_bin()
52 *len = l; in radix_to_bin()
/optee_os/core/lib/libtomcrypt/src/pk/rsa/
A Drsa_import_pkcs8.c62 ltc_asn1_list *l = NULL; in rsa_import_pkcs8() local
87 if ((err = pkcs8_decode_flexi(in, inlen, passwd, passwdlen, &l)) != CRYPT_OK) { in rsa_import_pkcs8()
90 decrypted = l->data; in rsa_import_pkcs8()
91 decryptedlen = l->size; in rsa_import_pkcs8()
126 if (l) der_free_sequence_flexi(l); in rsa_import_pkcs8()
/optee_os/lib/libutils/ext/
A Dnex_strdup.c11 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/core/crypto/
A Daes-gcm.c144 size_t l = len; in __gcm_update_aad() local
153 while (l) { in __gcm_update_aad()
156 l < TEE_AES_BLOCK_SIZE) { in __gcm_update_aad()
167 l -= n; in __gcm_update_aad()
171 n = l / TEE_AES_BLOCK_SIZE; in __gcm_update_aad()
176 l -= n * TEE_AES_BLOCK_SIZE; in __gcm_update_aad()
198 size_t l = len; in __gcm_update_payload() local
210 while (l) { in __gcm_update_payload()
237 l -= n; in __gcm_update_payload()
245 n = l / TEE_AES_BLOCK_SIZE; in __gcm_update_payload()
[all …]
/optee_os/core/pta/
A Dsecstor_ta_mgmt.c106 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/mk/
A Dlib.mk37 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/core/tee/
A Dtadb.c196 size_t l = sizeof(*entry); in read_ent() local
197 TEE_Result res = db->ops->read(db->fh, idx * l, entry, &l); in read_ent()
199 if (!res && l != sizeof(*entry)) in read_ent()
208 const size_t l = sizeof(*entry); in write_ent() local
210 return db->ops->write(db->fh, idx * l, entry, l); in write_ent()
726 size_t l = MIN(*len, sz - ta->pos); in tee_tadb_ta_read() local
734 ta->ta_buf + ta->pos, l, buf); in tee_tadb_ta_read()
739 size_t b_size = MIN(256U, l); in tee_tadb_ta_read()
745 while (num_bytes < l) { in tee_tadb_ta_read()
761 ta->pos += l; in tee_tadb_ta_read()
[all …]
A Dfs_dirfile.c86 size_t l; in read_dent() local
88 l = sizeof(*dent); in read_dent()
90 dent, &l); in read_dent()
91 if (!res && l != sizeof(*dent)) in read_dent()
245 size_t l = *fnlen; in tee_fs_dirfile_fileh_to_fname() local
248 r = snprintf(fname, l, "%" PRIx32, dfh->file_number); in tee_fs_dirfile_fileh_to_fname()
250 r = snprintf(fname, l, "dirf.db"); in tee_fs_dirfile_fileh_to_fname()
256 if ((size_t)r >= l) in tee_fs_dirfile_fileh_to_fname()
/optee_os/core/lib/libtomcrypt/src/misc/
A Dcompare_testvector.c19 static void _print_hex(const char* what, const void* v, const unsigned long l) in _print_hex() argument
24 for (x = 0; x < l; ) { in _print_hex()
26 if (!(++x % 16) || x == l) { in _print_hex()
/optee_os/core/lib/libtomcrypt/src/pk/ecc/
A Decc_import_pkcs8.c57 ltc_asn1_list *p = NULL, *l = NULL; in ecc_import_pkcs8() local
74 if ((err = pkcs8_decode_flexi(in, inlen, pwd, pwdlen, &l)) == CRYPT_OK) { in ecc_import_pkcs8()
83 if (((err = _der_flexi_sequence_cmp(l, flexi_should)) == CRYPT_OK) && in ecc_import_pkcs8()
188 if (l) der_free_sequence_flexi(l); in ecc_import_pkcs8()
/optee_os/core/include/drivers/
A Dimx_i2c.h12 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);

Completed in 29 milliseconds

123