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 /include | |
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 'include')
-rw-r--r-- | include/sha160.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sha160.h b/include/sha160.h index 554930436..ac46863db 100644 --- a/include/sha160.h +++ b/include/sha160.h @@ -19,13 +19,13 @@ class SHA_160 : public MDx_HashFunction void clear() throw(); std::string name() const { return "SHA-160"; } HashFunction* clone() const { return new SHA_160; } - SHA_160() : MDx_HashFunction(20, 64, true, true) { clear(); } + SHA_160(); private: void hash(const byte[]); void copy_out(byte[]); SecureBuffer<u32bit, 5> digest; - SecureBuffer<u32bit, 80> W; + SecureVector<u32bit> W; }; } |