Skip to content

Commit 8bd0fb0

Browse files
committed
wolfcrypt/src/random.c and wolfssl/wolfcrypt/random.h: refactor WOLFSSL_SMALL_STACK_CACHE support to eliminate all heap calls after init and before cleanup.
* add DRBG_internal.{seed_scratch,digest_scratch} * add WC_RNG.{drbg_scratch,health_check_scratch,newSeed_buf} * refactor to implement new WOLFSSL_SMALL_STACK_CACHE dynamics: * wc_RNG_HealthTestLocal() * Hash_df() * Hash_gen() * Hash_DRBG_Generate() * Hash_DRBG_Instantiate() * _InitRng() * PollAndReSeed() * wc_FreeRng() * wc_RNG_HealthTest_ex_internal() * wc_RNG_HealthTest_ex() * wc_RNG_HealthTestLocal() * refactor out WOLFSSL_KERNEL_MODE gates (now all WOLFSSL_SMALL_STACK_CACHE)
1 parent 2b28931 commit 8bd0fb0

File tree

2 files changed

+274
-86
lines changed

2 files changed

+274
-86
lines changed

0 commit comments

Comments
 (0)