diff options
author | zyp <zyp@localhost> | 2006-05-09 22:33:27 +0200 |
---|---|---|
committer | zyp <zyp@localhost> | 2006-05-09 22:33:27 +0200 |
commit | 0c4fc1e72770fc78d87891e5c031272fca59e409 (patch) | |
tree | 10682cb815cff09ec1e2ce9beb619c916f08616c /src/crc32.h | |
parent | 373495b3a1c8ccdcfece70bac69625b6823ccec0 (diff) |
[project @ zyp-20060509203327-c8c93b489da2ea46]
[project @ 27]
Multihash library rewrite complete.
Diffstat (limited to 'src/crc32.h')
-rw-r--r-- | src/crc32.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/crc32.h b/src/crc32.h index 646ccce..c43c417 100644 --- a/src/crc32.h +++ b/src/crc32.h @@ -1,11 +1,18 @@ #ifndef _CRC32_H_ #define _CRC32_H_ -namespace CRC32 { - extern int* crc_table; - int* generate_table(); - int reflect(int data, int bits); - int crc32(int crc, const char* data, int length); +#include "hash.h" + +namespace Multihash { + class CRC32 : public Hash { + private: + int crc_ctx; + protected: + virtual void hash_update(const char* data, int length); + virtual std::string hash_digest(); + public: + CRC32(Hash* n = 0); + }; } #endif // _CRC32_H_ |