Home
last modified time | relevance | path

Searched refs:malloc (Results 1 – 25 of 53) sorted by relevance

123

/optee_os/lib/libutils/isoc/
H A Dstrdup.c11 char *p = malloc(l); in strdup()
H A Dstrndup.c11 char *p = malloc(l); in strndup()
/optee_os/core/drivers/crypto/crypto_api/acipher/
H A Drsassa.c186 EM.data = malloc(EM.length); in rsassa_pkcs1_v1_5_sign()
248 EM.data = malloc(EM.length); in rsassa_pkcs1_v1_5_verify()
256 EM_gen.data = malloc(EM.length); in rsassa_pkcs1_v1_5_verify()
363 msg_db = malloc(MAX(db_size, msg_size)); in emsa_pss_encode()
368 salt = malloc(ssa_data->salt_len); in emsa_pss_encode()
554 msg_db = malloc(MAX(db_size, msg_size)); in emsa_pss_verify()
662 salt = malloc(ssa_data->salt_len); in emsa_pss_verify()
756 EM.data = malloc(EM.length); in rsassa_pss_sign()
831 EM.data = malloc(EM.length); in rsassa_pss_verify()
H A Ddh.c75 secret_buf = malloc(sdata.secret.length); in crypto_acipher_dh_shared_secret()
/optee_os/lib/libutils/isoc/include/
H A Dmalloc.h22 void *malloc(size_t size);
40 #define malloc(size) __mdbg_alloc(MAF_NULL, NULL, 1, 1, \ macro
132 #define nex_malloc(size) malloc(size)
/optee_os/core/pta/tests/
H A Dmisc.c326 p1 = malloc(1024); in self_test_malloc()
328 p2 = malloc(1024); in self_test_malloc()
348 p2 = malloc(1024); in self_test_malloc()
386 p1 = malloc(1024); in self_test_malloc()
771 ctx->pmalloc1 = malloc(ASAN_TEST_BUF_SIZE); in asan_malloc()
785 ctx->pmalloc2[i] = malloc(aligned_size); in asan_malloc2()
795 char *a = malloc(ASAN_TEST_BUF_SIZE); in asan_use_after_free()
H A Dfs_htree.c421 aux->data = malloc(aux->data_alloced); in aux_alloc()
425 aux->block = malloc(TEST_BLOCK_SIZE); in aux_alloc()
484 aux2.data = malloc(aux->data_alloced); in test_corrupt_type()
/optee_os/lib/libmbedtls/core/
H A Ddh.c73 buf = malloc(len); in crypto_acipher_gen_dh_key()
119 buf = malloc(len); in crypto_acipher_dh_shared_secret()
/optee_os/core/drivers/crypto/caam/
H A Dcaam_pwr.c30 newelem = malloc(sizeof(*newelem)); in caam_pwr_add_backup()
41 newelem->val = malloc(nbregs * sizeof(*newelem->val)); in caam_pwr_add_backup()
/optee_os/core/drivers/crypto/stm32/
H A Dhmac.c52 c->key = malloc(len); in do_hmac_init()
146 dst->key = malloc(dst->key_len); in do_hmac_copy_state()
/optee_os/core/tee/
H A Dtee_pobj.c133 o->obj_id = malloc(obj_id_len); in tee_pobj_get()
193 new_obj_id = malloc(obj_id_len); in tee_pobj_rename()
H A Dtee_svc.c41 kbuf = malloc(sz); in syscall_log()
559 kname = malloc(name_len); in syscall_get_property_name_to_index()
788 TEE_UUID *uuid = malloc(sizeof(TEE_UUID)); in syscall_open_ta_session()
789 struct tee_ta_param *param = malloc(sizeof(struct tee_ta_param)); in syscall_open_ta_session()
790 TEE_Identity *clnt_id = malloc(sizeof(TEE_Identity)); in syscall_open_ta_session()
/optee_os/core/drivers/nvmem/
H A Dnvmem.c57 *out_data = malloc(cell->len); in nvmem_cell_malloc_and_read()
/optee_os/core/lib/zlib/
H A Dzutil.c301 extern voidp malloc OF((uInt size));
312 return sizeof(uInt) > 2 ? (voidpf)malloc(items * size) :
H A Dgzguts.h123 extern voidp malloc OF((uInt size));
/optee_os/core/drivers/
H A Dbcm_gpio.c194 gc = malloc(sizeof(*gc)); in bcm_gpio_init()
201 gc = malloc(sizeof(*gc)); in bcm_gpio_init()
/optee_os/core/kernel/
H A Dmsg_param.c132 pages = malloc(msize); in msg_param_mobj_from_noncontig()
H A Dlockdep.c56 nstack = malloc((n + 1) * sizeof(vaddr_t)); in dup_call_stack()
141 qe->path = malloc(sizeof(uintptr_t)); in lockdep_graph_get_shortest_cycle()
190 nqe->path = malloc(nlen * sizeof(uintptr_t)); in lockdep_graph_get_shortest_cycle()
H A Dree_fs_ta.c393 bs_hdr = malloc(sizeof(*bs_hdr)); in ree_fs_ta_open()
451 ehdr = malloc(ehdr_sz); in ree_fs_ta_open()
536 digest = malloc(h->shdr->hash_size); in check_digest()
720 handle->tag = malloc(handle->tag_len); in buf_ta_open()
/optee_os/lib/libdl/
H A Ddlfcn.c46 h = malloc(sizeof(*h)); in dlopen()
/optee_os/core/lib/libtomcrypt/src/headers/
H A Dtomcrypt_custom.h9 #define XMALLOC malloc
57 #if ( defined(malloc) || defined(realloc) || defined(calloc) || defined(free) || \
/optee_os/lib/libutee/
H A Duser_ta_entry.c62 qe = malloc(sizeof(*qe)); in _init_iterate_phdr_cb()
182 __ta_no_share_malloc_ctx = malloc(raw_malloc_get_ctx_size()); in init_instance()
/optee_os/core/pta/
H A Dsecstor_ta_mgmt.c61 buf = malloc(buf_size); in install_ta()
/optee_os/core/arch/riscv/kernel/
H A Dsbi_mpxy_rpmi.c109 channel->notif = malloc(mpxy_shmem_size); in sbi_mpxy_rpmi_probe_channels()
/optee_os/core/drivers/crypto/hisilicon/
H A Dhpre_rsa.c356 rsa_enc_info.message.data = malloc(n_bytes); in rsa_pkcs_encrypt()
482 rsa_enc_info.message.data = malloc(n_bytes); in rsa_oaep_encrypt()
816 rsa_dec_info.message.data = malloc(n_bytes); in rsa_pkcs_decrypt()
952 rsa_dec_info.message.data = malloc(n_bytes); in rsa_oaep_decrypt()

123