aboutsummaryrefslogtreecommitdiffstats
path: root/modules/alg_ia32
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 /modules/alg_ia32
parent0a67be08fb4d237292e8d11954f262c563d09d9c (diff)
Clear the W buffer inside the SHA_160::clear() functions
Diffstat (limited to 'modules/alg_ia32')
-rw-r--r--modules/alg_ia32/sha160.cpp1
1 files changed, 1 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;