aboutsummaryrefslogtreecommitdiffstats
path: root/src/checksum/crc24
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-10-29 13:51:27 +0000
committerlloyd <[email protected]>2010-10-29 13:51:27 +0000
commit633175a57a03ed9bf5a5e3577bfc26068c62b688 (patch)
tree086eb3a931d39fb35f8a3896a25a5cb38736a696 /src/checksum/crc24
parentdf0dfeb904485bacb8034d0468b4498130939acc (diff)
Remove BufferedComputation::OUTPUT_LENGTH
Diffstat (limited to 'src/checksum/crc24')
-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);