summaryrefslogtreecommitdiff
path: root/ed2k.h
diff options
context:
space:
mode:
authorzyp <zyp@localhost>2006-05-08 14:54:40 +0200
committerzyp <zyp@localhost>2006-05-08 14:54:40 +0200
commit3a5b32f44a95b989e39273527fc924ad3d32465e (patch)
treead977e8cdaf459f5a8b0c08f120a8ed604b5f561 /ed2k.h
[project @ zyp-20060508125440-a3cc6ea65de180a0]
[project @ 23] Seperated from disccat to a standalone project.
Diffstat (limited to 'ed2k.h')
-rw-r--r--ed2k.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/ed2k.h b/ed2k.h
new file mode 100644
index 0000000..1be7302
--- /dev/null
+++ b/ed2k.h
@@ -0,0 +1,17 @@
+#ifndef _ED2K_H_
+#define _ED2K_H_
+
+#include <openssl/md4.h>
+
+class Ed2k {
+ private:
+ MD4_CTX md4_partial;
+ MD4_CTX md4_final;
+ unsigned int size_total;
+ public:
+ Ed2k();
+ void update(const char* data, int length);
+ char* digest();
+};
+
+#endif // _ED2K_H_