diff options
-rw-r--r-- | modules/alg_ia32/sha160.cpp | 1 | ||||
-rw-r--r-- | src/sha160.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/modules/alg_ia32/sha160.cpp b/modules/alg_ia32/sha160.cpp index d802dcec9..62a5c9635 100644 --- a/modules/alg_ia32/sha160.cpp +++ b/modules/alg_ia32/sha160.cpp @@ -33,6 +33,7 @@ void SHA_160::copy_out(byte output[]) void SHA_160::clear() throw() { MDx_HashFunction::clear(); + W.clear(); digest[0] = 0x67452301; digest[1] = 0xEFCDAB89; digest[2] = 0x98BADCFE; diff --git a/src/sha160.cpp b/src/sha160.cpp index 4ffb34fa2..a61c556aa 100644 --- a/src/sha160.cpp +++ b/src/sha160.cpp @@ -112,6 +112,7 @@ void SHA_160::copy_out(byte output[]) void SHA_160::clear() throw() { MDx_HashFunction::clear(); + W.clear(); digest[0] = 0x67452301; digest[1] = 0xEFCDAB89; digest[2] = 0x98BADCFE; |