mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
sha256.c: add missing _SMALL_STACK_CACHE initialization in InitSha256().
This commit is contained in:
@ -201,6 +201,9 @@ static int InitSha256(wc_Sha256* sha256)
|
||||
sha256->buffLen = 0;
|
||||
sha256->loLen = 0;
|
||||
sha256->hiLen = 0;
|
||||
#ifdef WOLFSSL_SMALL_STACK_CACHE
|
||||
sha256->W = NULL;
|
||||
#endif
|
||||
#if defined(WOLFSSL_HASH_FLAGS) || defined(WOLF_CRYPTO_CB)
|
||||
sha256->flags = 0;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user