Move AES_PSA_INIT to after drbg init
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
diff --git a/tf-psa-crypto/tests/suites/test_suite_ctr_drbg.function b/tf-psa-crypto/tests/suites/test_suite_ctr_drbg.function
index a19dea3..78a63ea 100644
--- a/tf-psa-crypto/tests/suites/test_suite_ctr_drbg.function
+++ b/tf-psa-crypto/tests/suites/test_suite_ctr_drbg.function
@@ -363,11 +363,11 @@
* as this was the value used when the expected answers were calculated. */
const size_t entropy_len = 48;
- AES_PSA_INIT();
-
mbedtls_ctr_drbg_context ctx;
mbedtls_ctr_drbg_init(&ctx);
+ AES_PSA_INIT();
+
TEST_CALLOC(threads, sizeof(mbedtls_test_thread_t) * thread_count);
memset(out, 0, sizeof(out));