| /optee_os/core/pta/veraison_attestation/ |
| H A D | sign.c | 65 TEE_Result res = TEE_SUCCESS; in hash_sha256() 69 if (res != TEE_SUCCESS) in hash_sha256() 72 if (res != TEE_SUCCESS) in hash_sha256() 75 if (res != TEE_SUCCESS) in hash_sha256() 111 TEE_Result res = TEE_SUCCESS; in generate_key() 123 if (res != TEE_SUCCESS) in generate_key() 129 if (res != TEE_SUCCESS) in generate_key() 142 if (res != TEE_SUCCESS) in generate_key() 148 if (res != TEE_SUCCESS) in generate_key() 152 if (res != TEE_SUCCESS) in generate_key() [all …]
|
| /optee_os/core/tee/ |
| H A D | tee_fs_key_manager.c | 51 if (res != TEE_SUCCESS) in do_hmac() 55 if (res != TEE_SUCCESS) in do_hmac() 59 if (res != TEE_SUCCESS) in do_hmac() 63 if (res != TEE_SUCCESS) in do_hmac() 66 res = TEE_SUCCESS; in do_hmac() 94 if (res != TEE_SUCCESS) in tee_fs_fek_crypt() 105 if (res != TEE_SUCCESS) in tee_fs_fek_crypt() 110 if (res != TEE_SUCCESS) in tee_fs_fek_crypt() 114 if (res != TEE_SUCCESS) in tee_fs_fek_crypt() 118 if (res != TEE_SUCCESS) in tee_fs_fek_crypt() [all …]
|
| H A D | fs_htree.c | 118 if (res != TEE_SUCCESS) in rpc_read() 122 if (res != TEE_SUCCESS) in rpc_read() 129 return TEE_SUCCESS; in rpc_read() 156 if (res != TEE_SUCCESS) in rpc_write() 189 return TEE_SUCCESS; in traverse_post_order() 192 if (res != TEE_SUCCESS) in traverse_post_order() 196 if (res != TEE_SUCCESS) in traverse_post_order() 301 return TEE_SUCCESS; in get_node() 330 if (res != TEE_SUCCESS) in init_head_from_data() 336 if (res != TEE_SUCCESS) in init_head_from_data() [all …]
|
| H A D | tee_cryp_concat_kdf.c | 28 if (res != TEE_SUCCESS) 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()
|
| H A D | tee_svc_cryp.c | 703 return TEE_SUCCESS; in op_u32_to_binary_helper() 723 TEE_Result res = TEE_SUCCESS; in op_attr_secret_value_from_user() 746 if (res != TEE_SUCCESS) in op_attr_secret_value_to_user() 751 if (res != TEE_SUCCESS) in op_attr_secret_value_to_user() 768 if (res != TEE_SUCCESS) in op_attr_secret_value_to_binary() 778 return TEE_SUCCESS; in op_attr_secret_value_to_binary() 812 return TEE_SUCCESS; in op_attr_secret_value_from_obj() 826 TEE_Result res = TEE_SUCCESS; in op_attr_bignum_from_user() 845 TEE_Result res = TEE_SUCCESS; in op_attr_bignum_to_user() 852 if (res != TEE_SUCCESS) in op_attr_bignum_to_user() [all …]
|
| H A D | tee_cryp_hkdf.c | 33 if (res != TEE_SUCCESS) in hkdf_extract() 48 if (res != TEE_SUCCESS) in hkdf_extract() 52 if (res != TEE_SUCCESS) in hkdf_extract() 56 if (res != TEE_SUCCESS) in hkdf_extract() 71 TEE_Result res = TEE_SUCCESS; in hkdf_expand() 77 if (res != TEE_SUCCESS) in hkdf_expand() 119 if (res != TEE_SUCCESS) in hkdf_expand() 122 if (res != TEE_SUCCESS) in hkdf_expand() 125 if (res != TEE_SUCCESS) in hkdf_expand() 128 if (res != TEE_SUCCESS) in hkdf_expand() [all …]
|
| H A D | tee_ta_enc_manager.c | 15 TEE_Result res = TEE_SUCCESS; in tee_ta_decrypt_init() 19 if (res != TEE_SUCCESS) in tee_ta_decrypt_init() 24 if (res != TEE_SUCCESS) in tee_ta_decrypt_init() 32 if (res != TEE_SUCCESS) in tee_ta_decrypt_init() 42 TEE_Result res = TEE_SUCCESS; in tee_ta_decrypt_update() 47 if (res != TEE_SUCCESS) in tee_ta_decrypt_update() 56 TEE_Result res = TEE_SUCCESS; in tee_ta_decrypt_final()
|
| H A D | tee_svc_storage.c | 51 return TEE_SUCCESS; in tee_svc_storage_get_enum() 73 return TEE_SUCCESS; in tee_svc_close_enum() 85 TEE_Result res = TEE_SUCCESS; in tee_svc_storage_read_head() 95 if (res != TEE_SUCCESS) in tee_svc_storage_read_head() 101 if (res != TEE_SUCCESS) { in tee_svc_storage_read_head() 122 if (res != TEE_SUCCESS) in tee_svc_storage_read_head() 138 if (res != TEE_SUCCESS) in tee_svc_storage_read_head() 147 if (res != TEE_SUCCESS) in tee_svc_storage_read_head() 175 TEE_Result res = TEE_SUCCESS; in syscall_storage_obj_open() 201 if (res != TEE_SUCCESS) in syscall_storage_obj_open() [all …]
|
| H A D | tee_svc.c | 45 if (copy_from_user(kbuf, buf, len) == TEE_SUCCESS) { in syscall_log() 133 if (res != TEE_SUCCESS) in get_prop_tee_dev_id() 469 TEE_Result res = TEE_SUCCESS; in syscall_get_property() 470 TEE_Result res2 = TEE_SUCCESS; in syscall_get_property() 484 if (res != TEE_SUCCESS) in syscall_get_property() 491 if (res != TEE_SUCCESS) in syscall_get_property() 506 if (res2 != TEE_SUCCESS) in syscall_get_property() 508 if (res != TEE_SUCCESS) in syscall_get_property() 515 if (res != TEE_SUCCESS) in syscall_get_property() 525 if (res2 != TEE_SUCCESS) in syscall_get_property() [all …]
|
| H A D | tee_cryp_pbkdf2.c | 38 if (res != TEE_SUCCESS) in pbkdf2_f() 45 if (res != TEE_SUCCESS) in pbkdf2_f() 53 if (res != TEE_SUCCESS) in pbkdf2_f() 57 if (res != TEE_SUCCESS) in pbkdf2_f() 62 if (res != TEE_SUCCESS) in pbkdf2_f() 68 return TEE_SUCCESS; in pbkdf2_f() 85 if (res != TEE_SUCCESS) in tee_cryp_pbkdf2() 89 if (res != TEE_SUCCESS) in tee_cryp_pbkdf2() 104 if (res != TEE_SUCCESS) in tee_cryp_pbkdf2()
|
| H A D | tee_rpmb_fs.c | 302 TEE_Result res = TEE_SUCCESS; in tee_rpmb_key_gen() 392 if (res != TEE_SUCCESS) in tee_rpmb_mac_calc() 398 if (res != TEE_SUCCESS) in tee_rpmb_mac_calc() 403 if (res != TEE_SUCCESS) in tee_rpmb_mac_calc() 406 res = TEE_SUCCESS; in tee_rpmb_mac_calc() 465 return TEE_SUCCESS; in tee_rpmb_alloc() 488 TEE_Result res = TEE_SUCCESS; in rpmb_probe_reset() 500 return TEE_SUCCESS; in rpmb_probe_reset() 503 return TEE_SUCCESS; in rpmb_probe_reset() 512 TEE_Result res = TEE_SUCCESS; in rpmb_probe_next() [all …]
|
| H A D | tee_time_generic.c | 31 return TEE_SUCCESS; in tee_time_ta_get_offs() 48 return TEE_SUCCESS; in tee_time_ta_set_offs() 61 return TEE_SUCCESS; in tee_time_ta_set_offs() 73 if (res != TEE_SUCCESS) in tee_time_get_ta_time() 77 if (res != TEE_SUCCESS) in tee_time_get_ta_time() 109 if (res != TEE_SUCCESS) in tee_time_set_ta_time() 127 if (tee_time_get_sys_time(&curr) != TEE_SUCCESS) in tee_time_busy_wait() 134 if (tee_time_get_sys_time(&curr) != TEE_SUCCESS) in tee_time_busy_wait()
|
| /optee_os/lib/libutee/ |
| H A D | tee_api_objects.c | 59 TEE_Result res = TEE_SUCCESS; in TEE_GetObjectInfo() 63 if (res != TEE_SUCCESS) in TEE_GetObjectInfo() 88 TEE_Result res = TEE_SUCCESS; in __GP11_TEE_GetObjectInfo() 92 if (res != TEE_SUCCESS) in __GP11_TEE_GetObjectInfo() 117 TEE_Result res = TEE_SUCCESS; in TEE_GetObjectInfo1() 121 if (res != TEE_SUCCESS && in TEE_GetObjectInfo1() 141 TEE_Result res = TEE_SUCCESS; in __GP11_TEE_GetObjectInfo1() 145 if (res != TEE_SUCCESS && in __GP11_TEE_GetObjectInfo1() 170 TEE_Result res = TEE_SUCCESS; in TEE_RestrictObjectUsage() 178 if (res != TEE_SUCCESS) in TEE_RestrictObjectUsage() [all …]
|
| H A D | tee_api_property.c | 73 return TEE_SUCCESS; in propset_get() 120 return TEE_SUCCESS; in propget_get_ext_prop() 132 return TEE_SUCCESS; in propget_get_ext_prop() 156 if (res != TEE_SUCCESS) in propget_get_property() 169 if (res != TEE_SUCCESS) in propget_get_property() 181 if (res != TEE_SUCCESS) in propget_get_property() 226 if (res != TEE_SUCCESS) { in TEE_GetPropertyAsString() 291 if (res != TEE_SUCCESS && in TEE_GetPropertyAsString() 303 TEE_Result res = TEE_SUCCESS; in __GP11_TEE_GetPropertyAsString() 330 if (res != TEE_SUCCESS) in TEE_GetPropertyAsBool() [all …]
|
| H A D | tee_api_operations.c | 365 if (res != TEE_SUCCESS) in TEE_AllocateOperation() 371 if (res != TEE_SUCCESS) in TEE_AllocateOperation() 378 if (res != TEE_SUCCESS) in TEE_AllocateOperation() 388 if (res != TEE_SUCCESS) in TEE_AllocateOperation() 399 if (res != TEE_SUCCESS) { in TEE_AllocateOperation() 431 if (res != TEE_SUCCESS) in TEE_FreeOperation() 464 TEE_Result res = TEE_SUCCESS; in TEE_GetOperationInfoMultiple() 541 if (res != TEE_SUCCESS && in TEE_GetOperationInfoMultiple() 553 TEE_Result res = TEE_SUCCESS; in __GP11_TEE_GetOperationInfoMultiple() 570 if (res != TEE_SUCCESS) in reset_operation_state() [all …]
|
| /optee_os/core/drivers/crypto/crypto_api/acipher/ |
| H A D | rsamgf.c | 39 if (ret != TEE_SUCCESS) in drvcrypt_rsa_mgf1() 53 if (ret != TEE_SUCCESS) in drvcrypt_rsa_mgf1() 58 if (ret != TEE_SUCCESS) in drvcrypt_rsa_mgf1() 63 if (ret != TEE_SUCCESS) in drvcrypt_rsa_mgf1() 67 if (ret != TEE_SUCCESS) in drvcrypt_rsa_mgf1() 77 if (ret != TEE_SUCCESS) in drvcrypt_rsa_mgf1() 82 if (ret != TEE_SUCCESS) in drvcrypt_rsa_mgf1() 87 if (ret != TEE_SUCCESS) in drvcrypt_rsa_mgf1() 91 if (ret != TEE_SUCCESS) in drvcrypt_rsa_mgf1() 97 ret = TEE_SUCCESS; in drvcrypt_rsa_mgf1()
|
| /optee_os/core/drivers/ |
| H A D | imx_sc_api.c | 107 if (res != TEE_SUCCESS) { in sc_rm_get_partition() 120 return TEE_SUCCESS; in sc_rm_get_partition() 145 if (res != TEE_SUCCESS) { in sc_pm_set_resource_power_mode() 157 return TEE_SUCCESS; in sc_pm_set_resource_power_mode() 178 if (res != TEE_SUCCESS) { in sc_rm_assign_resource() 187 if (res != TEE_SUCCESS) { in sc_rm_assign_resource() 198 return TEE_SUCCESS; in sc_rm_assign_resource() 235 if (res != TEE_SUCCESS) { in imx_sc_rm_enable_jr() 241 if (res != TEE_SUCCESS) { in imx_sc_rm_enable_jr() 248 if (res != TEE_SUCCESS) { in imx_sc_rm_enable_jr() [all …]
|
| H A D | widevine_huk.c | 22 return TEE_SUCCESS; in init_widevine_huk_dt_data() 44 return TEE_SUCCESS; in init_widevine_huk_dt_data() 51 TEE_Result result = TEE_SUCCESS; in tee_otp_get_hw_unique_key() 58 if (result != TEE_SUCCESS) in tee_otp_get_hw_unique_key() 63 return TEE_SUCCESS; in tee_otp_get_hw_unique_key()
|
| /optee_os/core/pta/tests/ |
| H A D | invoke.c | 29 return TEE_SUCCESS; in test_trace() 90 return TEE_SUCCESS; in test_entry_memref_null() 115 return TEE_SUCCESS; in test_entry_params() 123 return TEE_SUCCESS; in test_entry_params() 131 return TEE_SUCCESS; in test_entry_params() 139 return TEE_SUCCESS; in test_entry_params() 149 return TEE_SUCCESS; in test_entry_params() 158 return TEE_SUCCESS; in test_entry_params() 167 return TEE_SUCCESS; in test_entry_params() 176 return TEE_SUCCESS; in test_entry_params() [all …]
|
| /optee_os/core/arch/arm/kernel/ |
| H A D | secure_partition.c | 135 TEE_Result res = TEE_SUCCESS; in sp_partition_info_get() 214 return TEE_SUCCESS; in new_session_id() 223 TEE_Result res = TEE_SUCCESS; in sp_create_ctx() 245 return TEE_SUCCESS; in sp_create_ctx() 280 TEE_Result res = TEE_SUCCESS; in sp_create_session() 302 return TEE_SUCCESS; in sp_create_session() 317 return TEE_SUCCESS; in sp_init_set_registers() 325 TEE_Result res = TEE_SUCCESS; in sp_map_shared() 356 if (res != TEE_SUCCESS) { in sp_map_shared() 361 return TEE_SUCCESS; in sp_map_shared() [all …]
|
| /optee_os/core/tests/ |
| H A D | ftmn_boot_tests.c | 30 return TEE_SUCCESS; in simple_call_memcmp() 36 TEE_Result res = TEE_SUCCESS; in simple_call() 40 simple_call_func_res = TEE_SUCCESS; in simple_call() 63 return TEE_SUCCESS; in two_level_call_memcmp2() 83 TEE_Result res = TEE_SUCCESS; in two_level_call_memcmp() 97 TEE_Result res = TEE_SUCCESS; in two_level_call() 122 return TEE_SUCCESS; in chained_call_memcmp2() 146 TEE_Result res = TEE_SUCCESS; in chained_call_memcmp() 166 TEE_Result res = TEE_SUCCESS; in chained_calls() 205 return TEE_SUCCESS; in ftmn_boot_tests()
|
| /optee_os/core/kernel/ |
| H A D | ree_fs_ta.c | 93 TEE_Result res = TEE_SUCCESS; in check_update_version() 105 return TEE_SUCCESS; /* Compiled with no secure storage */ in check_update_version() 110 if (res != TEE_SUCCESS && res != TEE_ERROR_ITEM_NOT_FOUND) in check_update_version() 117 if (res != TEE_SUCCESS) in check_update_version() 123 if (res != TEE_SUCCESS) in check_update_version() 132 if (res != TEE_SUCCESS) in check_update_version() 145 if (res != TEE_SUCCESS) { in check_update_version() 168 if (res != TEE_SUCCESS) in check_update_version() 177 if (res != TEE_SUCCESS) in check_update_version() 182 if (res != TEE_SUCCESS) in check_update_version() [all …]
|
| /optee_os/core/lib/libtomcrypt/ |
| H A D | gcm.c | 43 return TEE_SUCCESS; in crypto_aes_gcm_alloc_ctx() 88 return TEE_SUCCESS; in crypto_aes_gcm_init() 102 return TEE_SUCCESS; in crypto_aes_gcm_update_aad() 110 TEE_Result res = TEE_SUCCESS; in crypto_aes_gcm_update_payload() 130 if (res != TEE_SUCCESS) in crypto_aes_gcm_update_payload() 139 return TEE_SUCCESS; in crypto_aes_gcm_update_payload() 147 TEE_Result res = TEE_SUCCESS; in crypto_aes_gcm_enc_final() 154 if (res != TEE_SUCCESS) in crypto_aes_gcm_enc_final() 169 return TEE_SUCCESS; in crypto_aes_gcm_enc_final() 191 if (res != TEE_SUCCESS) in crypto_aes_gcm_dec_final() [all …]
|
| /optee_os/core/crypto/ |
| H A D | aes-cts.c | 54 TEE_Result res = TEE_SUCCESS; in cts_init() 97 TEE_Result res = TEE_SUCCESS; in cbc_cts_update() 127 if (res != TEE_SUCCESS) in cbc_cts_update() 137 if (res != TEE_SUCCESS) in cbc_cts_update() 145 if (res != TEE_SUCCESS) in cbc_cts_update() 164 if (res != TEE_SUCCESS) in cbc_cts_update() 172 if (res != TEE_SUCCESS) in cbc_cts_update() 179 if (res != TEE_SUCCESS) in cbc_cts_update() 186 return TEE_SUCCESS; in cbc_cts_update() 236 TEE_Result res = TEE_SUCCESS; in crypto_aes_cts_alloc_ctx() [all …]
|
| /optee_os/core/arch/arm/plat-k3/drivers/ |
| H A D | mailbox.c | 36 return TEE_SUCCESS; in ti_mailbox_poll_rx_status() 62 return TEE_SUCCESS; in ti_sci_transport_send() 71 TEE_Result ret = TEE_SUCCESS; in ti_sci_transport_recv() 83 if (ret != TEE_SUCCESS) { in ti_sci_transport_recv() 97 return TEE_SUCCESS; in ti_sci_transport_recv() 126 return TEE_SUCCESS; in ti_sci_transport_init()
|