Home
last modified time | relevance | path

Searched refs:PSA_SUCCESS (Results 1 – 25 of 123) sorted by relevance

12345

/trusted-firmware-m-3.7.0/secure_fw/partitions/internal_trusted_storage/flash_fs/
Dits_flash_fs.c51 != PSA_SUCCESS) { in its_flash_fs_file_write_aligned_data()
103 psa_status_t ret = PSA_SUCCESS; in its_flash_fs_validate_config()
153 if (err != PSA_SUCCESS) { in its_flash_fs_init_ctx()
164 return PSA_SUCCESS; in its_flash_fs_init_ctx()
174 if (err != PSA_SUCCESS) { in its_flash_fs_prepare()
183 if (err == PSA_SUCCESS) { in its_flash_fs_prepare()
189 return PSA_SUCCESS; in its_flash_fs_prepare()
208 if (err != PSA_SUCCESS) { in its_flash_fs_file_get_info()
220 return PSA_SUCCESS; in its_flash_fs_file_get_info()
255 if (err == PSA_SUCCESS) { in its_flash_fs_file_write()
[all …]
Dits_flash_fs_mblock.c243 if (its_utils_validate_fid(file_meta->id) == PSA_SUCCESS) { in its_mblock_validate_file_meta()
269 if (err != PSA_SUCCESS) { in its_mblock_validate_file_meta()
274 return PSA_SUCCESS; in its_mblock_validate_file_meta()
305 if (err != PSA_SUCCESS) { in its_mblock_validate_block_meta()
323 return PSA_SUCCESS; in its_mblock_validate_block_meta()
352 if (err != PSA_SUCCESS) { in its_mblock_validate_block_meta_comp()
372 return PSA_SUCCESS; in its_mblock_validate_block_meta_comp()
408 if (err != PSA_SUCCESS) { in its_mblock_calculate_metadata_xor()
424 if (err != PSA_SUCCESS) { in its_mblock_calculate_metadata_xor()
434 return PSA_SUCCESS; in its_mblock_calculate_metadata_xor()
[all …]
/trusted-firmware-m-3.7.0/platform/ext/accelerator/cc312/psa-adac/
Dadac_crypto_cc312_hash.c27 return chk == 0 ? PSA_SUCCESS : PSA_ERROR_INVALID_SIGNATURE; in hash_check()
60 PSA_SUCCESS : PSA_ERROR_GENERIC_ERROR; in psa_adac_hash_multiple()
62 for (size_t i = 0; (i < input_count) && (status == PSA_SUCCESS); i++) { in psa_adac_hash_multiple()
64 PSA_SUCCESS : PSA_ERROR_GENERIC_ERROR; in psa_adac_hash_multiple()
66 if (status == PSA_SUCCESS) { in psa_adac_hash_multiple()
68 PSA_SUCCESS : PSA_ERROR_GENERIC_ERROR; in psa_adac_hash_multiple()
70 if (status == PSA_SUCCESS) { in psa_adac_hash_multiple()
83 PSA_SUCCESS : PSA_ERROR_GENERIC_ERROR; in psa_adac_hash_multiple()
84 for (size_t i = 0; (i < input_count) && (status == PSA_SUCCESS); i++) { in psa_adac_hash_multiple()
86 PSA_SUCCESS : PSA_ERROR_GENERIC_ERROR; in psa_adac_hash_multiple()
[all …]
/trusted-firmware-m-3.7.0/secure_fw/partitions/internal_trusted_storage/
Dtfm_internal_trusted_storage.c109 return PSA_SUCCESS;
131 if (status != PSA_SUCCESS) {
136 return PSA_SUCCESS;
156 if (status != PSA_SUCCESS) {
169 if (status != PSA_SUCCESS) {
183 return PSA_SUCCESS;
234 return PSA_SUCCESS;
269 return PSA_SUCCESS;
275 psa_status_t status = PSA_SUCCESS;
279 if (status != PSA_SUCCESS) {
[all …]
/trusted-firmware-m-3.7.0/secure_fw/partitions/protected_storage/crypto/
Dps_crypto_interface.c57 return PSA_SUCCESS; in ps_crypto_init()
77 if (status != PSA_SUCCESS) { in ps_crypto_setkey()
84 if (status != PSA_SUCCESS) { in ps_crypto_setkey()
92 if (status != PSA_SUCCESS) { in ps_crypto_setkey()
98 if (status != PSA_SUCCESS) { in ps_crypto_setkey()
104 if (status != PSA_SUCCESS) { in ps_crypto_setkey()
108 return PSA_SUCCESS; in ps_crypto_setkey()
125 if (status != PSA_SUCCESS) { in ps_crypto_destroykey()
129 return PSA_SUCCESS; in ps_crypto_destroykey()
188 return PSA_SUCCESS; in ps_crypto_get_iv()
[all …]
/trusted-firmware-m-3.7.0/secure_fw/partitions/protected_storage/
Dps_object_table.c238 if (err != PSA_SUCCESS) { in ps_object_table_fs_read_table()
248 if (err != PSA_SUCCESS) { in ps_object_table_fs_read_table()
275 if (err != PSA_SUCCESS) { in ps_object_table_fs_write_table()
283 return PSA_SUCCESS; in ps_object_table_fs_write_table()
302 if (err != PSA_SUCCESS) { in ps_object_table_align_nv_counters()
308 if (err != PSA_SUCCESS) { in ps_object_table_align_nv_counters()
315 if (err != PSA_SUCCESS) { in ps_object_table_align_nv_counters()
321 if (err != PSA_SUCCESS) { in ps_object_table_align_nv_counters()
326 return PSA_SUCCESS; in ps_object_table_align_nv_counters()
349 if (err != PSA_SUCCESS) { in ps_object_table_nvc_generate_auth_tag()
[all …]
Dps_encrypted_object.c43 return PSA_SUCCESS; in fill_key_label()
69 if (err != PSA_SUCCESS) { in ps_object_auth_decrypt()
74 if (err != PSA_SUCCESS) { in ps_object_auth_decrypt()
91 if (err != PSA_SUCCESS || out_len != cur_size) { in ps_object_auth_decrypt()
120 if (err != PSA_SUCCESS) { in ps_object_auth_encrypt()
125 if (err != PSA_SUCCESS) { in ps_object_auth_encrypt()
131 if (err != PSA_SUCCESS) { in ps_object_auth_encrypt()
148 if (err != PSA_SUCCESS || out_len != cur_size) { in ps_object_auth_encrypt()
172 if (err != PSA_SUCCESS) { in ps_encrypted_object_read()
185 if (err != PSA_SUCCESS) { in ps_encrypted_object_read()
[all …]
Dps_object_system.c73 if (err != PSA_SUCCESS) { in ps_remove_old_data()
106 if (err != PSA_SUCCESS) { in ps_read_object()
125 if (err != PSA_SUCCESS) { in ps_read_object()
130 return PSA_SUCCESS; in ps_read_object()
185 if (err != PSA_SUCCESS) { in ps_object_read()
199 if (err != PSA_SUCCESS) { in ps_object_read()
246 if (err == PSA_SUCCESS) { in ps_object_create()
257 if (err != PSA_SUCCESS) { in ps_object_create()
288 if (err != PSA_SUCCESS) { in ps_object_create()
298 if (err != PSA_SUCCESS) { in ps_object_create()
[all …]
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/
Dcc3xx_psa_aead.c70 return PSA_SUCCESS; in check_alg()
90 return PSA_SUCCESS; in check_alg()
116 if (ret != PSA_SUCCESS) { in aead_setup()
141 != PSA_SUCCESS) { in aead_setup()
151 != PSA_SUCCESS) { in aead_setup()
171 != PSA_SUCCESS) { in aead_setup()
181 != PSA_SUCCESS) { in aead_setup()
208 if (ret != PSA_SUCCESS) { in aead_setup()
277 if (status != PSA_SUCCESS) { in aead_one_shot_with_multipart()
284 if (status != PSA_SUCCESS) { in aead_one_shot_with_multipart()
[all …]
Dcc3xx_psa_cipher.c41 return PSA_SUCCESS; in add_pkcs_padding()
116 != PSA_SUCCESS) { in cipher_setup()
126 != PSA_SUCCESS) { in cipher_setup()
144 != PSA_SUCCESS) { in cipher_setup()
227 if (ret == PSA_SUCCESS) { in cc3xx_cipher_set_iv()
253 ret = PSA_SUCCESS; in cc3xx_cipher_set_iv()
313 return PSA_SUCCESS; in cc3xx_cipher_update()
332 != PSA_SUCCESS) { in cc3xx_cipher_update()
370 != PSA_SUCCESS) { in cc3xx_cipher_update()
387 != PSA_SUCCESS) { in cc3xx_cipher_update()
[all …]
Dcc3xx_internal_gcm.c81 return PSA_SUCCESS; in gcm_setkey()
112 return PSA_SUCCESS; in gcm_calc_h()
193 if (status != PSA_SUCCESS) { in gcm_init()
277 return PSA_SUCCESS; in gcm_process_j0()
301 return PSA_SUCCESS; in gcm_process_aad()
323 return PSA_SUCCESS; in gcm_process_aad()
338 return PSA_SUCCESS; in gcm_process_cipher()
357 return PSA_SUCCESS; in gcm_process_cipher()
394 return PSA_SUCCESS; in gcm_process_lenA_lenC()
437 status = PSA_SUCCESS; in gcm_finish()
[all …]
Dcc3xx_psa_mac.c68 return PSA_SUCCESS; in cmac_init()
102 return PSA_SUCCESS; in cmac_setkey()
118 if (status != PSA_SUCCESS) { in cmac_setup()
123 if (status != PSA_SUCCESS) { in cmac_setup()
130 if (status != PSA_SUCCESS) { in cmac_setup()
134 return PSA_SUCCESS; in cmac_setup()
210 return PSA_SUCCESS; in cmac_update()
247 return PSA_SUCCESS; in cmac_finish()
297 if (status != PSA_SUCCESS) { in hmac_setup()
316 if (status != PSA_SUCCESS) { in hmac_setup()
[all …]
Dcc3xx_psa_hash.c119 return PSA_SUCCESS; in hash_update()
170 return PSA_SUCCESS; in cc3xx_hash_setup()
185 return PSA_SUCCESS; in cc3xx_hash_clone()
202 return PSA_SUCCESS; in cc3xx_hash_update()
217 if (status != PSA_SUCCESS) { in cc3xx_hash_update()
224 if (status != PSA_SUCCESS) { in cc3xx_hash_update()
310 return PSA_SUCCESS; in cc3xx_hash_finish()
318 return PSA_SUCCESS; in cc3xx_hash_abort()
322 return PSA_SUCCESS; in cc3xx_hash_abort()
334 if (status != PSA_SUCCESS) { in cc3xx_hash_compute()
[all …]
Dcc3xx_psa_key_agreement.c53 != PSA_SUCCESS) { in cc3xx_key_agreement()
62 != PSA_SUCCESS) { in cc3xx_key_agreement()
72 != PSA_SUCCESS) { in cc3xx_key_agreement()
82 != PSA_SUCCESS) { in cc3xx_key_agreement()
91 != PSA_SUCCESS) { in cc3xx_key_agreement()
Dcc3xx_internal_chacha20.c43 return PSA_SUCCESS; in chacha_block()
92 return PSA_SUCCESS; in cc3xx_chacha20_setkey()
105 return PSA_SUCCESS; in cc3xx_chacha20_set_nonce()
122 return PSA_SUCCESS; in cc3xx_chacha20_set_counter()
142 return PSA_SUCCESS; in cc3xx_chacha20_update()
165 return PSA_SUCCESS; in cc3xx_chacha20_update()
174 if (status != PSA_SUCCESS) { in cc3xx_chacha20_update()
189 if (status != PSA_SUCCESS) { in cc3xx_chacha20_update()
223 return PSA_SUCCESS; in cc3xx_chacha20_finish()
Dcc3xx_internal_chacha20_poly1305.c58 if (status != PSA_SUCCESS) { in chacha20_poly1305_crypt_and_tag()
63 if (status != PSA_SUCCESS) { in chacha20_poly1305_crypt_and_tag()
68 if (status != PSA_SUCCESS) { in chacha20_poly1305_crypt_and_tag()
79 if (status != PSA_SUCCESS) { in chacha20_poly1305_crypt_and_tag()
87 if (status != PSA_SUCCESS) { in chacha20_poly1305_crypt_and_tag()
105 status = PSA_SUCCESS; in chacha20_poly1305_crypt_and_tag()
156 if (status != PSA_SUCCESS) { in cc3xx_chacha20_poly1305_gen_otk()
169 if (status != PSA_SUCCESS) { in cc3xx_chacha20_poly1305_gen_otk()
180 return PSA_SUCCESS; in cc3xx_chacha20_poly1305_gen_otk()
199 return PSA_SUCCESS; in cc3xx_chacha20_poly1305_set_otk()
[all …]
/trusted-firmware-m-3.7.0/platform/ext/accelerator/cc312/cc312-rom/psa_driver_api/src/
Dcc3xx_psa_hash.c75 return PSA_SUCCESS; in cc3xx_hash_setup()
86 return PSA_SUCCESS; in cc3xx_hash_clone()
100 return PSA_SUCCESS; in cc3xx_hash_update()
118 return PSA_SUCCESS; in cc3xx_hash_update()
147 return PSA_SUCCESS; in cc3xx_hash_finish()
153 return PSA_SUCCESS; in cc3xx_hash_abort()
167 if (status != PSA_SUCCESS) { in cc3xx_hash_compute()
171 if (status != PSA_SUCCESS) { in cc3xx_hash_compute()
175 if (status != PSA_SUCCESS) { in cc3xx_hash_compute()
181 if (status == PSA_SUCCESS) { in cc3xx_hash_compute()
/trusted-firmware-m-3.7.0/secure_fw/partitions/firmware_update/
Dtfm_fwu_req_mngr.c80 if (status != PSA_SUCCESS) { in tfm_fwu_start()
91 if (status != PSA_SUCCESS) { in tfm_fwu_start()
97 return PSA_SUCCESS; in tfm_fwu_start()
105 psa_status_t status = PSA_SUCCESS; in tfm_fwu_write()
156 if (status != PSA_SUCCESS) { in tfm_fwu_write()
189 return PSA_SUCCESS; in tfm_fwu_finish()
213 if (status != PSA_SUCCESS) { in tfm_fwu_install()
238 if (status == PSA_SUCCESS) { in tfm_fwu_install()
293 if (result == PSA_SUCCESS) { in tfm_fwu_query()
304 return PSA_SUCCESS; in tfm_fwu_request_reboot()
[all …]
/trusted-firmware-m-3.7.0/secure_fw/spm/core/
Dpsa_connection_api.c30 if (status != PSA_SUCCESS) { in tfm_spm_client_psa_connect()
63 if (tfm_spm_check_authorization(sid, service, ns_caller) != PSA_SUCCESS) { in spm_psa_connect_client_id_associated()
71 if (tfm_spm_check_client_version(service, version) != PSA_SUCCESS) { in spm_psa_connect_client_id_associated()
91 return PSA_SUCCESS; in spm_psa_connect_client_id_associated()
107 return PSA_SUCCESS; in spm_psa_close_client_id_associated()
120 if (status != PSA_SUCCESS) { in spm_psa_close_client_id_associated()
146 return PSA_SUCCESS; in tfm_spm_partition_psa_set_rhandle()
/trusted-firmware-m-3.7.0/platform/ext/target/arm/mps4/corstone315/
Dcrypto_keys.c78 if (status != PSA_SUCCESS) { in tfm_plat_get_iak()
83 if (status != PSA_SUCCESS) { in tfm_plat_get_iak()
89 if (status != PSA_SUCCESS) { in tfm_plat_get_iak()
95 if (status != PSA_SUCCESS) { in tfm_plat_get_iak()
115 if (status != PSA_SUCCESS) { in tfm_plat_get_iak()
120 if (status != PSA_SUCCESS) { in tfm_plat_get_iak()
125 if (status != PSA_SUCCESS) { in tfm_plat_get_iak()
130 if (status != PSA_SUCCESS) { in tfm_plat_get_iak()
135 if (status != PSA_SUCCESS) { in tfm_plat_get_iak()
139 return PSA_SUCCESS; in tfm_plat_get_iak()
/trusted-firmware-m-3.7.0/secure_fw/partitions/crypto/
Dcrypto_init.c57 return PSA_SUCCESS; in tfm_crypto_get_caller_id()
87 return PSA_SUCCESS; in tfm_crypto_init_iovecs()
104 return PSA_SUCCESS; in tfm_crypto_set_scratch_owner()
110 return PSA_SUCCESS; in tfm_crypto_get_scratch_owner()
128 return PSA_SUCCESS; in tfm_crypto_alloc_scratch()
163 if (status != PSA_SUCCESS) { in tfm_crypto_init_iovecs()
177 if (status != PSA_SUCCESS) { in tfm_crypto_init_iovecs()
186 return PSA_SUCCESS; in tfm_crypto_init_iovecs()
192 psa_status_t status = PSA_SUCCESS; in tfm_crypto_call_srv()
222 if (status != PSA_SUCCESS) { in tfm_crypto_call_srv()
[all …]
Dcrypto_cipher.c50 if (status != PSA_SUCCESS) { in tfm_crypto_cipher_interface()
68 if (status != PSA_SUCCESS) { in tfm_crypto_cipher_interface()
98 if (status != PSA_SUCCESS) { in tfm_crypto_cipher_interface()
109 return PSA_SUCCESS; in tfm_crypto_cipher_interface()
121 if (status != PSA_SUCCESS) { in tfm_crypto_cipher_interface()
136 if (status != PSA_SUCCESS) { in tfm_crypto_cipher_interface()
144 if (status != PSA_SUCCESS) { in tfm_crypto_cipher_interface()
158 if (status != PSA_SUCCESS) { in tfm_crypto_cipher_interface()
170 if (status == PSA_SUCCESS) { in tfm_crypto_cipher_interface()
Dcrypto_alloc.c78 return PSA_SUCCESS; in tfm_crypto_init_alloc()
101 if (status != PSA_SUCCESS) { in tfm_crypto_operation_alloc()
112 return PSA_SUCCESS; in tfm_crypto_operation_alloc()
134 if (status != PSA_SUCCESS) { in tfm_crypto_operation_release()
146 return PSA_SUCCESS; in tfm_crypto_operation_release()
169 if (status != PSA_SUCCESS) { in tfm_crypto_operation_lookup()
177 return PSA_SUCCESS; in tfm_crypto_operation_lookup()
Dcrypto_hash.c44 if (status != PSA_SUCCESS) { in tfm_crypto_hash_interface()
88 if (status != PSA_SUCCESS) { in tfm_crypto_hash_interface()
99 return PSA_SUCCESS; in tfm_crypto_hash_interface()
108 if (status != PSA_SUCCESS) { in tfm_crypto_hash_interface()
126 if (status == PSA_SUCCESS) { in tfm_crypto_hash_interface()
139 if (status == PSA_SUCCESS) { in tfm_crypto_hash_interface()
159 if (status != PSA_SUCCESS) { in tfm_crypto_hash_interface()
163 if (status != PSA_SUCCESS) { in tfm_crypto_hash_interface()
/trusted-firmware-m-3.7.0/bl2/src/
Dthin_psa_crypto_core.c124 return PSA_SUCCESS; in get_builtin_public_key()
142 return PSA_SUCCESS; in psa_hash_abort()
168 if (status != PSA_SUCCESS) { in psa_hash_setup()
187 return PSA_SUCCESS; in psa_hash_update()
192 if (status != PSA_SUCCESS) { in psa_hash_update()
276 return PSA_SUCCESS; in psa_import_key()
284 return PSA_SUCCESS; in psa_get_key_attributes()
308 return PSA_SUCCESS; in psa_destroy_key()
328 if (status != PSA_SUCCESS) { in psa_verify_hash()
346 return PSA_SUCCESS; in mbedtls_to_psa_error()
[all …]

12345