Home
last modified time | relevance | path

Searched refs:PSA_SUCCESS (Results 1 - 25 of 109) sorted by relevance

12345

/third_party/mbedtls/programs/psa/
H A Dcrypto_examples.c81 ASSERT_STATUS(status, PSA_SUCCESS); in cipher_operation()
89 ASSERT_STATUS(status, PSA_SUCCESS); in cipher_operation()
113 ASSERT_STATUS(status, PSA_SUCCESS); in cipher_encrypt()
116 ASSERT_STATUS(status, PSA_SUCCESS); in cipher_encrypt()
120 ASSERT_STATUS(status, PSA_SUCCESS); in cipher_encrypt()
143 ASSERT_STATUS(status, PSA_SUCCESS); in cipher_decrypt()
146 ASSERT_STATUS(status, PSA_SUCCESS); in cipher_decrypt()
150 ASSERT_STATUS(status, PSA_SUCCESS); in cipher_decrypt()
177 ASSERT_STATUS(status, PSA_SUCCESS); in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block()
186 ASSERT_STATUS(status, PSA_SUCCESS); in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block()
[all...]
H A Dpsa_hash.c70 if (status != PSA_SUCCESS) { in main()
80 } else if (status != PSA_SUCCESS) { in main()
86 if (status != PSA_SUCCESS) { in main()
92 if (status != PSA_SUCCESS) { in main()
98 if (status != PSA_SUCCESS) { in main()
113 if (status != PSA_SUCCESS) { in main()
129 if (status != PSA_SUCCESS) { in main()
H A Dhmac_demo.c90 if (status != PSA_SUCCESS) \
124 if (status != PSA_SUCCESS) { in hmac_demo()
156 psa_status_t status = PSA_SUCCESS; in main()
168 return status == PSA_SUCCESS ? EXIT_SUCCESS : EXIT_FAILURE; in main()
/third_party/mbedtls/library/
H A Dpsa_crypto_slot_management.c98 * \retval #PSA_SUCCESS
121 status = PSA_SUCCESS; in psa_get_and_lock_key_slot_in_memory()
139 PSA_SUCCESS : PSA_ERROR_DOES_NOT_EXIST; in psa_get_and_lock_key_slot_in_memory()
142 if (status == PSA_SUCCESS) { in psa_get_and_lock_key_slot_in_memory()
144 if (status == PSA_SUCCESS) { in psa_get_and_lock_key_slot_in_memory()
160 return PSA_SUCCESS; in psa_initialize_key_slots()
217 if (status != PSA_SUCCESS) { in psa_reserve_free_key_slot()
225 if (status != PSA_SUCCESS) { in psa_reserve_free_key_slot()
233 return PSA_SUCCESS; in psa_reserve_free_key_slot()
247 psa_status_t status = PSA_SUCCESS; in psa_load_persistent_key_into_slot()
[all...]
H A Dlmots.c131 if (status != PSA_SUCCESS) { in create_digit_array_with_checksum()
137 if (status != PSA_SUCCESS) { in create_digit_array_with_checksum()
143 if (status != PSA_SUCCESS) { in create_digit_array_with_checksum()
148 if (status != PSA_SUCCESS) { in create_digit_array_with_checksum()
154 if (status != PSA_SUCCESS) { in create_digit_array_with_checksum()
159 if (status != PSA_SUCCESS) { in create_digit_array_with_checksum()
166 if (status != PSA_SUCCESS) { in create_digit_array_with_checksum()
242 if (status != PSA_SUCCESS) { in hash_digit_array()
249 if (status != PSA_SUCCESS) { in hash_digit_array()
256 if (status != PSA_SUCCESS) { in hash_digit_array()
[all...]
H A Dpsa_crypto.c201 if (status != PSA_SUCCESS) { \
243 if (status != PSA_SUCCESS) { \
261 if (local_output_status != PSA_SUCCESS) { \
340 return PSA_SUCCESS; in mbedtls_to_psa_error()
601 if (status == PSA_SUCCESS) { in psa_wipe_tag_output_buffer()
662 return PSA_SUCCESS; in psa_validate_unstructured_key_bit_size()
674 * \retval #PSA_SUCCESS
685 return PSA_SUCCESS; in psa_mac_key_can_do()
697 return PSA_SUCCESS; in psa_mac_key_can_do()
718 return PSA_SUCCESS; in psa_allocate_buffer_to_slot()
[all...]
H A Dpsa_crypto_storage.c70 * \retval #PSA_SUCCESS \emptydescription
85 if (status != PSA_SUCCESS) { in psa_crypto_storage_load()
122 * \retval #PSA_SUCCESS \emptydescription
141 if (status != PSA_SUCCESS) { in psa_crypto_storage_store()
146 if (status != PSA_SUCCESS) { in psa_crypto_storage_store()
156 if (status != PSA_SUCCESS) { in psa_crypto_storage_store()
174 return PSA_SUCCESS; in psa_destroy_persistent_key()
177 if (psa_its_remove(data_identifier) != PSA_SUCCESS) { in psa_destroy_persistent_key()
186 return PSA_SUCCESS; in psa_destroy_persistent_key()
196 * \retval #PSA_SUCCESS \emptydescriptio
[all...]
H A Dpsa_crypto_ecp.c50 return PSA_SUCCESS; in check_ecc_parameters()
53 return PSA_SUCCESS; in check_ecc_parameters()
62 return PSA_SUCCESS; in check_ecc_parameters()
70 return PSA_SUCCESS; in check_ecc_parameters()
73 return PSA_SUCCESS; in check_ecc_parameters()
82 return PSA_SUCCESS; in check_ecc_parameters()
141 if (status != PSA_SUCCESS) { in mbedtls_psa_ecp_load_representation()
155 if (status != PSA_SUCCESS) { in mbedtls_psa_ecp_load_representation()
166 if (status != PSA_SUCCESS) { in mbedtls_psa_ecp_load_representation()
173 if (status != PSA_SUCCESS) { in mbedtls_psa_ecp_load_representation()
[all...]
H A Dpsa_crypto_mac.c64 if (status != PSA_SUCCESS) { in psa_hmac_setup_internal()
91 if (status != PSA_SUCCESS) { in psa_hmac_setup_internal()
123 if (status != PSA_SUCCESS) { in psa_hmac_finish_internal()
129 if (status != PSA_SUCCESS) { in psa_hmac_finish_internal()
134 if (status != PSA_SUCCESS) { in psa_hmac_finish_internal()
139 if (status != PSA_SUCCESS) { in psa_hmac_finish_internal()
144 if (status != PSA_SUCCESS) { in psa_hmac_finish_internal()
213 status = PSA_SUCCESS; in mac_init()
220 status = PSA_SUCCESS; in mac_init()
228 if (status != PSA_SUCCESS) { in mac_init()
[all...]
H A Dpsa_crypto_cipher.c93 return PSA_SUCCESS; in mbedtls_cipher_validate_values()
103 return PSA_SUCCESS; in mbedtls_cipher_validate_values()
119 return PSA_SUCCESS; in mbedtls_cipher_validate_values()
269 if (status != PSA_SUCCESS) { in mbedtls_cipher_info_from_psa()
417 * \return #PSA_SUCCESS or an error from a hardware accelerator
432 status = PSA_SUCCESS; in psa_cipher_update_ecb()
457 if (status != PSA_SUCCESS) { in psa_cipher_update_ecb()
474 if (status != PSA_SUCCESS) { in psa_cipher_update_ecb()
492 status = PSA_SUCCESS; in psa_cipher_update_ecb()
538 status = PSA_SUCCESS; in mbedtls_psa_cipher_update()
[all...]
H A Dpsa_crypto_pake.c147 return PSA_SUCCESS; in psa_pake_ecjpake_setup()
165 if (status != PSA_SUCCESS) { in mbedtls_psa_pake_setup()
170 if (status != PSA_SUCCESS) { in mbedtls_psa_pake_setup()
175 if (status != PSA_SUCCESS) { in mbedtls_psa_pake_setup()
180 if (status != PSA_SUCCESS) { in mbedtls_psa_pake_setup()
204 if (status != PSA_SUCCESS) { in mbedtls_psa_pake_setup()
210 if (status != PSA_SUCCESS) { in mbedtls_psa_pake_setup()
216 if (status != PSA_SUCCESS) { in mbedtls_psa_pake_setup()
256 if (status != PSA_SUCCESS) { in mbedtls_psa_pake_setup()
263 return PSA_SUCCESS; in mbedtls_psa_pake_setup()
[all...]
H A Dpsa_crypto_aead.c41 if (status != PSA_SUCCESS) { in psa_aead_setup()
60 if (status != PSA_SUCCESS) { in psa_aead_setup()
80 if (status != PSA_SUCCESS) { in psa_aead_setup()
98 if (status != PSA_SUCCESS) { in psa_aead_setup()
114 return PSA_SUCCESS; in psa_aead_setup()
133 if (status != PSA_SUCCESS) { in mbedtls_psa_aead_encrypt()
196 if (status == PSA_SUCCESS) { in mbedtls_psa_aead_encrypt()
226 return PSA_SUCCESS; in psa_aead_unpadded_locate_tag()
245 if (status != PSA_SUCCESS) { in mbedtls_psa_aead_decrypt()
252 if (status != PSA_SUCCESS) { in mbedtls_psa_aead_decrypt()
[all...]
H A Dpsa_crypto_rsa.c50 if (status == PSA_SUCCESS) { in psa_check_rsa_key_byte_aligned()
78 if (status != PSA_SUCCESS) { in mbedtls_psa_rsa_load_representation()
91 if (status != PSA_SUCCESS) { in mbedtls_psa_rsa_load_representation()
123 if (status != PSA_SUCCESS) { in mbedtls_psa_rsa_import_key()
187 return PSA_SUCCESS; in mbedtls_psa_rsa_export_key()
200 if (status != PSA_SUCCESS) { in mbedtls_psa_rsa_export_public_key()
239 return PSA_SUCCESS; in psa_rsa_read_exponent()
255 if (status != PSA_SUCCESS) { in mbedtls_psa_rsa_generate_key()
314 return PSA_SUCCESS; in psa_rsa_decode_md_type()
332 if (status != PSA_SUCCESS) { in mbedtls_psa_rsa_sign_hash()
[all...]
H A Dpsa_crypto_se.c134 return PSA_SUCCESS; in psa_get_se_driver_its_file_uid()
145 if (status != PSA_SUCCESS) { in psa_load_se_persistent_data()
169 if (status != PSA_SUCCESS) { in psa_save_se_persistent_data()
212 if (psa_get_key_slot_number(attributes, slot_number) == PSA_SUCCESS) { in psa_find_se_slot_for_key()
268 return status == PSA_SUCCESS ? storage_status : status; in psa_destroy_se_key()
285 if (status != PSA_SUCCESS) { in psa_init_all_se_drivers()
289 if (status != PSA_SUCCESS) { in psa_init_all_se_drivers()
294 return PSA_SUCCESS; in psa_init_all_se_drivers()
356 if (status != PSA_SUCCESS && status != PSA_ERROR_DOES_NOT_EXIST) { in psa_register_se_driver()
361 return PSA_SUCCESS; in psa_register_se_driver()
[all...]
H A Dpsa_crypto_ffdh.c134 return PSA_SUCCESS; in mbedtls_psa_ffdh_set_prime_generator()
164 return PSA_SUCCESS; in mbedtls_psa_ffdh_export_public_key()
174 if (status != PSA_SUCCESS) { in mbedtls_psa_ffdh_export_public_key()
191 if (status == PSA_SUCCESS && ret != 0) { in mbedtls_psa_ffdh_export_public_key()
213 if (status != PSA_SUCCESS) { in mbedtls_psa_ffdh_generate_key()
228 if (status == PSA_SUCCESS && ret != 0) { in mbedtls_psa_ffdh_generate_key()
252 return PSA_SUCCESS; in mbedtls_psa_ffdh_import_key()
288 if (status != PSA_SUCCESS) { in mbedtls_psa_ffdh_key_agreement()
313 if (status == PSA_SUCCESS && ret != 0) { in mbedtls_psa_ffdh_key_agreement()
H A Dssl_cookie.c127 &ctx->psa_hmac_key)) != PSA_SUCCESS) { in mbedtls_ssl_cookie_setup()
216 if (status != PSA_SUCCESS) { in mbedtls_ssl_cookie_write()
222 if (status != PSA_SUCCESS) { in mbedtls_ssl_cookie_write()
228 if (status != PSA_SUCCESS) { in mbedtls_ssl_cookie_write()
235 if (status != PSA_SUCCESS) { in mbedtls_ssl_cookie_write()
264 if (status != PSA_SUCCESS) { in mbedtls_ssl_cookie_write()
300 if (status != PSA_SUCCESS) { in mbedtls_ssl_cookie_check()
306 if (status != PSA_SUCCESS) { in mbedtls_ssl_cookie_check()
313 if (status != PSA_SUCCESS) { in mbedtls_ssl_cookie_check()
320 if (status != PSA_SUCCESS) { in mbedtls_ssl_cookie_check()
[all...]
H A Dpsa_its_file.c104 return PSA_SUCCESS; in psa_its_read_file()
131 if (status != PSA_SUCCESS) { in psa_its_get()
163 status = PSA_SUCCESS; in psa_its_get()
215 status = PSA_SUCCESS; in psa_its_set()
220 if (status == PSA_SUCCESS && ret != 0) { in psa_its_set()
224 if (status == PSA_SUCCESS) { in psa_its_set()
251 return PSA_SUCCESS; in psa_its_remove()
H A Dpk_wrap.c108 if (status != PSA_SUCCESS) { in rsa_verify_wrap()
115 if (status != PSA_SUCCESS) { in rsa_verify_wrap()
123 if (ret == 0 && status != PSA_SUCCESS) { in rsa_verify_wrap()
206 if (status != PSA_SUCCESS) { in mbedtls_pk_psa_rsa_sign_ext()
212 if (status != PSA_SUCCESS) { in mbedtls_pk_psa_rsa_sign_ext()
222 if (ret == 0 && status != PSA_SUCCESS) { in mbedtls_pk_psa_rsa_sign_ext()
319 if (status != PSA_SUCCESS) { in rsa_decrypt_wrap()
328 if (status != PSA_SUCCESS) { in rsa_decrypt_wrap()
338 if (ret == 0 && status != PSA_SUCCESS) { in rsa_decrypt_wrap()
402 if (status != PSA_SUCCESS) { in rsa_encrypt_wrap()
[all...]
/third_party/mbedtls/tests/src/drivers/
H A Dtest_driver_mac.c35 if (mbedtls_test_driver_mac_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_mac_compute()
79 if (mbedtls_test_driver_mac_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_mac_sign_setup()
116 if (mbedtls_test_driver_mac_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_mac_verify_setup()
151 if (mbedtls_test_driver_mac_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_mac_update()
183 if (mbedtls_test_driver_mac_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_mac_sign_finish()
215 if (mbedtls_test_driver_mac_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_mac_verify_finish()
244 if (mbedtls_test_driver_mac_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_mac_abort()
277 if (mbedtls_test_driver_mac_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_opaque_mac_compute()
305 if (mbedtls_test_driver_mac_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_opaque_mac_sign_setup()
329 if (mbedtls_test_driver_mac_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_opaque_mac_verify_setup()
[all...]
H A Dtest_driver_key_management.c61 if (status != PSA_SUCCESS) { in mbedtls_test_transparent_init()
67 return PSA_SUCCESS; in mbedtls_test_transparent_init()
81 return PSA_SUCCESS; in mbedtls_test_opaque_init()
150 return PSA_SUCCESS; in mbedtls_test_opaque_wrap_key()
188 return PSA_SUCCESS; in mbedtls_test_opaque_unwrap_key()
197 if (mbedtls_test_driver_key_management_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_generate_key()
209 return PSA_SUCCESS; in mbedtls_test_transparent_generate_key()
278 if (mbedtls_test_driver_key_management_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_import_key()
364 if (mbedtls_test_driver_key_management_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_opaque_import_key()
378 if (status != PSA_SUCCESS) { in mbedtls_test_opaque_import_key()
[all...]
H A Dtest_driver_aead.c36 if (mbedtls_test_driver_aead_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_aead_encrypt()
92 if (mbedtls_test_driver_aead_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_aead_decrypt()
145 if (mbedtls_test_driver_aead_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_aead_encrypt_setup()
182 if (mbedtls_test_driver_aead_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_aead_decrypt_setup()
217 if (mbedtls_test_driver_aead_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_aead_set_nonce()
246 if (mbedtls_test_driver_aead_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_aead_set_lengths()
277 if (mbedtls_test_driver_aead_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_aead_update_ad()
309 if (mbedtls_test_driver_aead_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_aead_update()
348 if (mbedtls_test_driver_aead_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_aead_finish()
388 if (mbedtls_test_driver_aead_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_aead_verify()
[all...]
H A Dhash.c29 if (mbedtls_test_driver_hash_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_hash_compute()
64 if (mbedtls_test_driver_hash_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_hash_setup()
91 if (mbedtls_test_driver_hash_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_hash_clone()
120 if (mbedtls_test_driver_hash_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_hash_update()
151 if (mbedtls_test_driver_hash_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_hash_finish()
180 if (mbedtls_test_driver_hash_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_hash_abort()
H A Dtest_driver_cipher.c59 if (mbedtls_test_driver_cipher_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_cipher_encrypt()
62 if (mbedtls_test_driver_cipher_hooks.forced_status_encrypt != PSA_SUCCESS) { in mbedtls_test_transparent_cipher_encrypt()
109 if (mbedtls_test_driver_cipher_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_cipher_decrypt()
144 if (mbedtls_test_driver_cipher_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_cipher_encrypt_setup()
170 if (mbedtls_test_driver_cipher_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_cipher_decrypt_setup()
217 if (mbedtls_test_driver_cipher_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_cipher_set_iv()
220 if (mbedtls_test_driver_cipher_hooks.forced_status_set_iv != PSA_SUCCESS) { in mbedtls_test_transparent_cipher_set_iv()
258 if (mbedtls_test_driver_cipher_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_cipher_update()
297 if (mbedtls_test_driver_cipher_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_cipher_finish()
H A Dtest_driver_pake.c31 if (mbedtls_test_driver_pake_hooks.forced_setup_status != PSA_SUCCESS) { in mbedtls_test_transparent_pake_setup()
77 if (mbedtls_test_driver_pake_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_pake_output()
113 if (mbedtls_test_driver_pake_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_pake_input()
146 if (mbedtls_test_driver_pake_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_pake_get_implicit_key()
192 if (mbedtls_test_driver_pake_hooks.forced_status != PSA_SUCCESS && in mbedtls_test_transparent_pake_abort()
193 mbedtls_test_driver_pake_hooks.driver_status == PSA_SUCCESS) { in mbedtls_test_transparent_pake_abort()
H A Dtest_driver_signature.c192 if (mbedtls_test_driver_signature_sign_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_signature_sign_message()
205 return PSA_SUCCESS; in mbedtls_test_transparent_signature_sign_message()
222 if (status != PSA_SUCCESS) { in mbedtls_test_transparent_signature_sign_message()
271 if (mbedtls_test_driver_signature_verify_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_signature_verify_message()
289 if (status != PSA_SUCCESS) { in mbedtls_test_transparent_signature_verify_message()
329 if (mbedtls_test_driver_signature_sign_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_signature_sign_hash()
340 return PSA_SUCCESS; in mbedtls_test_transparent_signature_sign_hash()
377 if (mbedtls_test_driver_signature_verify_hooks.forced_status != PSA_SUCCESS) { in mbedtls_test_transparent_signature_verify_hash()

Completed in 19 milliseconds

12345