Skip to content

Commit 28c78b5

Browse files
committed
Use global devId for RNG initialization in tests: mlkem_test, dilithium_test, xmss_test, lms_test
1 parent fba8cab commit 28c78b5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

wolfcrypt/test/test.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44006,7 +44006,7 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t mlkem_test(void)
4400644006
#endif
4400744007

4400844008
#ifndef HAVE_FIPS
44009-
ret = wc_InitRng_ex(&rng, HEAP_HINT, INVALID_DEVID);
44009+
ret = wc_InitRng_ex(&rng, HEAP_HINT, devId);
4401044010
#else
4401144011
ret = wc_InitRng(&rng);
4401244012
#endif
@@ -47632,7 +47632,7 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t dilithium_test(void)
4763247632
WC_RNG rng;
4763347633

4763447634
#ifndef HAVE_FIPS
47635-
ret = wc_InitRng_ex(&rng, HEAP_HINT, INVALID_DEVID);
47635+
ret = wc_InitRng_ex(&rng, HEAP_HINT, devId);
4763647636
#else
4763747637
ret = wc_InitRng(&rng);
4763847638
#endif
@@ -47756,7 +47756,7 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t xmss_test(void)
4775647756
WOLFSSL_ENTER("xmss_test");
4775747757

4775847758
#ifndef HAVE_FIPS
47759-
ret = wc_InitRng_ex(&rng, HEAP_HINT, INVALID_DEVID);
47759+
ret = wc_InitRng_ex(&rng, HEAP_HINT, devId);
4776047760
#else
4776147761
ret = wc_InitRng(&rng);
4776247762
#endif
@@ -48425,7 +48425,7 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t lms_test(void)
4842548425
XMEMSET(&verifyKey, 0, sizeof(verifyKey));
4842648426

4842748427
#ifndef HAVE_FIPS
48428-
ret = wc_InitRng_ex(&rng, HEAP_HINT, INVALID_DEVID);
48428+
ret = wc_InitRng_ex(&rng, HEAP_HINT, devId);
4842948429
#else
4843048430
ret = wc_InitRng(&rng);
4843148431
#endif

0 commit comments

Comments
 (0)