Lines Matching full:if
26 #if defined(MBEDTLS_PSA_CRYPTO_C)
30 #if defined(PSA_CRYPTO_DRIVER_TEST)
35 #if defined(PSA_CRYPTO_DRIVER_TEST)
40 #if defined(MBEDTLS_PSA_P256M_DRIVER_ENABLED)
46 #if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER)
56 #if defined(PSA_CRYPTO_DRIVER_CC3XX)
77 #if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER)
80 #if defined(PSA_CRYPTO_DRIVER_CC3XX)
92 #if defined(MBEDTLS_PSA_CRYPTO_SE_C)
105 #if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER) in psa_driver_wrapper_init()
107 if (status != PSA_SUCCESS) in psa_driver_wrapper_init()
111 #if defined(MBEDTLS_PSA_CRYPTO_SE_C) in psa_driver_wrapper_init()
113 if( status != PSA_SUCCESS ) in psa_driver_wrapper_init()
117 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_init()
119 if( status != PSA_SUCCESS ) in psa_driver_wrapper_init()
123 if( status != PSA_SUCCESS ) in psa_driver_wrapper_init()
127 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_init()
129 if (status != PSA_SUCCESS) in psa_driver_wrapper_init()
138 #if defined(MBEDTLS_PSA_CRYPTO_SE_C) in psa_driver_wrapper_free()
144 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_free()
149 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_free()
173 #if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER) in psa_driver_wrapper_sign_message()
178 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_sign_message()
179 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_sign_message()
191 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_sign_message()
194 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_sign_message()
219 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_sign_message()
220 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_sign_message()
232 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_sign_message()
261 #if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER) in psa_driver_wrapper_verify_message()
266 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_verify_message()
267 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_verify_message()
278 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_verify_message()
281 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_verify_message()
304 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_verify_message()
305 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_verify_message()
316 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_verify_message()
335 #if defined(MBEDTLS_PSA_CRYPTO_SE_C) in psa_driver_wrapper_sign_hash()
339 if( psa_get_se_driver( attributes->core.lifetime, &drv, &drv_context ) ) in psa_driver_wrapper_sign_hash()
341 if( drv->asymmetric == NULL || in psa_driver_wrapper_sign_hash()
361 #if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER) in psa_driver_wrapper_sign_hash()
366 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_sign_hash()
367 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_sign_hash()
378 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_sign_hash()
381 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_sign_hash()
393 #if defined (MBEDTLS_PSA_P256M_DRIVER_ENABLED) in psa_driver_wrapper_sign_hash()
394 if( PSA_KEY_TYPE_IS_ECC( attributes->core.type ) && in psa_driver_wrapper_sign_hash()
409 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_sign_hash()
426 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_sign_hash()
427 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_sign_hash()
454 #if defined(MBEDTLS_PSA_CRYPTO_SE_C) in psa_driver_wrapper_verify_hash()
458 if( psa_get_se_driver( attributes->core.lifetime, &drv, &drv_context ) ) in psa_driver_wrapper_verify_hash()
460 if( drv->asymmetric == NULL || in psa_driver_wrapper_verify_hash()
480 #if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER) in psa_driver_wrapper_verify_hash()
485 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_verify_hash()
486 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_verify_hash()
497 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_verify_hash()
500 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_verify_hash()
511 #if defined (MBEDTLS_PSA_P256M_DRIVER_ENABLED) in psa_driver_wrapper_verify_hash()
512 if( PSA_KEY_TYPE_IS_ECC( attributes->core.type ) && in psa_driver_wrapper_verify_hash()
526 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_verify_hash()
542 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_verify_hash()
543 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_verify_hash()
567 /* If uninitialised, return 0, as no work can have been done. */ in psa_driver_wrapper_sign_hash_get_num_ops()
574 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_sign_hash_get_num_ops()
575 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_sign_hash_get_num_ops()
591 /* If uninitialised, return 0, as no work can have been done. */ in psa_driver_wrapper_verify_hash_get_num_ops()
598 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_verify_hash_get_num_ops()
599 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_verify_hash_get_num_ops()
623 #if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER) in psa_driver_wrapper_sign_hash_start()
629 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_sign_hash_start()
630 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_sign_hash_start()
667 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_sign_hash_complete()
668 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_sign_hash_complete()
690 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_sign_hash_abort()
691 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_sign_hash_abort()
714 #if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER) in psa_driver_wrapper_verify_hash_start()
720 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_verify_hash_start()
721 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_verify_hash_start()
758 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_verify_hash_complete()
759 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_verify_hash_complete()
778 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_verify_hash_abort()
779 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_verify_hash_abort()
814 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_get_key_buffer_size_from_key_data()
839 #if defined(MBEDTLS_PSA_CRYPTO_SE_C) in psa_driver_wrapper_generate_key()
843 if( psa_get_se_driver( attributes->core.lifetime, &drv, &drv_context ) ) in psa_driver_wrapper_generate_key()
846 if( drv->key_management == NULL || in psa_driver_wrapper_generate_key()
862 #if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER) in psa_driver_wrapper_generate_key()
865 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_generate_key()
867 if( PSA_KEY_TYPE_IS_ASYMMETRIC( attributes->core.type ) ) in psa_driver_wrapper_generate_key()
870 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_generate_key()
875 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_generate_key()
878 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_generate_key()
884 #if defined(MBEDTLS_PSA_P256M_DRIVER_ENABLED) in psa_driver_wrapper_generate_key()
885 if( PSA_KEY_TYPE_IS_ECC( attributes->core.type ) && in psa_driver_wrapper_generate_key()
893 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_generate_key()
907 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_generate_key()
908 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_generate_key()
940 #if defined(MBEDTLS_PSA_CRYPTO_SE_C) in psa_driver_wrapper_import_key()
944 if( psa_get_se_driver( attributes->core.lifetime, &drv, &drv_context ) ) in psa_driver_wrapper_import_key()
946 if( drv->key_management == NULL || in psa_driver_wrapper_import_key()
958 if( status != PSA_SUCCESS ) in psa_driver_wrapper_import_key()
961 if( (*bits) > PSA_MAX_KEY_BITS ) in psa_driver_wrapper_import_key()
971 #if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER) in psa_driver_wrapper_import_key()
976 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_import_key()
978 #if (defined(PSA_CRYPTO_DRIVER_TEST) ) in psa_driver_wrapper_import_key()
989 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_import_key()
993 #if (defined(MBEDTLS_PSA_P256M_DRIVER_ENABLED) ) in psa_driver_wrapper_import_key()
1004 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_import_key()
1017 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_import_key()
1019 #if (defined(PSA_CRYPTO_DRIVER_TEST) ) in psa_driver_wrapper_import_key()
1053 #if defined(MBEDTLS_PSA_CRYPTO_SE_C) in psa_driver_wrapper_export_key()
1057 if( psa_get_se_driver( attributes->core.lifetime, &drv, &drv_context ) ) in psa_driver_wrapper_export_key()
1059 if( ( drv->key_management == NULL ) || in psa_driver_wrapper_export_key()
1075 #if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER) in psa_driver_wrapper_export_key()
1086 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_export_key()
1088 #if (defined(PSA_CRYPTO_DRIVER_TEST) ) in psa_driver_wrapper_export_key()
1120 #if defined(MBEDTLS_PSA_CRYPTO_SE_C) in psa_driver_wrapper_copy_key()
1124 if( psa_get_se_driver( attributes->core.lifetime, &drv, &drv_context ) ) in psa_driver_wrapper_copy_key()
1133 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_copy_key()
1135 #if (defined(PSA_CRYPTO_DRIVER_TEST) ) in psa_driver_wrapper_copy_key()
1184 #if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER) in psa_driver_wrapper_cipher_encrypt()
1189 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_cipher_encrypt()
1190 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_cipher_encrypt()
1203 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_cipher_encrypt()
1206 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_cipher_encrypt()
1222 #if defined(MBEDTLS_PSA_BUILTIN_CIPHER) in psa_driver_wrapper_cipher_encrypt()
1239 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_cipher_encrypt()
1240 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_cipher_encrypt()
1291 #if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER) in psa_driver_wrapper_cipher_decrypt()
1296 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_cipher_decrypt()
1297 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_cipher_decrypt()
1308 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_cipher_decrypt()
1311 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_cipher_decrypt()
1325 #if defined(MBEDTLS_PSA_BUILTIN_CIPHER) in psa_driver_wrapper_cipher_decrypt()
1340 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_cipher_decrypt()
1341 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_cipher_decrypt()
1383 #if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER) in psa_driver_wrapper_cipher_encrypt_setup()
1388 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_cipher_encrypt_setup()
1389 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_cipher_encrypt_setup()
1397 if( status == PSA_SUCCESS ) in psa_driver_wrapper_cipher_encrypt_setup()
1400 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_cipher_encrypt_setup()
1403 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_cipher_encrypt_setup()
1414 #if defined(MBEDTLS_PSA_BUILTIN_CIPHER) in psa_driver_wrapper_cipher_encrypt_setup()
1421 if( status == PSA_SUCCESS ) in psa_driver_wrapper_cipher_encrypt_setup()
1424 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_cipher_encrypt_setup()
1430 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_cipher_encrypt_setup()
1431 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_cipher_encrypt_setup()
1439 if( status == PSA_SUCCESS ) in psa_driver_wrapper_cipher_encrypt_setup()
1469 #if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER) in psa_driver_wrapper_cipher_decrypt_setup()
1474 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_cipher_decrypt_setup()
1475 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_cipher_decrypt_setup()
1483 if( status == PSA_SUCCESS ) in psa_driver_wrapper_cipher_decrypt_setup()
1486 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_cipher_decrypt_setup()
1489 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_cipher_decrypt_setup()
1500 #if defined(MBEDTLS_PSA_BUILTIN_CIPHER) in psa_driver_wrapper_cipher_decrypt_setup()
1507 if( status == PSA_SUCCESS ) in psa_driver_wrapper_cipher_decrypt_setup()
1516 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_cipher_decrypt_setup()
1517 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_cipher_decrypt_setup()
1525 if( status == PSA_SUCCESS ) in psa_driver_wrapper_cipher_decrypt_setup()
1549 #if defined(MBEDTLS_PSA_BUILTIN_CIPHER) in psa_driver_wrapper_cipher_set_iv()
1556 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_cipher_set_iv()
1557 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_cipher_set_iv()
1568 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_cipher_set_iv()
1593 #if defined(MBEDTLS_PSA_BUILTIN_CIPHER) in psa_driver_wrapper_cipher_update()
1603 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_cipher_update()
1604 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_cipher_update()
1617 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_cipher_update()
1644 #if defined(MBEDTLS_PSA_BUILTIN_CIPHER) in psa_driver_wrapper_cipher_finish()
1652 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_cipher_finish()
1653 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_cipher_finish()
1664 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_cipher_finish()
1687 #if defined(MBEDTLS_PSA_BUILTIN_CIPHER) in psa_driver_wrapper_cipher_abort()
1692 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_cipher_abort()
1693 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_cipher_abort()
1710 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_cipher_abort()
1740 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_hash_compute()
1741 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_hash_compute()
1744 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_hash_compute()
1747 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_hash_compute()
1754 /* If software fallback is compiled in, try fallback */ in psa_driver_wrapper_hash_compute()
1755 #if defined(MBEDTLS_PSA_BUILTIN_HASH) in psa_driver_wrapper_hash_compute()
1758 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_hash_compute()
1779 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_hash_setup()
1780 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_hash_setup()
1783 if( status == PSA_SUCCESS ) in psa_driver_wrapper_hash_setup()
1786 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_hash_setup()
1789 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_hash_setup()
1796 /* If software fallback is compiled in, try fallback */ in psa_driver_wrapper_hash_setup()
1797 #if defined(MBEDTLS_PSA_BUILTIN_HASH) in psa_driver_wrapper_hash_setup()
1799 if( status == PSA_SUCCESS ) in psa_driver_wrapper_hash_setup()
1802 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_hash_setup()
1805 /* Nothing left to try if we fall through here */ in psa_driver_wrapper_hash_setup()
1818 #if defined(MBEDTLS_PSA_BUILTIN_HASH) in psa_driver_wrapper_hash_clone()
1824 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_hash_clone()
1825 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_hash_clone()
1832 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_hash_clone()
1854 #if defined(MBEDTLS_PSA_BUILTIN_HASH) in psa_driver_wrapper_hash_update()
1859 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_hash_update()
1860 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_hash_update()
1866 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_hash_update()
1888 #if defined(MBEDTLS_PSA_BUILTIN_HASH) in psa_driver_wrapper_hash_finish()
1893 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_hash_finish()
1894 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_hash_finish()
1900 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_hash_finish()
1920 #if defined(MBEDTLS_PSA_BUILTIN_HASH) in psa_driver_wrapper_hash_abort()
1924 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_hash_abort()
1925 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_hash_abort()
1930 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_hash_abort()
1957 #if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER) in psa_driver_wrapper_aead_encrypt()
1963 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_aead_encrypt()
1964 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_aead_encrypt()
1973 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_aead_encrypt()
1976 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_aead_encrypt()
2023 #if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER) in psa_driver_wrapper_aead_decrypt()
2029 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_aead_decrypt()
2030 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_aead_decrypt()
2039 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_aead_decrypt()
2042 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_aead_decrypt()
2086 #if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER) in psa_driver_wrapper_aead_encrypt_setup()
2092 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_aead_encrypt_setup()
2093 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_aead_encrypt_setup()
2101 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_aead_encrypt_setup()
2104 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_aead_encrypt_setup()
2146 #if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER) in psa_driver_wrapper_aead_decrypt_setup()
2152 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_aead_decrypt_setup()
2153 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_aead_decrypt_setup()
2162 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_aead_decrypt_setup()
2165 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_aead_decrypt_setup()
2203 #if defined(MBEDTLS_PSA_BUILTIN_AEAD) in psa_driver_wrapper_aead_set_nonce()
2211 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_aead_set_nonce()
2212 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_aead_set_nonce()
2221 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_aead_set_nonce()
2243 #if defined(MBEDTLS_PSA_BUILTIN_AEAD) in psa_driver_wrapper_aead_set_lengths()
2251 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_aead_set_lengths()
2252 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_aead_set_lengths()
2261 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_aead_set_lengths()
2283 #if defined(MBEDTLS_PSA_BUILTIN_AEAD) in psa_driver_wrapper_aead_update_ad()
2291 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_aead_update_ad()
2292 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_aead_update_ad()
2301 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_aead_update_ad()
2326 #if defined(MBEDTLS_PSA_BUILTIN_AEAD) in psa_driver_wrapper_aead_update()
2335 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_aead_update()
2336 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_aead_update()
2346 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_aead_update()
2376 #if defined(MBEDTLS_PSA_BUILTIN_AEAD) in psa_driver_wrapper_aead_finish()
2386 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_aead_finish()
2387 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_aead_finish()
2397 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_aead_finish()
2427 #if defined(MBEDTLS_PSA_BUILTIN_AEAD) in psa_driver_wrapper_aead_verify()
2442 if( status == PSA_SUCCESS ) in psa_driver_wrapper_aead_verify()
2444 if( tag_length != check_tag_length || in psa_driver_wrapper_aead_verify()
2457 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_aead_verify()
2458 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_aead_verify()
2468 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_aead_verify()
2492 #if defined(MBEDTLS_PSA_BUILTIN_AEAD) in psa_driver_wrapper_aead_abort()
2498 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_aead_abort()
2499 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_aead_abort()
2507 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_aead_abort()
2539 #if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER) in psa_driver_wrapper_mac_compute()
2544 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_mac_compute()
2545 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_mac_compute()
2551 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_mac_compute()
2554 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_mac_compute()
2561 #if defined(MBEDTLS_PSA_BUILTIN_MAC) in psa_driver_wrapper_mac_compute()
2567 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_mac_compute()
2573 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_mac_compute()
2574 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_mac_compute()
2612 #if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER) in psa_driver_wrapper_mac_sign_setup()
2617 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_mac_sign_setup()
2618 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_mac_sign_setup()
2625 if( status == PSA_SUCCESS ) in psa_driver_wrapper_mac_sign_setup()
2628 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_mac_sign_setup()
2631 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_mac_sign_setup()
2641 #if defined(MBEDTLS_PSA_BUILTIN_MAC) in psa_driver_wrapper_mac_sign_setup()
2647 if( status == PSA_SUCCESS ) in psa_driver_wrapper_mac_sign_setup()
2650 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_mac_sign_setup()
2656 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_mac_sign_setup()
2657 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_mac_sign_setup()
2665 if( status == PSA_SUCCESS ) in psa_driver_wrapper_mac_sign_setup()
2696 #if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER) in psa_driver_wrapper_mac_verify_setup()
2701 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_mac_verify_setup()
2702 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_mac_verify_setup()
2709 if( status == PSA_SUCCESS ) in psa_driver_wrapper_mac_verify_setup()
2712 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_mac_verify_setup()
2715 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_mac_verify_setup()
2725 #if defined(MBEDTLS_PSA_BUILTIN_MAC) in psa_driver_wrapper_mac_verify_setup()
2731 if( status == PSA_SUCCESS ) in psa_driver_wrapper_mac_verify_setup()
2734 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_mac_verify_setup()
2740 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_mac_verify_setup()
2741 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_mac_verify_setup()
2749 if( status == PSA_SUCCESS ) in psa_driver_wrapper_mac_verify_setup()
2773 #if defined(MBEDTLS_PSA_BUILTIN_MAC) in psa_driver_wrapper_mac_update()
2779 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_mac_update()
2780 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_mac_update()
2791 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_mac_update()
2811 #if defined(MBEDTLS_PSA_BUILTIN_MAC) in psa_driver_wrapper_mac_sign_finish()
2817 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_mac_sign_finish()
2818 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_mac_sign_finish()
2829 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_mac_sign_finish()
2850 #if defined(MBEDTLS_PSA_BUILTIN_MAC) in psa_driver_wrapper_mac_verify_finish()
2856 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_mac_verify_finish()
2857 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_mac_verify_finish()
2868 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_mac_verify_finish()
2887 #if defined(MBEDTLS_PSA_BUILTIN_MAC) in psa_driver_wrapper_mac_abort()
2892 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_mac_abort()
2893 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_mac_abort()
2901 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_mac_abort()
2927 #if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER) in psa_driver_wrapper_asymmetric_encrypt()
2932 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_asymmetric_encrypt()
2933 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_asymmetric_encrypt()
2939 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_asymmetric_encrypt()
2942 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_asymmetric_encrypt()
2962 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_asymmetric_encrypt()
2963 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_asymmetric_encrypt()
3002 #if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER) in psa_driver_wrapper_asymmetric_decrypt()
3007 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_asymmetric_decrypt()
3008 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_asymmetric_decrypt()
3014 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_asymmetric_decrypt()
3017 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_asymmetric_decrypt()
3037 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_asymmetric_decrypt()
3038 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_asymmetric_decrypt()
3083 #if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER) in psa_driver_wrapper_key_agreement()
3088 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_key_agreement()
3089 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_key_agreement()
3095 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_key_agreement()
3098 #if defined(PSA_CRYPTO_DRIVER_CC3XX) in psa_driver_wrapper_key_agreement()
3110 #if defined(MBEDTLS_PSA_P256M_DRIVER_ENABLED) in psa_driver_wrapper_key_agreement()
3111 if( PSA_KEY_TYPE_IS_ECC( attributes->core.type ) && in psa_driver_wrapper_key_agreement()
3125 if( status != PSA_ERROR_NOT_SUPPORTED) in psa_driver_wrapper_key_agreement()
3142 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_key_agreement()
3143 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_key_agreement()
3178 #if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER) in psa_driver_wrapper_pake_setup()
3184 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_pake_setup()
3185 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_pake_setup()
3189 if( status == PSA_SUCCESS ) in psa_driver_wrapper_pake_setup()
3192 if( status != PSA_ERROR_NOT_SUPPORTED ) in psa_driver_wrapper_pake_setup()
3196 #if defined(MBEDTLS_PSA_BUILTIN_PAKE) in psa_driver_wrapper_pake_setup()
3199 if( status == PSA_SUCCESS ) in psa_driver_wrapper_pake_setup()
3220 #if defined(MBEDTLS_PSA_BUILTIN_PAKE) in psa_driver_wrapper_pake_output()
3226 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_pake_output()
3227 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_pake_output()
3251 #if defined(MBEDTLS_PSA_BUILTIN_PAKE) in psa_driver_wrapper_pake_input()
3258 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_pake_input()
3259 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_pake_input()
3282 #if defined(MBEDTLS_PSA_BUILTIN_PAKE) in psa_driver_wrapper_pake_get_implicit_key()
3288 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_pake_get_implicit_key()
3289 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_pake_get_implicit_key()
3309 #if defined(MBEDTLS_PSA_BUILTIN_PAKE) in psa_driver_wrapper_pake_abort()
3314 #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) in psa_driver_wrapper_pake_abort()
3315 #if defined(PSA_CRYPTO_DRIVER_TEST) in psa_driver_wrapper_pake_abort()