summaryrefslogtreecommitdiff
path: root/src/crc32.h
blob: c43c4171115ab5769023bb4cc2352cc897ac47c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef _CRC32_H_
#define _CRC32_H_

#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_