Make RSA-PSS verification use PSA with MBEDTLS_USE_PSA_CRYPTO
Duplicate a test case but with a different expected error
due to error translation to and from PSA.
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
diff --git a/tests/suites/test_suite_pk.function b/tests/suites/test_suite_pk.function
index 56cc45b..edd5e66 100644
--- a/tests/suites/test_suite_pk.function
+++ b/tests/suites/test_suite_pk.function
@@ -438,6 +438,9 @@
void *options;
size_t hash_len;
+#if defined(MBEDTLS_USE_PSA_CRYPTO)
+ psa_crypto_init();
+#endif
mbedtls_pk_init( &pk );
memset( hash_result, 0x00, sizeof( hash_result ) );
@@ -481,6 +484,10 @@
exit:
mbedtls_pk_free( &pk );
+#if defined(MBEDTLS_USE_PSA_CRYPTO)
+ mbedtls_test_psa_purge_key_storage();
+ mbedtls_psa_crypto_free();
+#endif
}
/* END_CASE */