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

#include <string>
#include <openssl/md4.h>

class Ed2k {
	private:
		MD4_CTX md4_partial;
		MD4_CTX md4_final;
		unsigned int size_total;
		std::string digest_str;
	public:
		Ed2k();
		void update(std::string data);
		std::string digest();
};

#endif // _ED2K_H_