/optee_os-3.20.0/lib/libutee/ |
A D | tee_api_objects.c | 86 return res; in TEE_GetObjectInfo1() 122 return res; in TEE_RestrictObjectUsage1() 158 return res; in TEE_GetObjectBufferAttribute() 205 return res; in TEE_GetObjectValueAttribute() 241 return res; in TEE_AllocateTransientObject() 310 return res; in TEE_PopulateTransientObject() 391 return res; in TEE_CopyObjectAttributes1() 409 return res; in TEE_GenerateKey() 439 return res; in TEE_OpenPersistentObject() 473 return res; in TEE_CreatePersistentObject() [all …]
|
A D | tee_api_property.c | 149 return res; in propget_get_property() 162 return res; in propget_get_property() 187 return res; in propget_get_property() 288 return res; in TEE_GetPropertyAsString() 316 return res; in TEE_GetPropertyAsBool() 341 return res; in TEE_GetPropertyAsU32() 367 return res; in TEE_GetPropertyAsBinaryBlock() 392 return res; in TEE_GetPropertyAsUUID() 417 return res; in TEE_GetPropertyAsIdentity() 513 return res; in TEE_GetPropertyName() [all …]
|
A D | tee_api.c | 169 if (res) in TEE_OpenTASession() 191 return res; in TEE_OpenTASession() 226 if (res) in TEE_InvokeTACommand() 244 return res; in TEE_InvokeTACommand() 251 return res; in TEE_InvokeTACommand() 308 return res; in TEE_CheckMemoryAccessRights() 350 if (res != TEE_SUCCESS && res != TEE_ERROR_CANCEL) in TEE_Wait() 353 return res; in TEE_Wait() 362 if (res != TEE_SUCCESS && res != TEE_ERROR_OVERFLOW) { in TEE_GetTAPersistentTime() 374 return res; in TEE_GetTAPersistentTime() [all …]
|
/optee_os-3.20.0/lib/libutils/ext/ |
A D | fault_mitigation.c | 28 if ((check->res ^ FTMN_DEFAULT_HASH) != res) in ___ftmn_return_res() 36 if ((check->res ^ FTMN_DEFAULT_HASH) != res) in ___ftmn_expect_state() 48 arg->res = arg->hash ^ res; in ___ftmn_callee_done() 58 arg->res = arg->hash ^ res; in ___ftmn_callee_done_not_zero() 77 arg->res = arg->hash ^ res; in ___ftmn_callee_done_memcmp() 104 arg->res = arg->hash ^ res; in ___ftmn_callee_update_not_zero() 113 if ((arg->res ^ arg->hash) != res) in ___ftmn_copy_linked_call_res() 115 check->res = res ^ FTMN_DEFAULT_HASH; in ___ftmn_copy_linked_call_res() 123 check->res = res ^ FTMN_DEFAULT_HASH; in ___ftmn_set_check_res() 133 check->res = res ^ FTMN_DEFAULT_HASH; in ___ftmn_set_check_res_not_zero() [all …]
|
/optee_os-3.20.0/core/pta/tests/ |
A D | lockdep.c | 29 if (!res) in self_test_lockdep1() 34 if (res) in self_test_lockdep1() 39 if (res) in self_test_lockdep1() 44 if (res) in self_test_lockdep1() 49 if (res) in self_test_lockdep1() 54 if (res) in self_test_lockdep1() 59 if (res) in self_test_lockdep1() 65 if (!res) in self_test_lockdep1() 91 if (res) in self_test_lockdep2() 96 if (res) in self_test_lockdep2() [all …]
|
A D | fs_htree.c | 110 return res; in test_read_init() 206 return res; in read_block() 234 return res; in do_range() 251 return res; in do_range_backwards() 392 return res; in htree_test_rewrite() 463 return res; in test_write_read() 479 CHECK_RES(res, return res); in test_corrupt_type() 521 if (!res) in test_corrupt_type() 541 if (res) { in test_corrupt_type() 550 return res; in test_corrupt_type() [all …]
|
/optee_os-3.20.0/core/tee/ |
A D | tee_fs_key_manager.c | 53 return res; in do_hmac() 71 return res; in do_hmac() 96 return res; in tee_fs_fek_crypt() 107 return res; in tee_fs_fek_crypt() 112 return res; in tee_fs_fek_crypt() 131 return res; in tee_fs_fek_crypt() 152 return res; in tee_fs_init_key_manager() 164 return res; in tee_fs_generate_fek() 203 return res; in aes_ecb() 224 return res; in essiv() [all …]
|
A D | tee_ree_fs.c | 497 if (res) in open_dirh() 523 if (res) in open_dirh() 535 if (res) in commit_dirh_writes() 649 if (res) in ree_fs_open() 680 if (res) in set_name() 684 if (res) in set_name() 721 if (res) in ree_fs_create() 725 if (res) in ree_fs_create() 729 if (res) in ree_fs_create() 754 if (res) in ree_fs_create() [all …]
|
A D | fs_htree.c | 118 return res; in rpc_read() 122 return res; in rpc_read() 156 return res; in rpc_write() 192 return res; in traverse_post_order() 196 return res; in traverse_post_order() 501 return res; in authenc_init() 521 return res; in authenc_decrypt_final() 541 return res; in authenc_encrypt_final() 577 return res; in verify_node() 592 return res; in verify_tree() [all …]
|
A D | tee_svc_storage.c | 145 if (res) in tee_svc_storage_read_head() 162 return res; in tee_svc_storage_read_head() 247 return res; in syscall_storage_obj_open() 263 if (res) in tee_svc_storage_init_file() 266 if (res) in tee_svc_storage_init_file() 272 if (res) in tee_svc_storage_init_file() 301 if (!res) in tee_svc_storage_init_file() 305 return res; in tee_svc_storage_init_file() 445 if (res) in syscall_storage_obj_del() 507 if (res) in syscall_storage_obj_rename() [all …]
|
A D | tee_cryp_hkdf.c | 20 TEE_Result res; in hkdf_extract() local 33 if (res != TEE_SUCCESS) in hkdf_extract() 38 if (res) in hkdf_extract() 48 if (res != TEE_SUCCESS) in hkdf_extract() 52 if (res != TEE_SUCCESS) in hkdf_extract() 62 return res; in hkdf_extract() 89 if (res) in hkdf_expand() 141 return res; in hkdf_expand() 149 TEE_Result res; in tee_cryp_hkdf() local 156 return res; in tee_cryp_hkdf() [all …]
|
A D | tadb.c | 117 if (!res) in ta_operation_open() 165 if (!res) in set_file() 232 if (res) in tadb_open() 287 if (res) in tadb_authenc_init() 293 if (res) in tadb_authenc_init() 387 if (res) in tee_tadb_ta_create() 397 if (res) in tee_tadb_ta_create() 407 if (res) in tee_tadb_ta_create() 416 if (res) in tee_tadb_ta_create() 420 if (res) in tee_tadb_ta_create() [all …]
|
A D | tee_cryp_pbkdf2.c | 30 TEE_Result res; in pbkdf2_f() local 38 if (res != TEE_SUCCESS) in pbkdf2_f() 39 return res; in pbkdf2_f() 46 return res; in pbkdf2_f() 54 return res; in pbkdf2_f() 58 return res; in pbkdf2_f() 63 return res; in pbkdf2_f() 76 TEE_Result res; in tee_cryp_pbkdf2() local 86 return res; in tee_cryp_pbkdf2() 90 return res; in tee_cryp_pbkdf2() [all …]
|
A D | fs_dirfile.c | 76 if (!res) in set_file() 79 return res; in set_file() 108 return res; in read_dent() 137 if (res) in tee_fs_dirfile_open() 158 if (res) in tee_fs_dirfile_open() 205 if (!res) in tee_fs_dirfile_get_tmp() 221 if (res) in tee_fs_dirfile_find() 255 if (res) in find_empty_idx() 331 if (res) in tee_fs_dirfile_remove() 343 if (!res) in tee_fs_dirfile_remove() [all …]
|
A D | tee_rpmb_fs.c | 382 if (res) in tee_rpmb_mac_calc() 620 res = in tee_rpmb_req_pack() 700 if (res) in tee_rpmb_data_cpy_mac_calc() 1156 res); in tee_rpmb_init() 1613 if (res) in fat_entry_dir_init() 1617 if (res) in fat_entry_dir_init() 1646 if (res) in fat_entry_dir_init() 2120 res = in rpmb_fs_setup() 2184 if (res) in read_fat() 2248 if (res) in read_fat() [all …]
|
A D | tee_cryp_concat_kdf.c | 19 TEE_Result res; in tee_cryp_concat_kdf() local 28 if (res != TEE_SUCCESS) in tee_cryp_concat_kdf() 29 return res; in tee_cryp_concat_kdf() 32 if (res != TEE_SUCCESS) in tee_cryp_concat_kdf() 41 if (res != TEE_SUCCESS) in tee_cryp_concat_kdf() 45 if (res != TEE_SUCCESS) in tee_cryp_concat_kdf() 48 if (res != TEE_SUCCESS) in tee_cryp_concat_kdf() 53 if (res != TEE_SUCCESS) in tee_cryp_concat_kdf() 57 if (res != TEE_SUCCESS) in tee_cryp_concat_kdf() 65 res = TEE_SUCCESS; in tee_cryp_concat_kdf() [all …]
|
/optee_os-3.20.0/core/pta/ |
A D | attestation.c | 57 if (res) in generate_key() 70 if (res) in generate_key() 169 if (res) in deserialize_bignum() 182 if (res) in deserialize_key() 227 if (res) in sec_storage_obj_read() 231 if (res) in sec_storage_obj_read() 271 if (res) in sec_storage_obj_write() 296 if (res) in load_key() 312 if (res) in write_key() 370 if (res) in cmd_get_pubkey() [all …]
|
A D | secstor_ta_mgmt.c | 29 if (res) in check_install_conflict() 37 return res; in check_install_conflict() 71 if (res) in install_ta() 74 if (res) in install_ta() 77 if (res) in install_ta() 85 if (res) in install_ta() 89 if (res) in install_ta() 102 if (res) in install_ta() 110 if (res) in install_ta() 119 if (res) in install_ta() [all …]
|
/optee_os-3.20.0/core/crypto/ |
A D | rng_fortuna.c | 102 if (res) in key_from_data() 105 if (res) in key_from_data() 146 if (res) in crypto_rng_init() 149 if (res) in crypto_rng_init() 154 if (res) in crypto_rng_init() 158 if (res) in crypto_rng_init() 162 if (res) in crypto_rng_init() 165 if (res) in crypto_rng_init() 233 if (res) in add_event() 236 if (res) in add_event() [all …]
|
/optee_os-3.20.0/core/tests/ |
A D | ftmn_boot_tests.c | 22 FTMN_CALLEE_DONE(res); in simple_call_func1() 23 return res; in simple_call_func1() 36 TEE_Result res = TEE_SUCCESS; in simple_call() local 83 TEE_Result res = TEE_SUCCESS; in two_level_call_memcmp() local 91 return res; in two_level_call_memcmp() 97 TEE_Result res = TEE_SUCCESS; in two_level_call() local 136 if (!res && s1 != s2) in chained_call_memcmp1() 137 res = TEE_ERROR_BAD_STATE; in chained_call_memcmp1() 139 return res; in chained_call_memcmp1() 152 if (!res) in chained_call_memcmp() [all …]
|
/optee_os-3.20.0/ta/avb/ |
A D | entry.c | 46 if (!res) in open_rb_state() 89 if (res) in read_rb_idx() 93 if (res) in read_rb_idx() 97 if (res) in read_rb_idx() 101 if (res) in read_rb_idx() 145 if (res) in write_rb_idx() 150 if (res) in write_rb_idx() 154 if (res) in write_rb_idx() 158 if (res) in write_rb_idx() 169 if (res) in write_rb_idx() [all …]
|
/optee_os-3.20.0/core/lib/libtomcrypt/ |
A D | sm2-kep.c | 44 if (res) in sm2_kep_compute_Z() 48 if (res) in sm2_kep_compute_Z() 52 if (res) in sm2_kep_compute_Z() 56 if (res) in sm2_kep_compute_Z() 61 if (res) in sm2_kep_compute_Z() 66 if (res) in sm2_kep_compute_Z() 71 if (res) in sm2_kep_compute_Z() 76 if (res) in sm2_kep_compute_Z() 81 if (res) in sm2_kep_compute_Z() 86 if (res) in sm2_kep_compute_Z() [all …]
|
/optee_os-3.20.0/core/kernel/ |
A D | huk_subkey.c | 48 if (res) in huk_compat() 49 return res; in huk_compat() 51 if (res) in huk_compat() 75 if (res) in huk_subkey_derive() 76 return res; in huk_subkey_derive() 79 if (res) in huk_subkey_derive() 83 if (res) in huk_subkey_derive() 91 if (res) in huk_subkey_derive() 96 if (res) in huk_subkey_derive() 102 if (res) in huk_subkey_derive() [all …]
|
/optee_os-3.20.0/lib/libmbedtls/core/ |
A D | sm2-kep.c | 50 if (res) in sm2_kep_compute_Z() 54 if (res) in sm2_kep_compute_Z() 58 if (res) in sm2_kep_compute_Z() 62 if (res) in sm2_kep_compute_Z() 71 if (res) in sm2_kep_compute_Z() 80 if (res) in sm2_kep_compute_Z() 89 if (res) in sm2_kep_compute_Z() 98 if (res) in sm2_kep_compute_Z() 107 if (res) in sm2_kep_compute_Z() 116 if (res) in sm2_kep_compute_Z() [all …]
|
A D | sm2-pke.c | 149 if (res) in sm2_mbedtls_pke_decrypt() 202 if (res) in sm2_mbedtls_pke_decrypt() 229 if (res) in sm2_mbedtls_pke_decrypt() 232 if (res) in sm2_mbedtls_pke_decrypt() 235 if (res) in sm2_mbedtls_pke_decrypt() 238 if (res) in sm2_mbedtls_pke_decrypt() 247 if (res) in sm2_mbedtls_pke_decrypt() 250 if (res) in sm2_mbedtls_pke_decrypt() 335 if (res) in sm2_mbedtls_pke_encrypt() 390 if (res) in sm2_mbedtls_pke_encrypt() [all …]
|