mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-23 07:20:56 +00:00
Move AES_PSA_INIT to after drbg init
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
parent
e4997651d7
commit
31e7c1f976
@ -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. */
|
* as this was the value used when the expected answers were calculated. */
|
||||||
const size_t entropy_len = 48;
|
const size_t entropy_len = 48;
|
||||||
|
|
||||||
AES_PSA_INIT();
|
|
||||||
|
|
||||||
mbedtls_ctr_drbg_context ctx;
|
mbedtls_ctr_drbg_context ctx;
|
||||||
mbedtls_ctr_drbg_init(&ctx);
|
mbedtls_ctr_drbg_init(&ctx);
|
||||||
|
|
||||||
|
AES_PSA_INIT();
|
||||||
|
|
||||||
TEST_CALLOC(threads, sizeof(mbedtls_test_thread_t) * thread_count);
|
TEST_CALLOC(threads, sizeof(mbedtls_test_thread_t) * thread_count);
|
||||||
memset(out, 0, sizeof(out));
|
memset(out, 0, sizeof(out));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user