From 31e7c1f9764562c3053575a9a1981bd4615c590c Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Fri, 25 Oct 2024 12:27:36 +0100 Subject: [PATCH] Move AES_PSA_INIT to after drbg init Signed-off-by: Paul Elliott --- tests/suites/test_suite_ctr_drbg.function | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/suites/test_suite_ctr_drbg.function b/tests/suites/test_suite_ctr_drbg.function index a19dea3609..78a63ea626 100644 --- a/tests/suites/test_suite_ctr_drbg.function +++ b/tests/suites/test_suite_ctr_drbg.function @@ -363,11 +363,11 @@ void ctr_drbg_threads(data_t *expected_result, int reseed, int arg_thread_count) * 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));