diff options
author | lloyd <[email protected]> | 2006-08-21 02:57:38 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-08-21 02:57:38 +0000 |
commit | 98c14509534dc916f698b17d8f23bab922dff143 (patch) | |
tree | 18394683e374972d6170cf2f2ef32e94a9b68a48 /src/sha160.cpp | |
parent | d25c63273e663beb64e55951e5855126f1d81575 (diff) |
Let SHA_160::W be resized dynamically; potentially the asm version could
use a little extra workspace, this makes that simpler to do.
Diffstat (limited to 'src/sha160.cpp')
-rw-r--r-- | src/sha160.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sha160.cpp b/src/sha160.cpp index a61c556aa..d1b5ad006 100644 --- a/src/sha160.cpp +++ b/src/sha160.cpp @@ -120,4 +120,12 @@ void SHA_160::clear() throw() digest[4] = 0xC3D2E1F0; } +/************************************************* +* SHA_160 Constructor * +*************************************************/ +SHA_160::SHA_160() : MDx_HashFunction(20, 64, true, true), W(80) + { + clear(); + } + } |