From 633175a57a03ed9bf5a5e3577bfc26068c62b688 Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 29 Oct 2010 13:51:27 +0000 Subject: Remove BufferedComputation::OUTPUT_LENGTH --- src/checksum/crc24/crc24.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/checksum/crc24') diff --git a/src/checksum/crc24/crc24.h b/src/checksum/crc24/crc24.h index f9786dfa4..b5faebcee 100644 --- a/src/checksum/crc24/crc24.h +++ b/src/checksum/crc24/crc24.h @@ -18,10 +18,13 @@ namespace Botan { class BOTAN_DLL CRC24 : public HashFunction { public: - void clear() { crc = 0xB704CE; } std::string name() const { return "CRC24"; } + size_t output_length() const { return 3; } HashFunction* clone() const { return new CRC24; } - CRC24() : HashFunction(3) { clear(); } + + void clear() { crc = 0xB704CE; } + + CRC24() { clear(); } ~CRC24() { clear(); } private: void add_data(const byte[], size_t); -- cgit v1.2.3