forked from wolfSSL/wolfssl
Move rng seed cb call to wolfcrypt_test
This commit is contained in:
@@ -996,6 +996,10 @@ wc_test_ret_t wolfcrypt_test(void* args)
|
|||||||
heap_baselineBytes = wolfCrypt_heap_peakBytes_checkpoint();
|
heap_baselineBytes = wolfCrypt_heap_peakBytes_checkpoint();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef WC_RNG_SEED_CB
|
||||||
|
wc_SetSeed_Cb(wc_GenerateSeed);
|
||||||
|
#endif
|
||||||
|
|
||||||
printf("------------------------------------------------------------------------------\n");
|
printf("------------------------------------------------------------------------------\n");
|
||||||
printf(" wolfSSL version %s\n", LIBWOLFSSL_VERSION_STRING);
|
printf(" wolfSSL version %s\n", LIBWOLFSSL_VERSION_STRING);
|
||||||
#ifdef WOLF_CRYPTO_CB
|
#ifdef WOLF_CRYPTO_CB
|
||||||
@@ -2094,10 +2098,6 @@ options: [-s max_relative_stack_bytes] [-m max_relative_heap_memory_bytes]\n\
|
|||||||
printf("Math: %s\n", wc_GetMathInfo());
|
printf("Math: %s\n", wc_GetMathInfo());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WC_RNG_SEED_CB
|
|
||||||
wc_SetSeed_Cb(wc_GenerateSeed);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_STACK_SIZE
|
#ifdef HAVE_STACK_SIZE
|
||||||
StackSizeCheck(&args, wolfcrypt_test);
|
StackSizeCheck(&args, wolfcrypt_test);
|
||||||
#else
|
#else
|
||||||
|
@@ -388,7 +388,7 @@
|
|||||||
* system or other set of headers included by wolfSSL already defines
|
* system or other set of headers included by wolfSSL already defines
|
||||||
* RNG. Examples are:
|
* RNG. Examples are:
|
||||||
* wolfEngine, wolfProvider and potentially other use-cases */
|
* wolfEngine, wolfProvider and potentially other use-cases */
|
||||||
#ifndef RNG
|
#if !defined(RNG) && !defined(NO_OLD_RNGNAME)
|
||||||
#define RNG WC_RNG
|
#define RNG WC_RNG
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user