sha256.c: add missing _SMALL_STACK_CACHE initialization in InitSha256().

This commit is contained in:
Daniel Pouzzner
2020-08-25 10:39:40 -05:00
parent 922b023aea
commit e09487de1f

View File

@ -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