Use PSA_INIT()
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
diff --git a/tests/suites/test_suite_ssl.function b/tests/suites/test_suite_ssl.function
index da16c8a..388af4c 100644
--- a/tests/suites/test_suite_ssl.function
+++ b/tests/suites/test_suite_ssl.function
@@ -3815,6 +3815,8 @@
unsigned char *output_okm = NULL;
size_t info_len, prk_len, okm_len;
+ PSA_INIT( );
+
ASSERT_ALLOC( output_okm, OKM_LEN );
prk = mbedtls_test_unhexify_alloc( hex_prk_string, &prk_len );
@@ -3823,7 +3825,6 @@
TEST_ASSERT( prk_len == PSA_HASH_LENGTH( alg ) );
TEST_ASSERT( okm_len < OKM_LEN );
- PSA_ASSERT( psa_crypto_init() );
PSA_ASSERT( mbedtls_psa_hkdf_expand( alg, prk, prk_len, info, info_len,
output_okm, OKM_LEN ) );
@@ -3848,6 +3849,8 @@
unsigned char *okm = NULL;
size_t info_len;
+ PSA_INIT( );
+
info_len = 0;
if (prk_len > 0)
@@ -3856,7 +3859,6 @@
if (okm_len > 0)
ASSERT_ALLOC( okm, okm_len );
- PSA_ASSERT( psa_crypto_init() );
output_ret = mbedtls_psa_hkdf_expand( alg, prk, prk_len,
info, info_len,
okm, okm_len );