aboutsummaryrefslogtreecommitdiffstats
path: root/src/checksum/adler32
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/adler32
parentdf0dfeb904485bacb8034d0468b4498130939acc (diff)
Remove BufferedComputation::OUTPUT_LENGTH
Diffstat (limited to 'src/checksum/adler32')
-rw-r--r--src/checksum/adler32/adler32.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/checksum/adler32/adler32.h b/src/checksum/adler32/adler32.h
index 3a2441ad3..dc2872ca1 100644
--- a/src/checksum/adler32/adler32.h
+++ b/src/checksum/adler32/adler32.h
@@ -18,10 +18,13 @@ namespace Botan {
class BOTAN_DLL Adler32 : public HashFunction
{
public:
- void clear() { S1 = 1; S2 = 0; }
std::string name() const { return "Adler32"; }
+ size_t output_length() const { return 4; }
HashFunction* clone() const { return new Adler32; }
- Adler32() : HashFunction(4) { clear(); }
+
+ void clear() { S1 = 1; S2 = 0; }
+
+ Adler32() { clear(); }
~Adler32() { clear(); }
private:
void add_data(const byte[], size_t);