aboutsummaryrefslogtreecommitdiffstats
path: root/src/checksum/crc24/crc24.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/checksum/crc24/crc24.h')
-rw-r--r--src/checksum/crc24/crc24.h7
1 files changed, 5 insertions, 2 deletions
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);