diff options
Diffstat (limited to 'src/hash/has160/has160.h')
-rw-r--r-- | src/hash/has160/has160.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/hash/has160/has160.h b/src/hash/has160/has160.h index a82e4c579..7cff320b8 100644 --- a/src/hash/has160/has160.h +++ b/src/hash/has160/has160.h @@ -22,13 +22,14 @@ class BOTAN_DLL HAS_160 : public MDx_HashFunction void clear(); std::string name() const { return "HAS-160"; } HashFunction* clone() const { return new HAS_160; } - HAS_160() : MDx_HashFunction(20, 64, false, true) { clear(); } + + HAS_160() : MDx_HashFunction(20, 64, false, true), X(20), digest(5) + { clear(); } private: void compress_n(const byte[], u32bit blocks); void copy_out(byte[]); - SecureVector<u32bit, 20> X; - SecureVector<u32bit, 5> digest; + SecureVector<u32bit> X, digest; }; } |