/optee_test/host/xtest/gp/include/ |
A D | xml_common_api.h | 130 op.params[0].value.a = a; in Invoke_Simple_Function_v1() 131 op.params[0].value.b = b; in Invoke_Simple_Function_v1() 147 op.params[0].value.a = a0; in Invoke_Simple_Function_v2() 148 op.params[0].value.b = b0; in Invoke_Simple_Function_v2() 149 op.params[1].value.a = a1; in Invoke_Simple_Function_v2() 150 op.params[1].value.b = b1; in Invoke_Simple_Function_v2() 166 op.params[0].value.a = a0; in Invoke_Simple_Function_v3() 167 op.params[0].value.b = b0; in Invoke_Simple_Function_v3() 168 op.params[1].value.a = a1; in Invoke_Simple_Function_v3() 169 op.params[1].value.b = b1; in Invoke_Simple_Function_v3() [all …]
|
A D | xml_internal_api.h | 246 #define RequestCancellation(op) \ argument 249 (void *)op)); \ 288 op.paramTypes = TEEC_PARAM_TYPES( in Invoke_GetPropertyAsXXX_withoutEnum() 306 op.params[2].memref.size)) in Invoke_GetPropertyAsXXX_withoutEnum() 328 op.params[1].value.a = Case; in Invoke_MemCompare() 329 op.params[2].value.a = outValue; in Invoke_MemCompare() 407 op.params[0].memref.size)) in Invoke_GetInstanceData() 434 op.params[0].value.a = TACmd; in Invoke_ProcessInvokeTAOpenSession() 667 op.params[1].memref.offset = 0; in Invoke_OpenTASession() 679 return op.params[2].value.a; in Invoke_OpenTASession() [all …]
|
A D | xml_datastorage_api.h | 1222 op.params[0].value.b = buffer; in Invoke_ReadObjectData() 1456 op.params[1].value.a = flags; in Invoke_CreatePersistentObject() 1497 op.params[1].value.a = flags; in Invoke_OpenPersistentObject() 1624 memset(&op, 0, sizeof(op)); in Invoke_GetNextPersistentObject_All() 1633 &op, &org); in Invoke_GetNextPersistentObject_All() 1641 memset(&op, 0, sizeof(op)); in Invoke_GetNextPersistentObject_All() 1648 &op, &org); in Invoke_GetNextPersistentObject_All() 1750 op.params[0].value.a = obj; in GetObjectValueAttribute_helper() 1898 op.params[0].value.a = buffer; in Invoke_StoreBuffer() 1910 op.params[1].value.a = size; in Invoke_StoreBuffer() [all …]
|
A D | xml_client_api.h | 181 op->params[n].value.a = a; in TEEC_prepare_OperationEachParameter_value() 184 op->params[n].value.b = b; in TEEC_prepare_OperationEachParameter_value() 218 memset(op, 0, sizeof(*op)); in store_param_info() 219 op->params[0].value.a = param_num; in store_param_info() 220 op->params[0].value.b = pt; in store_param_info() 230 op->params[1].value.a = size_in; in store_param_info() 232 op->params[1].value.b = value_in; in store_param_info() 234 op->params[2].value.a = size_out; in store_param_info() 236 op->params[2].value.b = value_out; in store_param_info() 326 (op)->params[(param_num)].\ [all …]
|
A D | xml_timearithm_api.h | 617 (void *)op)); \ 626 op, short_value); in Invoke_BigIntCmpS32() 719 op.params[0].value.a = src; in Invoke_BigIntGetBit() 728 op.params[1].value.a)) in Invoke_BigIntGetBit() 742 op.params[0].value.a = src; in Invoke_BigIntGetBitCount() 914 op.params[0].value.a = role; in Macro_StoreBigInt() 915 op.params[0].value.b = size; in Macro_StoreBigInt() 916 op.params[1].value.a = sign; in Macro_StoreBigInt() 922 &op, &org); in Macro_StoreBigInt() 991 op.params[0].value.a = dst; in Invoke_BigIntConvertFromOctetString() [all …]
|
A D | xml_crypto_api.h | 1519 op.params[3].memref.size; in Invoke_Crypto_AEUpdate_for_encryption() 1589 op.params[3].memref.size; in Invoke_Crypto_AEUpdate_for_decryption() 1704 op.params[3].memref.size; in Invoke_Crypto_AEEncryptFinal() 1801 op.params[3].memref.size; in Invoke_Crypto_AEDecryptFinal() 1866 op. in Invoke_Crypto_GenerateRandom() 2005 op.params[0].value.a = oph; in Invoke_Crypto_AsymmetricSignDigest() 2086 op.params[0].value.a = oph; in Invoke_Crypto_AsymmetricVerifyDigest() 2129 op.params[0].value.a = oph; in Invoke_Crypto_AsymmetricEncrypt() 2276 op.params[0].value.a = oph; in Invoke_Crypto_MACInit() 2314 op.params[0].value.a = oph; in Invoke_Crypto_MACUpdate() [all …]
|
/optee_test/host/xtest/ |
A D | regression_1000.c | 76 &op, in xtest_crypto_test() 98 &op, in xtest_crypto_test() 135 &op, in xtest_crypto_test() 177 &op, in xtest_crypto_test() 219 &op, in xtest_crypto_test() 461 op.params[0].value.a = n; in xtest_tee_test_invalid_mem_access() 975 &op, &ret_orig)); in xtest_tee_test_1012() 1398 &op, &ret_orig); in invoke_1byte_out_of_bounds() 1583 &op, &ret_orig); in open_sec_session() 1601 &op, &ret_orig); in sims_get_counter() [all …]
|
A D | xtest_helpers.c | 51 op.params[0].value.a = 0; in ta_crypt_cmd_allocate_operation() 52 op.params[0].value.b = algo; in ta_crypt_cmd_allocate_operation() 53 op.params[1].value.a = mode; in ta_crypt_cmd_allocate_operation() 83 op.params[0].value.a = obj_type; in ta_crypt_cmd_allocate_transient_object() 212 op.params[1].tmpref.size = blen; in ta_crypt_cmd_populate_transient_object() 304 op.params[1].tmpref.size = blen; in ta_crypt_cmd_derive_key() 333 op.params[0].value.b = attr_id; in ta_crypt_cmd_get_object_buffer_attribute() 343 &op, &ret_orig); in ta_crypt_cmd_get_object_buffer_attribute() 387 op.params[0].value.a = algo; in ta_crypt_cmd_is_algo_supported() 388 op.params[0].value.b = element; in ta_crypt_cmd_is_algo_supported() [all …]
|
A D | regression_6000.c | 111 op.params[1].value.b = 0; in fs_open() 138 op.params[1].value.b = 0; in fs_create() 181 op.params[0].value.a = obj; in fs_close() 199 op.params[1].value.b = 0; in fs_read() 222 op.params[1].value.b = 0; in fs_write() 317 op.params[0].value.a = e; in fs_reset_enum() 331 op.params[0].value.a = e; in fs_free_enum() 345 op.params[0].value.a = e; in fs_start_enum() 362 op.params[0].value.a = e; in fs_next_enum() 384 &op, &org); in fs_restrict_usage() [all …]
|
A D | stats.c | 89 TEEC_Operation op = { }; in stat_pager() local 107 printf("Unlocked pages: %"PRId32"\n", op.params[0].value.a); in stat_pager() 108 printf("Page pool size: %"PRId32"\n", op.params[0].value.b); in stat_pager() 109 printf("R/O faults: %"PRId32"\n", op.params[1].value.a); in stat_pager() 123 TEEC_Operation op = { }; in stat_alloc() local 134 op.paramTypes = TEEC_PARAM_TYPES(TEEC_VALUE_INPUT, in stat_alloc() 143 stats_size_bytes = op.params[1].tmpref.size; in stat_alloc() 152 op.params[1].tmpref.buffer = stats; in stat_alloc() 153 op.params[1].tmpref.size = stats_size_bytes; in stat_alloc() 160 if (op.params[1].tmpref.size != stats_size_bytes) in stat_alloc() [all …]
|
A D | regression_4100.c | 25 op.params[0].value.a = num_bits; in cmd_new_var() 104 op.params[0].value.a = h; in cmd_from_octet_string() 126 op.params[0].value.b = v; in cmd_from_s32() 150 *v = op.params[1].value.a; in cmd_get_bit() 219 op.params[1].value.a = hn; in cmd_ternary_cmd() 484 op.params[0].value.a = h; in cmd_get_value() 536 op.params[0].value.a = h; in cmd_get_value_s32() 1464 const char *op; member 1999 const char *op; member 2119 const char *op; member [all …]
|
A D | regression_2000.c | 42 op.params[0].value.a = ip_vers; in socket_tcp_open() 43 op.params[0].value.b = port; in socket_tcp_open() 55 &op, ret_orig); in socket_tcp_open() 58 *error = op.params[3].value.a; in socket_tcp_open() 72 op.params[0].value.a = ip_vers; in socket_udp_open() 73 op.params[0].value.b = port; in socket_udp_open() 85 &op, ret_orig); in socket_udp_open() 88 *error = op.params[3].value.a; in socket_udp_open() 104 op.params[2].value.a = timeout; in socket_send() 112 *dlen = op.params[2].value.b; in socket_send() [all …]
|
A D | regression_4000.c | 423 op.params[0].tmpref.size = blen; in ta_crypt_cmd_random_number_generate() 453 op.params[0].value.b = tag_len; in ta_crypt_cmd_ae_init() 458 op.params[2].value.a = aad_len; in ta_crypt_cmd_ae_init() 764 &op, &ret_orig); in ta_crypt_cmd_asymmetric_verify() 788 op.params[0].value.b = attr_id; in ta_crypt_cmd_get_object_value_attribute() 793 &op, &ret_orig); in ta_crypt_cmd_get_object_value_attribute() 4056 op))) in xtest_tee_test_4006() 5144 &op, in xtest_tee_test_4012() 5171 &op, in xtest_tee_test_4013() 5175 memset(&op, 0, sizeof(op)); in xtest_tee_test_4013() [all …]
|
A D | regression_8100.c | 106 op.params[0].tmpref.buffer = chain; in test_8102() 107 op.params[0].tmpref.size = clen; in test_8102() 108 op.params[1].tmpref.buffer = trust; in test_8102() 109 op.params[1].tmpref.size = tlen; in test_8102() 116 &op, &ret_orig)); in test_8102() 294 op.params[0].tmpref.buffer = csr; in test_8103() 295 op.params[0].tmpref.size = clen; in test_8103() 296 op.params[1].tmpref.buffer = cert; in test_8103() 297 op.params[1].tmpref.size = sizeof(cert); in test_8103() 298 op.params[2].tmpref.buffer = chain; in test_8103() [all …]
|
A D | sdp_basic.c | 258 op.params[0].tmpref.buffer = in; in inject_sdp_data() 259 op.params[0].tmpref.size = len; in inject_sdp_data() 261 op.params[1].memref.parent = shm; in inject_sdp_data() 262 op.params[1].memref.size = len; in inject_sdp_data() 302 op.params[0].memref.size = len; in transform_sdp_data() 343 op.params[0].memref.size = len; in dump_sdp_data() 347 op.params[1].tmpref.size = len; in dump_sdp_data() 535 op.params[0].memref.parent = in; in invoke_out_of_bounds() 536 op.params[0].memref.offset = 0; in invoke_out_of_bounds() 537 op.params[0].memref.size = size; in invoke_out_of_bounds() [all …]
|
A D | benchmark_1000.c | 41 TEEC_Operation op = TEEC_OPERATION_INITIALIZER; in run_test_with_args() local 50 op.params[0].value.a = arg0; in run_test_with_args() 51 op.params[0].value.b = arg1; in run_test_with_args() 52 op.params[1].value.a = arg2; in run_test_with_args() 53 op.params[1].value.b = arg3; in run_test_with_args() 55 op.paramTypes = TEEC_PARAM_TYPES(TEEC_VALUE_INPUT, in run_test_with_args() 58 res = TEEC_InvokeCommand(&sess, cmd, &op, &orig); in run_test_with_args() 61 *out0 = op.params[2].value.a; in run_test_with_args() 63 *out1 = op.params[2].value.b; in run_test_with_args()
|
A D | sha_perf.c | 217 TEEC_Operation *op) in run_test_once() argument 244 op.params[0].value.a = algo; in prepare_op() 316 op.params[0].memref.parent = &in_shm; in sha_perf_run_test() 317 op.params[0].memref.offset = 0; in sha_perf_run_test() 318 op.params[0].memref.size = size + offset; in sha_perf_run_test() 319 op.params[1].memref.parent = &out_shm; in sha_perf_run_test() 320 op.params[1].memref.offset = 0; in sha_perf_run_test() 321 op.params[1].memref.size = hash_size(algo); in sha_perf_run_test() 322 op.params[2].value.a = l; in sha_perf_run_test() 323 op.params[2].value.b = offset; in sha_perf_run_test() [all …]
|
A D | regression_8000.c | 360 TEE_OperationHandle op = TEE_HANDLE_NULL; in xtest_test_derivation_hkdf() local 372 ta_crypt_cmd_allocate_operation(c, session, &op, in xtest_test_derivation_hkdf() 390 ta_crypt_cmd_set_operation_key(c, session, op, in xtest_test_derivation_hkdf() 436 ta_crypt_cmd_free_operation(c, session, op))) in xtest_test_derivation_hkdf() 480 TEE_OperationHandle op = TEE_HANDLE_NULL; in xtest_test_derivation_concat_kdf() local 510 ta_crypt_cmd_set_operation_key(c, session, op, in xtest_test_derivation_concat_kdf() 555 ta_crypt_cmd_free_operation(c, session, op))) in xtest_test_derivation_concat_kdf() 604 TEE_OperationHandle op = TEE_HANDLE_NULL; in xtest_test_derivation_pbkdf2() local 637 ta_crypt_cmd_set_operation_key(c, session, op, in xtest_test_derivation_pbkdf2() 687 ta_crypt_cmd_free_operation(c, session, op))) in xtest_test_derivation_pbkdf2() [all …]
|
A D | install_ta.c | 64 TEEC_Operation op = TEEC_OPERATION_INITIALIZER; in install_ta() local 66 op.paramTypes = TEEC_PARAM_TYPES(TEEC_MEMREF_TEMP_INPUT, TEEC_NONE, in install_ta() 68 op.params[0].tmpref.buffer = buf; in install_ta() 69 op.params[0].tmpref.size = blen; in install_ta() 71 res = TEEC_InvokeCommand(sess, PTA_SECSTOR_TA_MGMT_BOOTSTRAP, &op, in install_ta()
|
A D | aes_perf.c | 356 TEEC_Operation op = TEEC_OPERATION_INITIALIZER; in prepare_key() local 361 op.params[0].value.a = decrypt; in prepare_key() 362 op.params[0].value.b = keysize; in prepare_key() 363 op.params[1].value.a = mode; in prepare_key() 364 res = TEEC_InvokeCommand(&sess, cmd, &op, in prepare_key() 469 op.params[0].memref.parent = &in_shm; in aes_perf_run_test() 470 op.params[0].memref.size = size; in aes_perf_run_test() 472 op.params[1].memref.size = size; in aes_perf_run_test() 473 op.params[2].value.a = l; in aes_perf_run_test() 474 op.params[2].value.b = unit; in aes_perf_run_test() [all …]
|
A D | regression_5000.c | 31 #define EXPECT_SHARED_MEM_BUFFER(c, exp_buf, exp_blen, op, param_num, shrm) \ argument 35 (op)->params[(param_num)].memref.size); \ 38 (op)->params[(param_num)].memref.parent); \ 41 (op)->params[(param_num)].memref.size); \ 49 #define EXPECT_OP_TMP_MEM_BUFFER(c, exp_buf, exp_blen, op, param_num, buf) \ argument 53 (op)->params[(param_num)].tmpref.size); \ 56 (op)->params[(param_num)].tmpref.buffer); \ 59 (op)->params[(param_num)].memref.size); \
|
/optee_test/ta/crypt/ |
A D | cryp_taf.c | 31 res = TEE_AllocateOperation(&op, in ta_entry_allocate_operation() 34 params[0].value.a = HANDLE2VAL(op); in ta_entry_allocate_operation() 46 TEE_FreeOperation(op); in ta_entry_free_operation() 75 TEE_ResetOperation(op); in ta_entry_reset_operation() 141 return TEE_DigestDoFinal(op, in ta_entry_digest_do_final() 167 TEE_CipherInit(op, buffer, size); in ta_entry_cipher_init() 180 return TEE_CipherUpdate(op, in ta_entry_cipher_update() 194 return TEE_CipherDoFinal(op, in ta_entry_cipher_do_final() 220 TEE_MACInit(op, buffer, size); in ta_entry_mac_init() 246 return TEE_MACComputeFinal(op, in ta_entry_mac_final_compute() [all …]
|
A D | arith_taf.c | 264 TEE_BigInt *op = lookup_handle(HT_BIGINT, params[0].value.a); in ta_entry_arith_shift_right() local 267 if (!op || !dest) in ta_entry_arith_shift_right() 270 TEE_BigIntShiftRight(dest, op, params[0].value.b); in ta_entry_arith_shift_right() 296 TEE_BigInt *op = lookup_handle(HT_BIGINT, params[0].value.a); in ta_entry_arith_cmp_s32() local 298 if (!op) in ta_entry_arith_cmp_s32() 301 params[1].value.a = TEE_BigIntCmpS32(op, params[0].value.b); in ta_entry_arith_cmp_s32() 351 const TEE_BigInt *op)) in unary_func() argument 355 TEE_BigInt *op = lookup_handle(HT_BIGINT, params[0].value.a); in unary_func() local 358 if (!op || !dest) in unary_func() 361 func(dest, op); in unary_func() [all …]
|
/optee_test/ta/concurrent_large/ |
A D | ta_entry.c | 84 TEE_OperationHandle op = TEE_HANDLE_NULL; in ta_entry_sha256() local 114 res = TEE_AllocateOperation(&op, TEE_ALG_SHA256, TEE_MODE_DIGEST, 0); in ta_entry_sha256() 121 TEE_ResetOperation(op); in ta_entry_sha256() 122 res = TEE_DigestDoFinal(op, params[2].memref.buffer, in ta_entry_sha256() 133 if (op) in ta_entry_sha256() 134 TEE_FreeOperation(op); in ta_entry_sha256()
|
/optee_test/ta/concurrent/ |
A D | ta_entry.c | 84 TEE_OperationHandle op = TEE_HANDLE_NULL; in ta_entry_sha256() local 114 res = TEE_AllocateOperation(&op, TEE_ALG_SHA256, TEE_MODE_DIGEST, 0); in ta_entry_sha256() 121 TEE_ResetOperation(op); in ta_entry_sha256() 122 res = TEE_DigestDoFinal(op, params[2].memref.buffer, in ta_entry_sha256() 133 if (op) in ta_entry_sha256() 134 TEE_FreeOperation(op); in ta_entry_sha256()
|