summaryrefslogtreecommitdiff
path: root/src/ed2k.h
blob: 52a4dc5aec108f77b6f16b9da7c0e482e87d64af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _ED2K_H_
#define _ED2K_H_

#include "hash.h"

#include <openssl/md4.h>

namespace Multihash {
	class Ed2k : public Hash {
		private:
			MD4_CTX md4_partial;
			MD4_CTX md4_final;
			unsigned int size_total;
		protected:
			virtual void hash_update(const char* data, int length);
			virtual std::string hash_digest();
		public:
			Ed2k(Hash* n = 0);
	};
}

#endif // _ED2K_H_