summaryrefslogtreecommitdiff
path: root/ed2k/ed2k.h
diff options
context:
space:
mode:
authorzyp <zyp@localhost>2006-01-26 20:07:15 +0100
committerzyp <zyp@localhost>2006-01-26 20:07:15 +0100
commit21559e9f4bd58b1504cc0fda7b0dceee0c833862 (patch)
tree119240a883b5bda7e4c11f60dc39206e87b1e04f /ed2k/ed2k.h
[project @ zyp-20060126190715-557e941315671b81]
[project @ 18] Moved disccat and pyanidb to the right location. Added pyqtmpc and ophidia.
Diffstat (limited to 'ed2k/ed2k.h')
-rw-r--r--ed2k/ed2k.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/ed2k/ed2k.h b/ed2k/ed2k.h
new file mode 100644
index 0000000..97feb61
--- /dev/null
+++ b/ed2k/ed2k.h
@@ -0,0 +1,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_