Home
last modified time | relevance | path

Searched refs:TEE_Malloc (Results 1 – 24 of 24) sorted by relevance

/optee_os/ta/pkcs11/src/
H A Dpersistent_token.c180 acl_string = TEE_Malloc(pin_size + 1, TEE_MALLOC_FILL_ZERO); in setup_identity_auth_from_pin()
314 obj->uuid = TEE_Malloc(sizeof(TEE_UUID), in create_object_uuid()
371 ptr = TEE_Malloc(sizeof(struct token_persistent_objs) + in unregister_persistent_object()
498 attr = TEE_Malloc(info.dataSize, TEE_MALLOC_FILL_ZERO); in load_persistent_object_attributes()
595 db_main = TEE_Malloc(sizeof(*db_main), TEE_MALLOC_FILL_ZERO); in init_persistent_db()
596 db_objs = TEE_Malloc(sizeof(*db_objs), TEE_MALLOC_FILL_ZERO); in init_persistent_db()
637 uuid = TEE_Malloc(sizeof(TEE_UUID), in init_persistent_db()
678 initial_data = TEE_Malloc(initial_data_size, in init_persistent_db()
H A Dprocessing_ec.c352 attrs = TEE_Malloc(3 * sizeof(TEE_Attribute), in load_tee_ec_key_attrs()
377 attrs = TEE_Malloc(4 * sizeof(TEE_Attribute), in load_tee_ec_key_attrs()
533 ecpoint = TEE_Malloc(dersize, TEE_MALLOC_FILL_ZERO); in tee2pkcs_ec_attributes()
674 attrs = TEE_Malloc(sizeof(TEE_Attribute), in load_tee_eddsa_key_attrs()
690 attrs = TEE_Malloc(2 * sizeof(TEE_Attribute), in load_tee_eddsa_key_attrs()
831 proc->extra_ctx = TEE_Malloc(sizeof(*ctx) + ctx_len, in pkcs2tee_proc_params_eddsa()
H A Dprocessing_aes.c73 out_data = TEE_Malloc(sizeof(*out_data), TEE_MALLOC_FILL_ZERO); in init_ae_aes_context()
74 pending_tag = TEE_Malloc(ctx->tag_byte_len, TEE_MALLOC_FILL_ZERO); in init_ae_aes_context()
171 ct = TEE_Malloc(ct_size, TEE_MALLOC_FILL_ZERO); in tee_ae_decrypt_update()
326 data_ptr = TEE_Malloc(data_size, TEE_MALLOC_FILL_ZERO); in tee_ae_decrypt_final()
505 params = TEE_Malloc(sizeof(*params), TEE_MALLOC_FILL_ZERO); in tee_init_gcm_operation()
H A Dprocessing_rsa.c45 proc->extra_ctx = TEE_Malloc(sizeof(struct rsa_pss_processing_ctx), in pkcs2tee_proc_params_rsa_pss()
237 proc->extra_ctx = TEE_Malloc(sizeof(struct rsa_oaep_processing_ctx) + in pkcs2tee_proc_params_rsa_oaep()
298 TEE_Malloc(sizeof(struct rsa_aes_key_wrap_processing_ctx) + in pkcs2tee_proc_params_rsa_aes_wrap()
546 attrs = TEE_Malloc(2 * sizeof(TEE_Attribute), in load_tee_rsa_key_attrs()
566 attrs = TEE_Malloc(8 * sizeof(TEE_Attribute), in load_tee_rsa_key_attrs()
822 proc->extra_ctx = TEE_Malloc(key_size, TEE_USER_MEM_HINT_NO_FILL_ZERO); in pkcs2tee_rsa_nopad_context()
H A Dprocessing_asymm.c541 tee_attrs = TEE_Malloc(sizeof(TEE_Attribute), in step_asymm_operation()
558 tee_attrs = TEE_Malloc(2 * sizeof(TEE_Attribute), in step_asymm_operation()
584 tee_attrs = TEE_Malloc(sizeof(TEE_Attribute), in step_asymm_operation()
603 tee_attrs = TEE_Malloc(sizeof(TEE_Attribute), in step_asymm_operation()
683 hash_buf = TEE_Malloc(hash_size, 0); in step_asymm_operation()
1197 *out_buf = TEE_Malloc(target_key_size, TEE_MALLOC_FILL_ZERO); in unwrap_rsa_aes_key()
H A Dprocessing_symm.c302 hash_ptr = TEE_Malloc(hash_size, 0); in hash_secret_helper()
448 param = TEE_Malloc(sizeof(struct input_data_ref), TEE_MALLOC_FILL_ZERO); in tee_init_derive_symm()
576 pkcs11_data = TEE_Malloc(sizeof(uint32_t), in init_tee_operation()
1108 dest_buf = TEE_Malloc(*out_size, 0); in derive_key_by_symm_enc()
1171 in_buf = TEE_Malloc(TEE_AES_BLOCK_SIZE, in wrap_data_by_symm_enc()
1225 *out_buf = TEE_Malloc(*out_sz, TEE_MALLOC_FILL_ZERO); in unwrap_key_by_symm()
H A Dattributes.c23 *head = TEE_Malloc(sizeof(**head), TEE_MALLOC_FILL_ZERO); in init_attributes_head()
339 prefix2 = TEE_Malloc(prefix_len + 1 + 4, TEE_MALLOC_FILL_ZERO); in __trace_attributes()
439 pre = TEE_Malloc(prefix ? strlen(prefix) + 2 : 2, TEE_MALLOC_FILL_ZERO); in trace_attributes()
H A Dsanitize_object.c324 prefix2 = TEE_Malloc(prefix_len + 1 + 4, TEE_MALLOC_FILL_ZERO); in __trace_attributes()
410 pre = TEE_Malloc(prefix ? strlen(prefix) + 2 : 2, TEE_MALLOC_FILL_ZERO); in trace_attributes_from_api_head()
H A Dserializer.c60 ptr = TEE_Malloc(sz, TEE_MALLOC_FILL_ZERO); in alloc_and_get()
H A Dobject.c177 obj = TEE_Malloc(sizeof(struct pkcs11_object), TEE_MALLOC_FILL_ZERO); in create_obj_instance()
550 find_ctx = TEE_Malloc(sizeof(*find_ctx), TEE_MALLOC_FILL_ZERO); in entry_find_objects_init()
1068 head_new = TEE_Malloc(template_size, TEE_MALLOC_FILL_ZERO); in entry_set_attribute_value()
1236 head_new = TEE_Malloc(template_size, TEE_MALLOC_FILL_ZERO); in entry_copy_object()
H A Dpkcs11_attributes.c1043 buf = TEE_Malloc(buflen, TEE_MALLOC_FILL_ZERO); in create_ec_priv_key_hidden_attributes()
1052 asnbuf = TEE_Malloc(asnbuflen, TEE_MALLOC_FILL_ZERO); in create_ec_priv_key_hidden_attributes()
2562 buffer = TEE_Malloc(buffer_size, TEE_USER_MEM_HINT_NO_FILL_ZERO); in set_private_key_data_rsa()
2679 buffer = TEE_Malloc(*sz, TEE_USER_MEM_HINT_NO_FILL_ZERO); in alloc_copy_attribute_value()
2763 buffer = TEE_Malloc(der_size, TEE_USER_MEM_HINT_NO_FILL_ZERO); in encode_rsa_private_key_der()
2878 buf = TEE_Malloc(buf_size, TEE_MALLOC_FILL_ZERO); in compute_check_value_with_sha1()
H A Dpkcs11_token.c114 client = TEE_Malloc(sizeof(*client), TEE_MALLOC_FILL_ZERO); in register_client()
224 proc = TEE_Malloc(sizeof(*proc), TEE_MALLOC_FILL_ZERO); in set_processing_state()
655 session = TEE_Malloc(sizeof(*session), TEE_MALLOC_FILL_ZERO); in entry_ck_open_session()
1649 buffer = TEE_Malloc(buffer_size, TEE_MALLOC_FILL_ZERO); in entry_ck_generate_random()
H A Dtoken_capabilities.c317 array = TEE_Malloc(count * sizeof(*array), in tee_malloc_mechanism_list()
H A Dprocessing.c198 value = TEE_Malloc(value_len, TEE_USER_MEM_HINT_NO_FILL_ZERO); in generate_random_key_value()
358 ptr = TEE_Malloc(sz, TEE_USER_MEM_HINT_NO_FILL_ZERO); in alloc_get_tee_attribute_data()
/optee_os/lib/libutee/
H A Dtee_tcpudp_socket.c32 sock_ctx = TEE_Malloc(sizeof(*sock_ctx), TEE_MALLOC_FILL_ZERO); in tcp_open()
71 sock_ctx = TEE_Malloc(sizeof(*sock_ctx), TEE_MALLOC_FILL_ZERO); in udp_open()
H A Dtee_api_property.c218 tmp_buf = TEE_Malloc(tmp_len, TEE_USER_MEM_HINT_NO_FILL_ZERO); in TEE_GetPropertyAsString()
491 pe = TEE_Malloc(sizeof(struct prop_enumerator), in TEE_AllocatePropertyEnumerator()
H A Dtee_api.c704 void *TEE_Malloc(size_t len, uint32_t hint) in TEE_Malloc() function
746 return TEE_Malloc(size, hint); in __GP11_TEE_Malloc()
H A Duser_ta_entry.c245 itr = TEE_Malloc(sizeof(struct ta_session), in ta_header_add_session()
H A Dtee_api_operations.c313 op = TEE_Malloc(sizeof(*op), TEE_MALLOC_FILL_ZERO); in TEE_AllocateOperation()
342 op->buffer = TEE_Malloc(buffer_size, in TEE_AllocateOperation()
/optee_os/lib/libutee/include/
H A Dtee_api_compat.h85 #define TEE_Malloc __GP11_TEE_Malloc macro
H A Dtee_internal_api.h120 void *TEE_Malloc(size_t size, uint32_t hint);
/optee_os/ta/remoteproc/src/
H A Dremoteproc_core.c286 ctx = TEE_Malloc(sizeof(*ctx), TEE_MALLOC_FILL_ZERO); in remoteproc_add_firmware()
330 keyinfo = TEE_Malloc(sizeof(*keyinfo) + length, TEE_MALLOC_FILL_ZERO); in remoteproc_pta_verify()
379 ctx->sec_cpy = TEE_Malloc(length, TEE_MALLOC_FILL_ZERO); in remoteproc_save_fw_header_and_tlvs()
414 hash = TEE_Malloc(hash_len, TEE_MALLOC_FILL_ZERO); in remoteproc_verify_signature()
627 hash_table = TEE_Malloc(length, TEE_MALLOC_FILL_ZERO); in get_hash_table()
/optee_os/ta/avb/
H A Dentry.c276 value = TEE_Malloc(value_sz, 0); in write_persist_value()
326 value = TEE_Malloc(value_sz, 0); in read_persist_value()
/optee_os/ta/trusted_keys/
H A Dentry.c47 rng_buf = TEE_Malloc(params[0].memref.size, TEE_MALLOC_FILL_ZERO); in get_random()