forked from wolfSSL/wolfssl
Fix to ensure hash devCtx is cleared.
This commit is contained in:
@ -543,6 +543,7 @@ static int InitSha256(wc_Sha256* sha256)
|
|||||||
sha256->heap = heap;
|
sha256->heap = heap;
|
||||||
#ifdef WOLF_CRYPTO_CB
|
#ifdef WOLF_CRYPTO_CB
|
||||||
sha256->devId = devId;
|
sha256->devId = devId;
|
||||||
|
sha256->devCtx = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ret = InitSha256(sha256);
|
ret = InitSha256(sha256);
|
||||||
|
Reference in New Issue
Block a user