Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 25 of 44) sorted by relevance

12

/optee_test/host/xtest/gp/patches/
A D0006-TTA_TCF-fix-CmdTEEGetPropertyA-_withoutEnum.patch31 - pPropName = pParams[1].memref.buffer;
33 + if (!pParams[1].memref.buffer ||
44 pOutputName = pParams[2].memref.buffer;
58 - pPropName = pParams[1].memref.buffer;
60 + if (!pParams[1].memref.buffer ||
85 - pPropName = pParams[1].memref.buffer;
87 + if (!pParams[1].memref.buffer ||
112 - pPropName = pParams[1].memref.buffer;
114 + if (!pParams[1].memref.buffer ||
141 + if (!pParams[1].memref.buffer ||
[all …]
A D0010-TEE_DataStorage_API.xml.patch31 …rom the data stream associated with the object object into the buffer pointed to by buffer. The ob…
39 …rom the data stream associated with the object object into the buffer pointed to by buffer. The ob…
47 …rom the data stream associated with the object object into the buffer pointed to by buffer. The ob…
55 …rom the data stream associated with the object object into the buffer pointed to by buffer. The ob…
63 …rom the data stream associated with the object object into the buffer pointed to by buffer. The ob…
71 …rom the data stream associated with the object object into the buffer pointed to by buffer. The ob…
79 …rom the data stream associated with the object object into the buffer pointed to by buffer. The ob…
87 …rom the data stream associated with the object object into the buffer pointed to by buffer. The ob…
A D0009-TEE_Internal_API.xml.patch37buffer of memory specified in the parameters buffer and size and to determine whether the current …
45buffer of memory specified in the parameters buffer and size and to determine whether the current …
53buffer of memory specified in the parameters buffer and size and to determine whether the current …
61buffer of memory specified in the parameters buffer and size and to determine whether the current …
A D0007-TTAs-revert-to-v1.1-types.patch24 -bool copyOperationInfoMultipleToBuffer(const TEE_OperationInfoMultiple *pOpInfo, uint8_t *buffer, …
25 +bool copyOperationInfoMultipleToBuffer(const TEE_OperationInfoMultiple *pOpInfo, uint8_t *buffer, …
42 @@ -47,7 +47,7 @@ void writeUint32ToBuffer(uint32_t value, uint8_t buffer[]);
46 -bool copyOperationInfoMultipleToBuffer(const TEE_OperationInfoMultiple *pOpInfo, uint8_t *buffer, …
47 +bool copyOperationInfoMultipleToBuffer(const TEE_OperationInfoMultiple *pOpInfo, uint8_t *buffer, …
77 TEE_MemMove(pPropName, pParams[1].memref.buffer,
/optee_test/ta/crypt/
A Dcryp_taf.c63 TEE_GetOperationInfo(op, params[1].memref.buffer); in ta_entry_get_operation_info()
142 params[1].memref.buffer, params[1].memref.size, in ta_entry_digest_do_final()
149 void *buffer = NULL; in ta_entry_cipher_init() local
156 buffer = NULL; in ta_entry_cipher_init()
162 buffer = params[1].memref.buffer; in ta_entry_cipher_init()
167 TEE_CipherInit(op, buffer, size); in ta_entry_cipher_init()
202 void *buffer = NULL; in ta_entry_mac_init() local
209 buffer = NULL; in ta_entry_mac_init()
215 buffer = params[1].memref.buffer; in ta_entry_mac_init()
220 TEE_MACInit(op, buffer, size); in ta_entry_mac_init()
[all …]
A Dsha2_taf.c26 sha224((unsigned char *)params[0].memref.buffer, in ta_entry_sha224()
28 (unsigned char *)params[1].memref.buffer); in ta_entry_sha224()
49 sha256((unsigned char *)params[0].memref.buffer, in ta_entry_sha256()
51 (unsigned char *)params[1].memref.buffer); in ta_entry_sha256()
A Daes_taf.c51 const unsigned char *ciphertext = params[0].memref.buffer; in ta_entry_aes256ecb_encrypt()
52 unsigned char *plaintext = params[1].memref.buffer; in ta_entry_aes256ecb_encrypt()
92 const unsigned char *ciphertext = params[0].memref.buffer; in ta_entry_aes256ecb_decrypt()
93 unsigned char *plaintext = params[1].memref.buffer; in ta_entry_aes256ecb_decrypt()
A Dmbedtls_taf.c85 ret = mbedtls_x509_crt_parse(&crt, params[0].memref.buffer, in ta_entry_mbedtls_check_cert()
92 ret = mbedtls_x509_crt_parse(&trust_crt, params[1].memref.buffer, in ta_entry_mbedtls_check_cert()
240 ret = mbedtls_x509_csr_parse(&csr, params[0].memref.buffer, in ta_entry_mbedtls_sign_cert()
321 res = write_cert(&crt, params[1].memref.buffer, &sz); in ta_entry_mbedtls_sign_cert()
326 ret = snprintf(params[2].memref.buffer, params[2].memref.size, in ta_entry_mbedtls_sign_cert()
/optee_test/ta/sdp_basic/
A Dta_sdp_basic.c53 params[ns_idx].memref.buffer, in cmd_inject()
63 params[sec_idx].memref.buffer, in cmd_inject()
82 params[sec_idx].memref.buffer, in cmd_inject()
90 params[ns_idx].memref.buffer, in cmd_inject()
98 params[sec_idx].memref.buffer, in cmd_inject()
132 params[0].memref.buffer, in cmd_transform()
151 params[0].memref.buffer, in cmd_transform()
168 params[0].memref.buffer, in cmd_transform()
204 params[ns_idx].memref.buffer, in cmd_dump()
214 params[sec_idx].memref.buffer, in cmd_dump()
[all …]
/optee_test/host/xtest/gp/include/
A Dxml_crypto_api.h58 b.buffer = NULL; \
68 free(b.buffer); \
1716 memcpy(ae_encrypt_tag.buffer, SHARE_MEM03->buffer, in Invoke_Crypto_AEEncryptFinal()
1767 memcpy(SHARE_MEM03->buffer, ae_encrypt_tag.buffer, in Invoke_Crypto_AEDecryptFinal()
1862 buffer, in Invoke_Crypto_GenerateRandom()
1876 memcpy(saved_random.buffer, SHARE_MEM01->buffer, in Invoke_Crypto_GenerateRandom()
1968 memcpy(saved_digest.buffer, SHARE_MEM02->buffer, in Invoke_Crypto_DigestDoFinal()
2033 memcpy(s_dgst.buffer, SHARE_MEM02->buffer, s_dgst.size); in Invoke_Crypto_AsymmetricSignDigest()
2074 memcpy(SHARE_MEM02->buffer, signed_dgst.buffer, in Invoke_Crypto_AsymmetricVerifyDigest()
2354 memcpy(SHARE_MEM02->buffer, mac.buffer, mac.size); in Invoke_Crypto_MACCompareFinal()
[all …]
A Dxml_datastorage_api.h1222 op.params[0].value.b = buffer; in Invoke_ReadObjectData()
1493 memcpy(shm.buffer, obj_id, shm.size); in Invoke_OpenPersistentObject()
1889 uint32_t cmd, uint32_t buffer, in Invoke_StoreBuffer() argument
1898 op.params[0].value.a = buffer; in Invoke_StoreBuffer()
1945 uint32_t buffer) in Invoke_WriteObjectData() argument
1959 uint32_t cmd, uint32_t buffer, in Invoke_StoreAttributeBuffer() argument
1975 op.params[0].value.a = buffer; in Invoke_StoreAttributeBuffer()
1994 buffer, 0); in Invoke_InitRefAttribute()
1999 uint32_t buffer, uint32_t attr_id, in Macro_StoreRefAttribute() argument
2005 buffer, value_bufptr, value_size); in Macro_StoreRefAttribute()
[all …]
A Dxml_client_api.h156 shm->buffer = malloc(size); in RegisterSharedMemory()
190 memcpy(sh_mem->buffer, &val, size_val)
274 init_mem(__shm->buffer, __shm->size, offset, _size, \
308 .buffer = buf, .size = sz, in TEEC_prepare_OperationEachParameter_tmpref()
325 (shrm)->buffer, \
344 tmpref.buffer); \
/optee_test/ta/socket/
A Dta_entry.c69 setup.server_addr = strndup(params[1].memref.buffer, in ta_entry_tcp_open()
78 memcpy(params[2].memref.buffer, &h, sizeof(h)); in ta_entry_tcp_open()
108 setup.server_addr = strndup(params[1].memref.buffer, in ta_entry_udp_open()
117 memcpy(params[2].memref.buffer, &h, sizeof(h)); in ta_entry_udp_open()
140 h = params[0].memref.buffer; in ta_entry_close()
162 h = params[0].memref.buffer; in ta_entry_send()
164 return h->socket->send(h->ctx, params[1].memref.buffer, in ta_entry_send()
186 h = params[0].memref.buffer; in ta_entry_recv()
209 h = params[0].memref.buffer; in ta_entry_error()
232 h = params[0].memref.buffer; in ta_entry_ioctl()
[all …]
/optee_test/ta/concurrent_large/
A Dta_entry.c65 params[1].value.b = inc_active_count(params[0].memref.buffer); in ta_entry_busy_loop()
77 dec_active_count(params[0].memref.buffer); in ta_entry_busy_loop()
105 params[1].value.b = inc_active_count(params[0].memref.buffer); in ta_entry_sha256()
122 res = TEE_DigestDoFinal(op, params[2].memref.buffer, in ta_entry_sha256()
127 TEE_MemMove(params[3].memref.buffer, out, out_len); in ta_entry_sha256()
135 dec_active_count(params[0].memref.buffer); in ta_entry_sha256()
/optee_test/ta/concurrent/
A Dta_entry.c65 params[1].value.b = inc_active_count(params[0].memref.buffer); in ta_entry_busy_loop()
77 dec_active_count(params[0].memref.buffer); in ta_entry_busy_loop()
105 params[1].value.b = inc_active_count(params[0].memref.buffer); in ta_entry_sha256()
122 res = TEE_DigestDoFinal(op, params[2].memref.buffer, in ta_entry_sha256()
127 TEE_MemMove(params[3].memref.buffer, out, out_len); in ta_entry_sha256()
135 dec_active_count(params[0].memref.buffer); in ta_entry_sha256()
/optee_test/ta/rpc_test/
A Dta_rpc.c50 params[n].memref.buffer = in rpc_call_cryp()
52 if (!params[n].memref.buffer) in rpc_call_cryp()
57 TEE_MemMove(params[n].memref.buffer, in rpc_call_cryp()
58 pParams[n].memref.buffer, in rpc_call_cryp()
91 TEE_MemMove(pParams[n].memref.buffer, in rpc_call_cryp()
92 params[n].memref.buffer, in rpc_call_cryp()
95 TEE_Free(params[n].memref.buffer); in rpc_call_cryp()
/optee_test/ta/aes_perf/
A Dta_aes_perf.c45 param->memref.buffer, 1); in is_inbuf_a_secure_memref()
62 param->memref.buffer, 1); in is_outbuf_a_secure_memref()
71 res = TEE_CacheFlush(param->memref.buffer, in flush_memref_buffer()
133 in = params[0].memref.buffer; in cmd_process()
135 out = params[1].memref.buffer; in cmd_process()
244 attr.content.ref.buffer = aes_key; in cmd_prepare_key()
255 attr.content.ref.buffer = aes_key2; in cmd_prepare_key()
/optee_test/ta/storage/
A Dstorage.c40 TEE_MemMove(object_id, params[0].memref.buffer, in ta_storage_cmd_open()
44 object_id = params[0].memref.buffer; in ta_storage_cmd_open()
82 TEE_MemMove(object_id, params[0].memref.buffer, in ta_storage_cmd_create()
86 object_id = params[0].memref.buffer; in ta_storage_cmd_create()
97 params[3].memref.buffer, in ta_storage_cmd_create()
128 TEE_MemMove(object_id, params[0].memref.buffer, in ta_storage_cmd_create_overwrite()
132 object_id = params[0].memref.buffer; in ta_storage_cmd_create_overwrite()
261 TEE_MemMove(object_id, params[1].memref.buffer, in ta_storage_cmd_rename()
265 object_id = params[1].memref.buffer; in ta_storage_cmd_rename()
383 TEE_MemMove(params[1].memref.buffer, obj, sizeof(*obj)); in ta_storage_cmd_next_enum()
[all …]
/optee_test/ta/sims/
A Dta_sims.c49 TEE_MemMove(uuid, params[0].memref.buffer, params[0].memref.size); in sims_open_ta_session()
111 TEE_MemMove(params[1].memref.buffer, storage[index].data, in sims_read()
142 TEE_MemMove(storage[index].data, params[1].memref.buffer, in sims_write()
175 if (params[0].memref.buffer && params[0].memref.size) { in sims_entry_panic()
181 params[0].memref.buffer = NULL; in sims_entry_panic()
/optee_test/host/xtest/
A Dregression_8100.c106 op.params[0].tmpref.buffer = chain; in test_8102()
108 op.params[1].tmpref.buffer = trust; in test_8102()
294 op.params[0].tmpref.buffer = csr; in test_8103()
296 op.params[1].tmpref.buffer = cert; in test_8103()
298 op.params[2].tmpref.buffer = chain; in test_8103()
312 verify_cert(c, ca, op.params[2].tmpref.buffer, in test_8103()
313 op.params[1].tmpref.buffer); in test_8103()
A Dregression_1000.c88 op.params[1].tmpref.buffer = out; in xtest_crypto_test()
125 op.params[1].tmpref.buffer = out; in xtest_crypto_test()
167 op.params[1].tmpref.buffer = out; in xtest_crypto_test()
276 op.params[0].tmpref.buffer = buf; in xtest_tee_test_1002()
1416 uint8_t buffer[6001] = { }; in xtest_tee_test_1018() local
1476 shm.buffer = buffer; in xtest_tee_test_1018()
1477 shm.size = sizeof(buffer); in xtest_tee_test_1018()
1492 shm.size = sizeof(buffer); in xtest_tee_test_1018()
1933 shm.buffer = NULL; in xtest_tee_test_1025()
1941 shm.buffer = NULL; in xtest_tee_test_1025()
[all …]
A Dregression_5000.c40 (shrm)->buffer, \
56 (op)->params[(param_num)].tmpref.buffer); \
199 shm.buffer = val; in Register_In()
225 shm.buffer = val; in Register_notZeroLength_Out()
251 shm.buffer = val; in Register_InOut()
276 shm.buffer = val; in Register_zeroLength_Out()
401 shm.buffer = val; in RegisterSameMemory_twice()
461 shm.buffer = val; in Register_sharedMemory_32k()
A Dxtest_helpers.c107 attrs[*attr_count].content.ref.buffer = (void *)buf; in xtest_add_attr()
145 if (!attrs[n].content.ref.buffer) in pack_attrs()
174 if (!attrs[n].content.ref.buffer) { in pack_attrs()
179 memcpy(b, attrs[n].content.ref.buffer, in pack_attrs()
211 op.params[1].tmpref.buffer = buf; in ta_crypt_cmd_populate_transient_object()
303 op.params[1].tmpref.buffer = buf; in ta_crypt_cmd_derive_key()
335 op.params[1].tmpref.buffer = buf; in ta_crypt_cmd_get_object_buffer_attribute()
416 operation.params[1].tmpref.buffer = client_uuid; in ta_os_test_cmd_client_identity()
/optee_test/ta/os_test/
A Dos_test.c474 params[0].memref.buffer, in test_mem_access_right()
480 params[0].memref.buffer, in test_mem_access_right()
533 l_params[0].memref.buffer = buf; in test_mem_access_right()
911 l_params[0].memref.buffer = in; in ta_entry_client()
913 l_params[1].memref.buffer = out; in ta_entry_client()
947 params[0].memref.buffer, in ta_entry_params_access_rights()
953 params[0].memref.buffer, in ta_entry_params_access_rights()
1072 l_params[0].memref.buffer = in; in ta_entry_ta2ta_memref()
1076 l_params[2].memref.buffer = out; in ta_entry_ta2ta_memref()
1150 in = params[0].memref.buffer; in ta_entry_ta2ta_memref_mix()
[all …]
/optee_test/ta/supp_plugin/
A Dta_entry.c77 uint8_t *d = params[0].memref.buffer; in write_array()
83 params[0].memref.buffer, in write_array()
104 params[0].memref.buffer, in get_array()

Completed in 85 milliseconds

12