diff --git a/tests/suites/test_suite_pkparse.function b/tests/suites/test_suite_pkparse.function index 5e4f3b770..d7c2d0b59 100644 --- a/tests/suites/test_suite_pkparse.function +++ b/tests/suites/test_suite_pkparse.function @@ -101,10 +101,7 @@ void pk_parse_keyfile_ec(char *key_file, char *password, int result) mbedtls_pk_context ctx; int res; -#if defined(MBEDTLS_USE_PSA_CRYPTO) - PSA_INIT(); -#endif - + USE_PSA_INIT(); mbedtls_pk_init(&ctx); res = mbedtls_pk_parse_keyfile(&ctx, key_file, password, @@ -121,9 +118,7 @@ void pk_parse_keyfile_ec(char *key_file, char *password, int result) exit: mbedtls_pk_free(&ctx); -#if defined(MBEDTLS_USE_PSA_CRYPTO) - PSA_DONE(); -#endif + USE_PSA_DONE(); } /* END_CASE */