Home
last modified time | relevance | path

Searched refs:ADBG_Case_t (Results 1 – 23 of 23) sorted by relevance

/OK3568_Linux_fs/external/security/rk_tee_user/v2/host/xtest/gp/include/
H A Dxml_timearithm_api.h620 static TEEC_Result Invoke_BigIntCmpS32(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_BigIntCmpS32()
629 static TEEC_Result Invoke_BigIntCmp(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_BigIntCmp()
637 static TEEC_Result Invoke_BigIntComputeExtendedGcd(ADBG_Case_t *c, in Invoke_BigIntComputeExtendedGcd()
648 static TEEC_Result Invoke_BigIntAddMod(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_BigIntAddMod()
655 static TEEC_Result Invoke_BigIntAdd(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_BigIntAdd()
662 static TEEC_Result Invoke_BigIntMul(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_BigIntMul()
669 static TEEC_Result Invoke_BigIntMulMod(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_BigIntMulMod()
676 static TEEC_Result Invoke_StoreS32(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_StoreS32()
695 static TEEC_Result Invoke_BigIntConvertFromS32(ADBG_Case_t *c, in Invoke_BigIntConvertFromS32()
703 static TEEC_Result Invoke_BigIntConvertToS32(ADBG_Case_t *c, in Invoke_BigIntConvertToS32()
[all …]
H A Dxml_datastorage_api.h1211 ADBG_Case_t *c, TEEC_Session *sess, uint32_t cmdId, in Invoke_ReadObjectData()
1257 static TEEC_Result Invoke_RenamePersistentObject(ADBG_Case_t *c, in Invoke_RenamePersistentObject()
1290 static TEEC_Result Invoke_AllocateTransientObject(ADBG_Case_t *c, in Invoke_AllocateTransientObject()
1301 static TEEC_Result Invoke_GetObjectInfo1(ADBG_Case_t *c, in Invoke_GetObjectInfo1()
1331 static TEEC_Result Invoke_GetObjectInfo(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_GetObjectInfo()
1378 static TEEC_Result Invoke_RestrictObjectUsage1(ADBG_Case_t *c, in Invoke_RestrictObjectUsage1()
1386 static TEEC_Result Invoke_RestrictObjectUsage(ADBG_Case_t *c, in Invoke_RestrictObjectUsage()
1394 static TEEC_Result Invoke_ResetTransientObject(ADBG_Case_t *c, in Invoke_ResetTransientObject()
1401 static TEEC_Result Invoke_CloseAndDeletePersistentObject1(ADBG_Case_t *c, in Invoke_CloseAndDeletePersistentObject1()
1409 static TEEC_Result Invoke_CloseAndDeletePersistentObject(ADBG_Case_t *c, in Invoke_CloseAndDeletePersistentObject()
[all …]
H A Dxml_internal_api.h252 static TEEC_Result Invoke_MemFill(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_MemFill()
261 ADBG_Case_t *c, TEEC_Session *sess, uint32_t cmdId, in Invoke_GetPropertyAsXXX_withoutEnum()
319 ADBG_Case_t *c, TEEC_Session *sess, uint32_t cmdId, in Invoke_MemCompare()
357 static TEEC_Result Invoke_SetInstanceData(ADBG_Case_t *c, in Invoke_SetInstanceData()
383 ADBG_Case_t *c, TEEC_Session *sess, uint32_t cmdId, char *expectedData, in Invoke_GetInstanceData()
418 ADBG_Case_t *c, TEEC_Session *sess, uint32_t cmdId, in Invoke_ProcessInvokeTAOpenSession()
457 static TEEC_Result Invoke_CheckMemoryAccessRight(ADBG_Case_t *c, in Invoke_CheckMemoryAccessRight()
504 static TEEC_Result Invoke_MemMove(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_MemMove()
510 static TEEC_Result Invoke_AllocatePropertyEnumerator(ADBG_Case_t *c, in Invoke_AllocatePropertyEnumerator()
532 static TEEC_Result Invoke_StartPropertyEnumerator(ADBG_Case_t *c, in Invoke_StartPropertyEnumerator()
[all …]
H A Dxml_crypto_api.h1015 static TEEC_Result calculate_digest(ADBG_Case_t *c, const void *data,
1019 static TEEC_Result sign_digest(ADBG_Case_t *c,
1023 static bool verify_digest(ADBG_Case_t *c, const struct crypto_buffer *in_sdgst);
1025 static TEEC_Result mac_compute_final(ADBG_Case_t *c, TEEC_Session *s,
1030 static TEEC_Result cipher_do_final(ADBG_Case_t *c, TEEC_Session *s,
1057 static TEEC_Result Invoke_Crypto_AllocateOperation(ADBG_Case_t *c, in Invoke_Crypto_AllocateOperation()
1091 static TEEC_Result Invoke_Crypto_GetOperationInfo(ADBG_Case_t *c , in Invoke_Crypto_GetOperationInfo()
1127 static TEEC_Result Invoke_Crypto_GetOperationInfoMultiple(ADBG_Case_t *c, in Invoke_Crypto_GetOperationInfoMultiple()
1228 static TEEC_Result Invoke_Crypto_ResetOperation(ADBG_Case_t *c, TEEC_Session *s, in Invoke_Crypto_ResetOperation()
1235 static TEEC_Result Invoke_Crypto_FreeAllKeysAndOperations(ADBG_Case_t *c, in Invoke_Crypto_FreeAllKeysAndOperations()
[all …]
H A Dxml_common_api.h114 Invoke_Simple_Function(ADBG_Case_t *c __unused, TEEC_Session *sess, in Invoke_Simple_Function()
124 Invoke_Simple_Function_v1(ADBG_Case_t *c __unused, TEEC_Session *sess, in Invoke_Simple_Function_v1()
140 Invoke_Simple_Function_v2(ADBG_Case_t *c __unused, TEEC_Session *sess, in Invoke_Simple_Function_v2()
159 Invoke_Simple_Function_v3(ADBG_Case_t *c __unused, TEEC_Session *sess, in Invoke_Simple_Function_v3()
180 Invoke_Simple_Function_v4(ADBG_Case_t *c __unused, TEEC_Session *sess, in Invoke_Simple_Function_v4()
213 static TEEC_Result GetObjectBufferAttribute_helper(ADBG_Case_t *c, in GetObjectBufferAttribute_helper()
267 Invoke_GetObjectBufferAttribute(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_GetObjectBufferAttribute()
276 Invoke_FreeTransientObject(ADBG_Case_t *c, TEEC_Session *sess, uint32_t cmd, in Invoke_FreeTransientObject()
/OK3568_Linux_fs/external/security/rk_tee_user/v2/host/xtest/adbg/src/
H A Dadbg_case.c29 static ADBG_SubCase_t *ADBG_Case_CreateSubCase(ADBG_Case_t *Case_p,
32 static ADBG_SubCase_t *ADBG_Case_GetParentSubCase(ADBG_Case_t *Case_p,
35 static const char *ADBG_Case_GetTestID(ADBG_Case_t *Case_p);
40 ADBG_Case_t *ADBG_Case_New(const struct adbg_case_def *case_def) in ADBG_Case_New()
42 ADBG_Case_t *Case_p = NULL; in ADBG_Case_New()
51 void ADBG_Case_Delete(ADBG_Case_t *Case_p) in ADBG_Case_Delete()
58 const ADBG_Case_t *const Case_p, in ADBG_Case_SubCaseIsMain()
68 ADBG_Case_t *Case_p, in ADBG_Case_IterateSubCase()
80 ADBG_Case_t *Case_p = Iterator_p->Case_p; in ADBG_Case_NextSubCase()
138 ADBG_Case_t *const Case_p, in Do_ADBG_BeginSubCase()
[all …]
H A Dadbg_expect.c23 static bool ADBG_AssertHelper(ADBG_Case_t *const Case_p,
33 ADBG_Case_t *const Case_p, in Do_ADBG_Expect()
64 ADBG_Case_t *const Case_p, in Do_ADBG_ExpectNot()
96 ADBG_Case_t *const Case_p, in Do_ADBG_ExpectBuffer()
135 ADBG_Case_t *const Case_p, in Do_ADBG_ExpectPointer()
157 ADBG_Case_t *const Case_p, in Do_ADBG_ExpectPointerNotNULL()
175 ADBG_Case_t *const Case_p, in Do_ADBG_ExpectCompareSigned()
197 ADBG_Case_t *const Case_p, in Do_ADBG_ExpectCompareUnsigned()
220 ADBG_Case_t *const Case_p, in Do_ADBG_ExpectComparePointer()
245 ADBG_Case_t *const Case_p, in ADBG_AssertHelper()
H A Dadbg_int.h55 ADBG_Case_t *Case_p;
59 bool ADBG_Case_SubCaseIsMain(const ADBG_Case_t *const Case_p,
62 void ADBG_Case_IterateSubCase(ADBG_Case_t *Case_p,
67 ADBG_Case_t *ADBG_Case_New(const struct adbg_case_def *case_def);
69 void ADBG_Case_Delete(ADBG_Case_t *Case_p);
H A Dadbg_run.c112 ADBG_Case_t *Case_p = NULL; in ADBG_RunSuite()
/OK3568_Linux_fs/external/security/rk_tee_user/v2/host/xtest/
H A Dbenchmark_2000.c17 static void xtest_tee_benchmark_2001(ADBG_Case_t *Case_p);
18 static void xtest_tee_benchmark_2002(ADBG_Case_t *Case_p);
21 static void xtest_tee_benchmark_2011(ADBG_Case_t *Case_p);
22 static void xtest_tee_benchmark_2012(ADBG_Case_t *Case_p);
28 static void xtest_tee_benchmark_2001(ADBG_Case_t *c) in xtest_tee_benchmark_2001()
42 static void xtest_tee_benchmark_2002(ADBG_Case_t *c) in xtest_tee_benchmark_2002()
66 static void xtest_tee_benchmark_2011(ADBG_Case_t *c) in xtest_tee_benchmark_2011()
80 static void xtest_tee_benchmark_2012(ADBG_Case_t *c) in xtest_tee_benchmark_2012()
H A Dxtest_helpers.h44 TEEC_Result ta_crypt_cmd_allocate_operation(ADBG_Case_t *c,
51 TEEC_Result ta_crypt_cmd_allocate_transient_object(ADBG_Case_t *c,
56 TEEC_Result ta_crypt_cmd_populate_transient_object(ADBG_Case_t *c,
62 TEE_Result ta_crypt_cmd_set_operation_key(ADBG_Case_t *c,
67 TEEC_Result ta_crypt_cmd_free_transient_object(ADBG_Case_t *c,
71 TEEC_Result ta_crypt_cmd_derive_key(ADBG_Case_t *c,
78 TEEC_Result ta_crypt_cmd_get_object_buffer_attribute(ADBG_Case_t *c,
85 TEEC_Result ta_crypt_cmd_free_operation(ADBG_Case_t *c,
89 bool ta_crypt_cmd_is_algo_supported(ADBG_Case_t *c, TEEC_Session *s,
H A Dregression_4100.c18 static TEEC_Result cmd_new_var(ADBG_Case_t *c, TEEC_Session *s, in cmd_new_var()
36 static TEEC_Result cmd_new_fmm_var(ADBG_Case_t *c, TEEC_Session *s, in cmd_new_fmm_var()
55 static TEEC_Result cmd_new_fmm_ctx(ADBG_Case_t *c, TEEC_Session *s, in cmd_new_fmm_ctx()
76 static TEEC_Result cmd_free_handle(ADBG_Case_t *c, TEEC_Session *s, in cmd_free_handle()
96 static TEEC_Result cmd_from_octet_string(ADBG_Case_t *c, TEEC_Session *s, in cmd_from_octet_string()
118 static TEEC_Result cmd_from_s32(ADBG_Case_t *c, TEEC_Session *s, in cmd_from_s32()
136 static TEEC_Result cmd_get_bit(ADBG_Case_t *c, TEEC_Session *s, in cmd_get_bit()
155 static TEEC_Result cmd_get_bit_count(ADBG_Case_t *c, TEEC_Session *s, in cmd_get_bit_count()
174 static TEEC_Result cmd_binary_cmd(ADBG_Case_t *c, TEEC_Session *s, uint32_t cmd, in cmd_binary_cmd()
192 static TEEC_Result cmd_unary_cmd(ADBG_Case_t *c, TEEC_Session *s, uint32_t cmd, in cmd_unary_cmd()
[all …]
H A Dbenchmark_1000.c33 static void xtest_tee_benchmark_1001(ADBG_Case_t *Case_p);
34 static void xtest_tee_benchmark_1002(ADBG_Case_t *Case_p);
35 static void xtest_tee_benchmark_1003(ADBG_Case_t *Case_p);
110 static void chunk_test(ADBG_Case_t *c, enum storage_benchmark_cmd cmd) in chunk_test()
125 static void xtest_tee_benchmark_1001(ADBG_Case_t *c) in xtest_tee_benchmark_1001()
130 static void xtest_tee_benchmark_1002(ADBG_Case_t *c) in xtest_tee_benchmark_1002()
135 static void xtest_tee_benchmark_1003(ADBG_Case_t *c) in xtest_tee_benchmark_1003()
H A Dregression_8100.c29 static void test_8101(ADBG_Case_t *c __maybe_unused) in test_8101()
77 static void test_8102(ADBG_Case_t *c) in test_8102()
139 static bool get_cert(ADBG_Case_t *c, const char *crt_str, X509 **crt) in get_cert()
164 static bool push_cert(ADBG_Case_t *c, const char *crt_str, STACK_OF(X509) *cs) in push_cert()
181 static bool check(ADBG_Case_t *c, STACK_OF(X509) *trusted, in check()
227 static bool verify_cert(ADBG_Case_t *c, const char *ca, const char *mid, in verify_cert()
259 static bool verify_cert(ADBG_Case_t *c, const char *ca, in verify_cert()
271 static void test_8103(ADBG_Case_t *c) in test_8103()
H A Dregression_1000.c44 ADBG_Case_t *c;
232 static void xtest_tee_test_1001(ADBG_Case_t *c) in xtest_tee_test_1001()
253 static void xtest_tee_test_1002(ADBG_Case_t *c) in xtest_tee_test_1002()
353 static void xtest_tee_test_1003(ADBG_Case_t *c) in xtest_tee_test_1003()
429 static void xtest_tee_test_1004(ADBG_Case_t *c) in xtest_tee_test_1004()
449 static void xtest_tee_test_invalid_mem_access(ADBG_Case_t *c, unsigned int n) in xtest_tee_test_invalid_mem_access()
479 static void xtest_tee_test_invalid_mem_access2(ADBG_Case_t *c, unsigned int n, in xtest_tee_test_invalid_mem_access2()
521 static void xtest_tee_test_1005(ADBG_Case_t *c) in xtest_tee_test_1005()
541 static void xtest_tee_test_1006(ADBG_Case_t *c) in xtest_tee_test_1006()
567 static void xtest_tee_test_1007(ADBG_Case_t *c) in xtest_tee_test_1007()
[all …]
H A Dxtest_helpers.c42 TEEC_Result ta_crypt_cmd_allocate_operation(ADBG_Case_t *c, TEEC_Session *s, in ta_crypt_cmd_allocate_operation()
73 TEEC_Result ta_crypt_cmd_allocate_transient_object(ADBG_Case_t *c, in ta_crypt_cmd_allocate_transient_object()
192 TEEC_Result ta_crypt_cmd_populate_transient_object(ADBG_Case_t *c, in ta_crypt_cmd_populate_transient_object()
230 TEE_Result ta_crypt_cmd_set_operation_key(ADBG_Case_t *c, TEEC_Session *s, in ta_crypt_cmd_set_operation_key()
258 TEEC_Result ta_crypt_cmd_free_transient_object(ADBG_Case_t *c, TEEC_Session *s, in ta_crypt_cmd_free_transient_object()
281 TEEC_Result ta_crypt_cmd_derive_key(ADBG_Case_t *c, TEEC_Session *s, in ta_crypt_cmd_derive_key()
321 TEEC_Result ta_crypt_cmd_get_object_buffer_attribute(ADBG_Case_t *c, in ta_crypt_cmd_get_object_buffer_attribute()
356 TEEC_Result ta_crypt_cmd_free_operation(ADBG_Case_t *c, TEEC_Session *s, in ta_crypt_cmd_free_operation()
379 bool ta_crypt_cmd_is_algo_supported(ADBG_Case_t *c, TEEC_Session *s, in ta_crypt_cmd_is_algo_supported()
H A Dregression_6000.c22 static void test_name(ADBG_Case_t *c) \
449 static void test_truncate_file_length(ADBG_Case_t *c, uint32_t storage_id) in test_truncate_file_length()
518 static void test_extend_file_length(ADBG_Case_t *c, uint32_t storage_id) in test_extend_file_length()
592 static void test_file_hole(ADBG_Case_t *c, uint32_t storage_id) in test_file_hole()
676 static void xtest_tee_test_6001_single(ADBG_Case_t *c, uint32_t storage_id) in xtest_tee_test_6001_single()
705 static void xtest_tee_test_6002_single(ADBG_Case_t *c, uint32_t storage_id) in xtest_tee_test_6002_single()
749 static void xtest_tee_test_6003_single(ADBG_Case_t *c, uint32_t storage_id) in xtest_tee_test_6003_single()
793 static void xtest_tee_test_6004_single(ADBG_Case_t *c, uint32_t storage_id) in xtest_tee_test_6004_single()
852 static void xtest_tee_test_6005_single(ADBG_Case_t *c, uint32_t storage_id) in xtest_tee_test_6005_single()
896 static void xtest_tee_test_6006_single(ADBG_Case_t *c, uint32_t storage_id) in xtest_tee_test_6006_single()
[all …]
H A Dregression_4000.c27 static TEEC_Result ta_crypt_cmd_reset_operation(ADBG_Case_t *c, TEEC_Session *s, in ta_crypt_cmd_reset_operation()
47 static TEEC_Result ta_crypt_cmd_copy_operation(ADBG_Case_t *c, in ta_crypt_cmd_copy_operation()
74 static TEEC_Result ta_crypt_cmd_digest_update(ADBG_Case_t *c, TEEC_Session *s, in ta_crypt_cmd_digest_update()
102 static TEEC_Result ta_crypt_cmd_digest_do_final(ADBG_Case_t *c, TEEC_Session *s, in ta_crypt_cmd_digest_do_final()
139 static TEE_Result ta_crypt_cmd_set_operation_key2(ADBG_Case_t *c, in ta_crypt_cmd_set_operation_key2()
171 static TEEC_Result ta_crypt_cmd_mac_init(ADBG_Case_t *c, TEEC_Session *s, in ta_crypt_cmd_mac_init()
203 static TEEC_Result ta_crypt_cmd_mac_update(ADBG_Case_t *c, TEEC_Session *s, in ta_crypt_cmd_mac_update()
231 static TEEC_Result ta_crypt_cmd_mac_final_compute(ADBG_Case_t *c, in ta_crypt_cmd_mac_final_compute()
270 static TEEC_Result ta_crypt_cmd_cipher_init(ADBG_Case_t *c, TEEC_Session *s, in ta_crypt_cmd_cipher_init()
303 static TEEC_Result ta_crypt_cmd_cipher_update(ADBG_Case_t *c, TEEC_Session *s, in ta_crypt_cmd_cipher_update()
[all …]
H A Dregression_8000.c313 static void xtest_test_derivation_hkdf(ADBG_Case_t *c, TEEC_Session *session) in xtest_test_derivation_hkdf()
450 static void xtest_test_derivation_concat_kdf(ADBG_Case_t *c, TEEC_Session *session) in xtest_test_derivation_concat_kdf()
569 static void xtest_test_derivation_pbkdf2(ADBG_Case_t *c, TEEC_Session *session) in xtest_test_derivation_pbkdf2()
710 static void xtest_tee_test_8001(ADBG_Case_t *c) in xtest_tee_test_8001()
736 static void xtest_tee_test_8002(ADBG_Case_t *c) in xtest_tee_test_8002()
H A Dpkcs11_1000.c122 static void xtest_pkcs11_test_1000(ADBG_Case_t *c) in xtest_pkcs11_test_1000()
151 static void xtest_pkcs11_test_1001(ADBG_Case_t *c) in xtest_pkcs11_test_1001()
387 static void xtest_pkcs11_test_1002(ADBG_Case_t *c) in xtest_pkcs11_test_1002()
582 static CK_RV test_already_initialized_token(ADBG_Case_t *c, CK_SLOT_ID slot) in test_already_initialized_token()
671 static CK_RV test_uninitialized_token(ADBG_Case_t *c, CK_SLOT_ID slot) in test_uninitialized_token()
721 static CK_RV test_login_logout(ADBG_Case_t *c, CK_SLOT_ID slot) in test_login_logout()
802 static CK_RV test_set_pin(ADBG_Case_t *c, CK_SLOT_ID slot, in test_set_pin()
870 static void xtest_pkcs11_test_1003(ADBG_Case_t *c) in xtest_pkcs11_test_1003()
954 static void test_create_destroy_single_object(ADBG_Case_t *c, bool persistent) in test_create_destroy_single_object()
993 static void test_create_destroy_session_objects(ADBG_Case_t *c) in test_create_destroy_session_objects()
[all …]
H A Dregression_2000.c261 static void xtest_tee_test_2001(ADBG_Case_t *c) in xtest_tee_test_2001()
504 static void xtest_tee_test_2002(ADBG_Case_t *c) in xtest_tee_test_2002()
556 static void xtest_tee_test_2003(ADBG_Case_t *c) in xtest_tee_test_2003()
666 static void xtest_tee_test_2004(ADBG_Case_t *c) in xtest_tee_test_2004()
H A Dregression_5000.c25 ADBG_Case_t *c;
475 static void xtest_teec_TEE(ADBG_Case_t *c) in xtest_teec_TEE()
/OK3568_Linux_fs/external/security/rk_tee_user/v2/host/xtest/adbg/include/
H A Dadbg.h32 typedef struct ADBG_Case ADBG_Case_t; typedef
37 void (*Run_fp)(ADBG_Case_t *ADBG_Case_pp);
206 bool Do_ADBG_Expect(ADBG_Case_t *const Case_p, const char *const FileName_p,
211 bool Do_ADBG_ExpectNot(ADBG_Case_t *const Case_p, const char *const FileName_p,
216 bool Do_ADBG_ExpectBuffer(ADBG_Case_t *const Case_p,
225 bool Do_ADBG_ExpectPointer(ADBG_Case_t *const Case_p,
230 bool Do_ADBG_ExpectPointerNotNULL(ADBG_Case_t *const Case_p,
235 bool Do_ADBG_ExpectCompareSigned(ADBG_Case_t *const Case_p,
243 bool Do_ADBG_ExpectCompareUnsigned(ADBG_Case_t *const Case_p,
253 bool Do_ADBG_ExpectComparePointer(ADBG_Case_t *const Case_p,
[all …]