diff options
author | lloyd <[email protected]> | 2010-10-29 13:51:27 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-10-29 13:51:27 +0000 |
commit | 633175a57a03ed9bf5a5e3577bfc26068c62b688 (patch) | |
tree | 086eb3a931d39fb35f8a3896a25a5cb38736a696 /src/hash/md2/md2.h | |
parent | df0dfeb904485bacb8034d0468b4498130939acc (diff) |
Remove BufferedComputation::OUTPUT_LENGTH
Diffstat (limited to 'src/hash/md2/md2.h')
-rw-r--r-- | src/hash/md2/md2.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/hash/md2/md2.h b/src/hash/md2/md2.h index 84f213811..84e0323f7 100644 --- a/src/hash/md2/md2.h +++ b/src/hash/md2/md2.h @@ -18,13 +18,14 @@ namespace Botan { class BOTAN_DLL MD2 : public HashFunction { public: - void clear(); std::string name() const { return "MD2"; } + size_t output_length() const { return 16; } + size_t hash_block_size() const { return 16; } HashFunction* clone() const { return new MD2; } - size_t hash_block_size() const { return 16; } + void clear(); - MD2() : HashFunction(16), X(48), checksum(16), buffer(16) + MD2() : X(48), checksum(16), buffer(16) { clear(); } private: void add_data(const byte[], size_t); |