aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-08-13 15:05:11 +0000
committerlloyd <[email protected]>2006-08-13 15:05:11 +0000
commite10d245247de75d9d367d76562546923c63717fa (patch)
tree3d32579c716d638364bb7cf3415e6b4a9e18a3e0 /src
parent0a67be08fb4d237292e8d11954f262c563d09d9c (diff)
Clear the W buffer inside the SHA_160::clear() functions
Diffstat (limited to 'src')
-rw-r--r--src/sha160.cpp1
1 files changed, 1 insertions, 0 deletions
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;