aboutsummaryrefslogtreecommitdiffstats
path: root/src/hash/sha2/sha2_32.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hash/sha2/sha2_32.cpp')
-rw-r--r--src/hash/sha2/sha2_32.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hash/sha2/sha2_32.cpp b/src/hash/sha2/sha2_32.cpp
index 4315e10d6..a18a4d8c4 100644
--- a/src/hash/sha2/sha2_32.cpp
+++ b/src/hash/sha2/sha2_32.cpp
@@ -181,7 +181,7 @@ void SHA_224::copy_out(byte output[])
void SHA_224::clear()
{
MDx_HashFunction::clear();
- W.clear();
+ zeroise(W);
digest[0] = 0xC1059ED8;
digest[1] = 0x367CD507;
digest[2] = 0x3070DD17;
@@ -215,7 +215,7 @@ void SHA_256::copy_out(byte output[])
void SHA_256::clear()
{
MDx_HashFunction::clear();
- W.clear();
+ zeroise(W);
digest[0] = 0x6A09E667;
digest[1] = 0xBB67AE85;
digest[2] = 0x3C6EF372;