diff options
author | lloyd <[email protected]> | 2006-08-21 04:41:10 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-08-21 04:41:10 +0000 |
commit | 0cbbd70d84cd9592f503ab4879de8392e5ad6370 (patch) | |
tree | 6a1d4412c54948e8e5fd1aca42e707160b621a4c /modules/alg_ia32/sha160.cpp | |
parent | 98c14509534dc916f698b17d8f23bab922dff143 (diff) |
Inside the compression function, store the original stack pointer in the
W array, and then use %esp to point to the message words. This gives an
extra register for temporary usage.
Diffstat (limited to 'modules/alg_ia32/sha160.cpp')
-rw-r--r-- | modules/alg_ia32/sha160.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/alg_ia32/sha160.cpp b/modules/alg_ia32/sha160.cpp index 754f8a01c..c7d0fc72d 100644 --- a/modules/alg_ia32/sha160.cpp +++ b/modules/alg_ia32/sha160.cpp @@ -8,7 +8,7 @@ namespace Botan { -extern "C" void sha160_core(u32bit[5], const byte[64], u32bit[80]); +extern "C" void sha160_core(u32bit[5], const byte[64], u32bit[84]); /************************************************* * SHA-160 Compression Function * @@ -44,7 +44,7 @@ void SHA_160::clear() throw() /************************************************* * SHA_160 Constructor * *************************************************/ -SHA_160::SHA_160() : MDx_HashFunction(20, 64, true, true), W(80) +SHA_160::SHA_160() : MDx_HashFunction(20, 64, true, true), W(84) { clear(); } |