diff options
Diffstat (limited to 'src/checksum/adler32/adler32.h')
-rw-r--r-- | src/checksum/adler32/adler32.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/checksum/adler32/adler32.h b/src/checksum/adler32/adler32.h index 3a2441ad3..dc2872ca1 100644 --- a/src/checksum/adler32/adler32.h +++ b/src/checksum/adler32/adler32.h @@ -18,10 +18,13 @@ namespace Botan { class BOTAN_DLL Adler32 : public HashFunction { public: - void clear() { S1 = 1; S2 = 0; } std::string name() const { return "Adler32"; } + size_t output_length() const { return 4; } HashFunction* clone() const { return new Adler32; } - Adler32() : HashFunction(4) { clear(); } + + void clear() { S1 = 1; S2 = 0; } + + Adler32() { clear(); } ~Adler32() { clear(); } private: void add_data(const byte[], size_t); |