aboutsummaryrefslogtreecommitdiffstats
path: root/src/checksum/crc32/crc32.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/checksum/crc32/crc32.h')
-rw-r--r--src/checksum/crc32/crc32.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/checksum/crc32/crc32.h b/src/checksum/crc32/crc32.h
index aa8c366e5..dec3d0449 100644
--- a/src/checksum/crc32/crc32.h
+++ b/src/checksum/crc32/crc32.h
@@ -18,10 +18,13 @@ namespace Botan {
class BOTAN_DLL CRC32 : public HashFunction
{
public:
- void clear() { crc = 0xFFFFFFFF; }
std::string name() const { return "CRC32"; }
+ size_t output_length() const { return 4; }
HashFunction* clone() const { return new CRC32; }
- CRC32() : HashFunction(4) { clear(); }
+
+ void clear() { crc = 0xFFFFFFFF; }
+
+ CRC32() { clear(); }
~CRC32() { clear(); }
private:
void add_data(const byte[], size_t);