We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1044418 + dbd495d commit 70dad95Copy full SHA for 70dad95
1 file changed
wolfcrypt/src/sha512.c
@@ -2306,7 +2306,7 @@ void wc_Sha512Free(wc_Sha512* sha512)
2306
#ifdef WOLFSSL_SMALL_STACK_CACHE
2307
if (sha512->W != NULL) {
2308
ForceZero(sha512->W, (sizeof(word64) * 16) + WC_SHA512_BLOCK_SIZE);
2309
- XFREE(sha512->W, sha512->heap, DYNAMIC_TYPE_TMP_BUFFER);
+ XFREE(sha512->W, sha512->heap, DYNAMIC_TYPE_DIGEST);
2310
sha512->W = NULL;
2311
}
2312
#endif
@@ -2779,7 +2779,7 @@ void wc_Sha384Free(wc_Sha384* sha384)
2779
2780
if (sha384->W != NULL) {
2781
ForceZero(sha384->W, (sizeof(word64) * 16) + WC_SHA512_BLOCK_SIZE);
2782
- XFREE(sha384->W, sha384->heap, DYNAMIC_TYPE_TMP_BUFFER);
+ XFREE(sha384->W, sha384->heap, DYNAMIC_TYPE_DIGEST);
2783
sha384->W = NULL;
2784
2785
0 commit comments