Home
last modified time | relevance | path

Searched refs:fih_rc (Results 1 – 25 of 31) sorted by relevance

12

/trusted-firmware-m-3.6.0/bl1/bl1_2/
Dmain.c79 fih_int fih_rc = FIH_FAILURE; in image_hash_check() local
83 fih_rc = fih_int_encode_zero_equality(plat_err); in image_hash_check()
84 if (fih_not_eq(fih_rc, FIH_SUCCESS)) { in image_hash_check()
88 FIH_CALL(bl_fih_memeql, fih_rc, computed_bl2_hash, stored_bl2_hash, in image_hash_check()
90 FIH_RET(fih_rc); in image_hash_check()
97 fih_int fih_rc; in is_image_security_counter_valid() local
103 fih_rc = fih_int_encode_zero_equality(plat_err); in is_image_security_counter_valid()
104 if (fih_not_eq(fih_rc, FIH_SUCCESS)) { in is_image_security_counter_valid()
116 fih_int fih_rc = FIH_FAILURE; in is_image_signature_valid() local
120 FIH_CALL(bl1_sha256_compute, fih_rc, (uint8_t *)&img->protected_values, in is_image_signature_valid()
[all …]
/trusted-firmware-m-3.6.0/bl1/bl1_1/
Dmain.c62 fih_int fih_rc = FIH_FAILURE; in validate_image_at_addr() local
64 FIH_CALL(bl1_sha256_compute, fih_rc, image, BL1_2_CODE_SIZE, in validate_image_at_addr()
66 if (fih_not_eq(fih_rc, FIH_SUCCESS)) { in validate_image_at_addr()
72 fih_rc = fih_int_encode_zero_equality(plat_err); in validate_image_at_addr()
73 if (fih_not_eq(fih_rc, FIH_SUCCESS)) { in validate_image_at_addr()
77 FIH_CALL(bl_fih_memeql, fih_rc, computed_bl1_2_hash, in validate_image_at_addr()
79 if (fih_not_eq(fih_rc, FIH_SUCCESS)) { in validate_image_at_addr()
88 fih_int fih_rc = FIH_FAILURE; in main() local
90 fih_rc = fih_int_encode_zero_equality(boot_platform_init()); in main()
91 if (fih_not_eq(fih_rc, FIH_SUCCESS)) { in main()
[all …]
/trusted-firmware-m-3.6.0/secure_fw/spm/core/
Dmain.c30 fih_int fih_rc = FIH_FAILURE; in tfm_core_init() local
36 FIH_CALL(tfm_hal_set_up_static_boundaries, fih_rc, &spm_boundary); in tfm_core_init()
37 if (fih_not_eq(fih_rc, fih_int_encode(TFM_HAL_SUCCESS))) { in tfm_core_init()
41 FIH_CALL(tfm_hal_verify_static_boundaries, fih_rc); in tfm_core_init()
42 if (fih_not_eq(fih_rc, fih_int_encode(TFM_HAL_SUCCESS))) { in tfm_core_init()
47 FIH_CALL(tfm_hal_platform_init, fih_rc); in tfm_core_init()
48 if (fih_not_eq(fih_rc, fih_int_encode(TFM_HAL_SUCCESS))) { in tfm_core_init()
94 fih_int fih_rc = FIH_FAILURE; in main() local
101 FIH_CALL(tfm_core_init, fih_rc); in main()
102 if (fih_not_eq(fih_rc, fih_int_encode(SPM_SUCCESS))) { in main()
[all …]
Dpsa_call_api.c29 fih_int fih_rc = FIH_FAILURE; in spm_associate_call_params() local
63 FIH_CALL(tfm_hal_memory_check, fih_rc, in spm_associate_call_params()
66 if (fih_not_eq(fih_rc, fih_int_encode(PSA_SUCCESS))) { in spm_associate_call_params()
78 FIH_CALL(tfm_hal_memory_check, fih_rc, in spm_associate_call_params()
81 if (fih_not_eq(fih_rc, fih_int_encode(PSA_SUCCESS))) { in spm_associate_call_params()
114 FIH_CALL(tfm_hal_memory_check, fih_rc, in spm_associate_call_params()
117 if (fih_not_eq(fih_rc, fih_int_encode(PSA_SUCCESS))) { in spm_associate_call_params()
137 FIH_CALL(tfm_hal_memory_check, fih_rc, in spm_associate_call_params()
140 if (fih_not_eq(fih_rc, fih_int_encode(PSA_SUCCESS))) { in spm_associate_call_params()
Dpsa_read_write_skip_api.c21 fih_int fih_rc = FIH_FAILURE; in tfm_spm_partition_psa_read() local
67 FIH_CALL(tfm_hal_memory_check, fih_rc, in tfm_spm_partition_psa_read()
70 if (fih_not_eq(fih_rc, fih_int_encode(PSA_SUCCESS))) { in tfm_spm_partition_psa_read()
150 fih_int fih_rc = FIH_FAILURE; in tfm_spm_partition_psa_write() local
198 FIH_CALL(tfm_hal_memory_check, fih_rc, in tfm_spm_partition_psa_write()
201 if (fih_not_eq(fih_rc, fih_int_encode(PSA_SUCCESS))) { in tfm_spm_partition_psa_write()
Dpsa_mmiovec_api.c21 fih_int fih_rc = FIH_FAILURE; in tfm_spm_partition_psa_map_invec() local
80 FIH_CALL(tfm_hal_memory_check, fih_rc, in tfm_spm_partition_psa_map_invec()
83 if (fih_not_eq(fih_rc, fih_int_encode(PSA_SUCCESS))) { in tfm_spm_partition_psa_map_invec()
151 fih_int fih_rc = FIH_FAILURE; in tfm_spm_partition_psa_map_outvec() local
209 FIH_CALL(tfm_hal_memory_check, fih_rc, in tfm_spm_partition_psa_map_outvec()
212 if (fih_not_eq(fih_rc, fih_int_encode(PSA_SUCCESS))) { in tfm_spm_partition_psa_map_outvec()
Dagent_api.c28 fih_int fih_rc = FIH_FAILURE; in tfm_spm_agent_psa_call() local
33 FIH_CALL(tfm_hal_memory_check, fih_rc, in tfm_spm_agent_psa_call()
37 if (fih_not_eq(fih_rc, fih_int_encode(PSA_SUCCESS))) { in tfm_spm_agent_psa_call()
Dinterrupt.c47 fih_int fih_rc = FIH_FAILURE; in tfm_flih_prepare_depriv_flih() local
70 FIH_CALL(tfm_hal_activate_boundary, fih_rc, in tfm_flih_prepare_depriv_flih()
97 fih_int fih_rc = FIH_FAILURE; in tfm_flih_return_to_isr() local
104 FIH_CALL(tfm_hal_activate_boundary, fih_rc, in tfm_flih_return_to_isr()
Dtfm_boot_data.c156 fih_int fih_rc = FIH_FAILURE; in tfm_core_get_boot_data_handler() local
158 FIH_CALL(tfm_hal_memory_check, fih_rc, in tfm_core_get_boot_data_handler()
161 if (fih_not_eq(fih_rc, fih_int_encode(PSA_SUCCESS))) { in tfm_core_get_boot_data_handler()
Dbackend_ipc.c324 fih_int fih_rc = FIH_FAILURE; in backend_system_run() local
348 FIH_CALL(tfm_hal_activate_boundary, fih_rc, p_cur_pt->p_ldinf, p_cur_pt->boundary); in backend_system_run()
349 if (fih_not_eq(fih_rc, fih_int_encode(TFM_HAL_SUCCESS))) { in backend_system_run()
448 fih_int fih_rc = FIH_FAILURE; in ipc_schedule() local
479 FIH_CALL(tfm_hal_activate_boundary, fih_rc, in ipc_schedule()
481 if (fih_not_eq(fih_rc, fih_int_encode(TFM_HAL_SUCCESS))) { in ipc_schedule()
/trusted-firmware-m-3.6.0/bl1/bl1_1/shared_lib/pq_crypto/
Dpq_crypto_psa.c62 fih_int fih_rc; in pq_crypto_verify() local
66 FIH_CALL(bl1_otp_read_key, fih_rc, key, key_buf); in pq_crypto_verify()
67 if (fih_not_eq(fih_rc, FIH_SUCCESS)) { in pq_crypto_verify()
74 fih_rc = fih_int_encode_zero_equality(rc); in pq_crypto_verify()
75 if (fih_not_eq(fih_rc, FIH_SUCCESS)) { in pq_crypto_verify()
76 fih_rc = FIH_FAILURE; in pq_crypto_verify()
81 fih_rc = fih_int_encode_zero_equality(rc); in pq_crypto_verify()
85 FIH_RET(fih_rc); in pq_crypto_verify()
93 fih_int fih_rc; in pq_crypto_get_pub_key_hash() local
100 fih_rc = bl1_otp_read_key(key, key_buf); in pq_crypto_get_pub_key_hash()
[all …]
/trusted-firmware-m-3.6.0/platform/ext/target/arm/mps2/an521/
Dtfm_hal_isolation.c222 fih_int fih_rc = FIH_FAILURE; in tfm_hal_verify_static_boundaries() local
225 FIH_CALL(fih_verify_sau_and_idau_cfg, fih_rc); in tfm_hal_verify_static_boundaries()
226 if (fih_not_eq(fih_rc, fih_int_encode(ARM_DRIVER_OK))) { in tfm_hal_verify_static_boundaries()
229 FIH_CALL(fih_verify_mpc_cfg, fih_rc); in tfm_hal_verify_static_boundaries()
230 if (fih_not_eq(fih_rc, fih_int_encode(ARM_DRIVER_OK))) { in tfm_hal_verify_static_boundaries()
233 FIH_CALL(fih_verify_ppc_cfg, fih_rc); in tfm_hal_verify_static_boundaries()
234 if (fih_not_eq(fih_rc, fih_int_encode(ARM_DRIVER_OK))) { in tfm_hal_verify_static_boundaries()
239 FIH_CALL(fih_verify_sau_and_idau_cfg, fih_rc); in tfm_hal_verify_static_boundaries()
240 if (fih_not_eq(fih_rc, fih_int_encode(ARM_DRIVER_OK))) { in tfm_hal_verify_static_boundaries()
243 FIH_CALL(fih_verify_mpc_cfg, fih_rc); in tfm_hal_verify_static_boundaries()
[all …]
Dtfm_hal_platform.c19 fih_int fih_rc = FIH_FAILURE; in tfm_hal_platform_init() local
31 FIH_CALL(init_debug, fih_rc); in tfm_hal_platform_init()
32 if (fih_not_eq(fih_rc, fih_int_encode(TFM_PLAT_ERR_SUCCESS))) { in tfm_hal_platform_init()
/trusted-firmware-m-3.6.0/bl1/bl1_1/lib/
Dimage_otp.c15 fih_int fih_rc; in bl1_read_bl1_2_image() local
21 fih_rc = fih_int_encode_zero_equality(plat_err); in bl1_read_bl1_2_image()
22 if (fih_not_eq(fih_rc, FIH_SUCCESS)) { in bl1_read_bl1_2_image()
23 FIH_RET(fih_rc); in bl1_read_bl1_2_image()
27 fih_rc = fih_int_encode_zero_equality(plat_err); in bl1_read_bl1_2_image()
29 FIH_RET(fih_rc); in bl1_read_bl1_2_image()
Dimage_flash.c20 fih_int fih_rc; in bl1_read_bl1_2_image() local
22 fih_rc = fih_int_encode(FLASH_DEV_NAME.ReadData(BL1_2_IMAGE_FLASH_OFFSET, in bl1_read_bl1_2_image()
26 FIH_RET(fih_rc); in bl1_read_bl1_2_image()
/trusted-firmware-m-3.6.0/platform/ext/target/arm/corstone1000/bl1/
Dbl1_security_cnt.c18 FIH_DECLARE(fih_rc, FIH_FAILURE); in boot_nv_security_counter_init()
20 fih_rc = fih_ret_encode_zero_equality(tfm_plat_init_nv_counter()); in boot_nv_security_counter_init()
22 FIH_RET(fih_rc); in boot_nv_security_counter_init()
27 FIH_DECLARE(fih_rc, FIH_FAILURE); in boot_nv_security_counter_get()
39 fih_rc = fih_ret_encode_zero_equality( in boot_nv_security_counter_get()
45 FIH_RET(fih_rc); in boot_nv_security_counter_get()
Dcc312_rom_crypto.c23 fih_int fih_rc = FIH_FAILURE; in bl1_sha256_init() local
25 fih_rc = fih_int_encode_zero_equality(cc3xx_hash_init(CC3XX_HASH_ALG_SHA256)); in bl1_sha256_init()
26 if(fih_not_eq(fih_rc, FIH_SUCCESS)) { in bl1_sha256_init()
46 fih_int fih_rc = FIH_FAILURE; in bl1_sha256_update() local
48 fih_rc = fih_int_encode_zero_equality(cc3xx_hash_update(data, in bl1_sha256_update()
50 if(fih_not_eq(fih_rc, FIH_SUCCESS)) { in bl1_sha256_update()
62 fih_int fih_rc = FIH_FAILURE; in bl1_sha256_compute() local
68 fih_rc = fih_int_encode_zero_equality(cc3xx_hash_init(CC3XX_HASH_ALG_SHA256)); in bl1_sha256_compute()
69 if(fih_not_eq(fih_rc, FIH_SUCCESS)) { in bl1_sha256_compute()
73 fih_rc = fih_int_encode_zero_equality(cc3xx_hash_update(data, in bl1_sha256_compute()
[all …]
/trusted-firmware-m-3.6.0/bl1/bl1_1/shared_lib/crypto/
Dcrypto_mbedcrypto.c30 fih_int fih_rc; in bl1_sha256_compute() local
41 fih_rc = fih_int_encode_zero_equality(rc); in bl1_sha256_compute()
42 if (fih_not_eq(fih_rc, FIH_SUCCESS)) { in bl1_sha256_compute()
47 fih_rc = fih_int_encode_zero_equality(rc); in bl1_sha256_compute()
48 if (fih_not_eq(fih_rc, FIH_SUCCESS)) { in bl1_sha256_compute()
53 fih_rc = fih_int_encode_zero_equality(rc); in bl1_sha256_compute()
54 if (fih_not_eq(fih_rc, FIH_SUCCESS)) { in bl1_sha256_compute()
60 FIH_RET(fih_rc); in bl1_sha256_compute()
/trusted-firmware-m-3.6.0/bl1/bl1_1/shared_lib/otp/
Dotp_default.c27 fih_int fih_rc; in bl1_otp_read_key() local
33 fih_rc = fih_int_encode_zero_equality(plat_err); in bl1_otp_read_key()
37 fih_rc = fih_int_encode_zero_equality(plat_err); in bl1_otp_read_key()
42 fih_rc = fih_int_encode_zero_equality(plat_err); in bl1_otp_read_key()
46 fih_rc = fih_int_encode_zero_equality(plat_err); in bl1_otp_read_key()
52 FIH_RET(fih_rc); in bl1_otp_read_key()
/trusted-firmware-m-3.6.0/platform/ext/target/arm/rss/common/bl1/
Dcc312_rom_crypto.c24 fih_int fih_rc = FIH_FAILURE; in bl1_sha256_init() local
26 fih_rc = fih_int_encode_zero_equality(cc3xx_hash_init(CC3XX_HASH_ALG_SHA256)); in bl1_sha256_init()
27 if(fih_not_eq(fih_rc, FIH_SUCCESS)) { in bl1_sha256_init()
47 fih_int fih_rc = FIH_FAILURE; in bl1_sha256_update() local
49 fih_rc = fih_int_encode_zero_equality(cc3xx_hash_update(data, in bl1_sha256_update()
51 if(fih_not_eq(fih_rc, FIH_SUCCESS)) { in bl1_sha256_update()
63 fih_int fih_rc = FIH_FAILURE; in bl1_sha256_compute() local
69 fih_rc = fih_int_encode_zero_equality(cc3xx_hash_init(CC3XX_HASH_ALG_SHA256)); in bl1_sha256_compute()
70 if(fih_not_eq(fih_rc, FIH_SUCCESS)) { in bl1_sha256_compute()
74 fih_rc = fih_int_encode_zero_equality(cc3xx_hash_update(data, in bl1_sha256_compute()
[all …]
/trusted-firmware-m-3.6.0/bl2/src/
Dsecurity_cnt.c40 FIH_DECLARE(fih_rc, FIH_FAILURE); in boot_nv_security_counter_init()
42 fih_rc = fih_ret_encode_zero_equality(tfm_plat_init_nv_counter()); in boot_nv_security_counter_init()
44 FIH_RET(fih_rc); in boot_nv_security_counter_init()
50 FIH_DECLARE(fih_rc, FIH_FAILURE); in boot_nv_security_counter_get()
63 fih_rc = fih_ret_encode_zero_equality( in boot_nv_security_counter_get()
69 FIH_RET(fih_rc); in boot_nv_security_counter_get()
/trusted-firmware-m-3.6.0/platform/ext/target/arm/corstone1000/bl2/
Dsecurity_cnt_bl2.c42 FIH_DECLARE(fih_rc, FIH_FAILURE); in boot_nv_security_counter_init()
44 fih_rc = fih_ret_encode_zero_equality(tfm_plat_init_nv_counter()); in boot_nv_security_counter_init()
46 FIH_RET(fih_rc); in boot_nv_security_counter_init()
52 FIH_DECLARE(fih_rc, FIH_FAILURE); in boot_nv_security_counter_get()
65 fih_rc = fih_ret_encode_zero_equality( in boot_nv_security_counter_get()
71 FIH_RET(fih_rc); in boot_nv_security_counter_get()
/trusted-firmware-m-3.6.0/platform/ext/target/nxp/common/
Dtfm_hal_isolation.c106 fih_int fih_rc = FIH_FAILURE; in tfm_hal_set_up_static_boundaries() local
138 FIH_CALL(mpu_armv8m_region_enable, fih_rc, &dev_mpu_s, &isolation_regions[i]); in tfm_hal_set_up_static_boundaries()
139 if (fih_not_eq(fih_rc, fih_int_encode(MPU_ARMV8M_OK))) { in tfm_hal_set_up_static_boundaries()
156 FIH_CALL(mpu_armv8m_region_enable, fih_rc, &dev_mpu_s, &region_cfg); in tfm_hal_set_up_static_boundaries()
157 if (fih_not_eq(fih_rc, fih_int_encode(MPU_ARMV8M_OK))) { in tfm_hal_set_up_static_boundaries()
178 FIH_CALL(mpu_armv8m_region_enable, fih_rc, &dev_mpu_s, &region_cfg); in tfm_hal_set_up_static_boundaries()
179 if (fih_not_eq(fih_rc, fih_int_encode(MPU_ARMV8M_OK))) { in tfm_hal_set_up_static_boundaries()
200 FIH_CALL(mpu_armv8m_region_enable, fih_rc, &dev_mpu_s, &region_cfg); in tfm_hal_set_up_static_boundaries()
201 if (fih_not_eq(fih_rc, fih_int_encode(MPU_ARMV8M_OK))) { in tfm_hal_set_up_static_boundaries()
222 FIH_CALL(mpu_armv8m_region_enable, fih_rc, &dev_mpu_s, &region_cfg); in tfm_hal_set_up_static_boundaries()
[all …]
/trusted-firmware-m-3.6.0/bl1/bl1_2/lib/
Dimage.c35 fih_int fih_rc; in bl1_image_copy_to_sram() local
38 fih_rc = fih_int_encode(FLASH_DEV_NAME.ReadData(flash_offset, out, in bl1_image_copy_to_sram()
41 FIH_RET(fih_rc); in bl1_image_copy_to_sram()
/trusted-firmware-m-3.6.0/bl2/ext/mcuboot/
Dbl2_main.c96 fih_ret fih_rc = FIH_FAILURE; in main() local
132 FIH_CALL(boot_nv_security_counter_init, fih_rc); in main()
133 if (FIH_NOT_EQ(fih_rc, FIH_SUCCESS)) { in main()
176 FIH_CALL(boot_go_for_image_id, fih_rc, &rsp, image_id); in main()
177 if (FIH_NOT_EQ(fih_rc, FIH_SUCCESS)) { in main()

12