summaryrefslogtreecommitdiff
path: root/hash.h
diff options
context:
space:
mode:
authorzyp <zyp@localhost>2006-05-08 15:23:20 +0200
committerzyp <zyp@localhost>2006-05-08 15:23:20 +0200
commitdf9c15d40a50ed17baa7bdbb11ef6cca9d410cf3 (patch)
tree4ceb64d5c29e6bf487f8a6e7dde655a2c0b5f26a /hash.h
parent3a5b32f44a95b989e39273527fc924ad3d32465e (diff)
[project @ zyp-20060508132320-2c118d1a7e2505db]
[project @ 24] Converted from make to distutils.
Diffstat (limited to 'hash.h')
-rw-r--r--hash.h37
1 files changed, 0 insertions, 37 deletions
diff --git a/hash.h b/hash.h
deleted file mode 100644
index 3c7b9c9..0000000
--- a/hash.h
+++ /dev/null
@@ -1,37 +0,0 @@
-#ifndef _HASH_H_
-#define _HASH_H_
-
-#include <string>
-
-#include "ed2k.h"
-
-#include <openssl/md4.h>
-#include <openssl/md5.h>
-#include <openssl/sha.h>
-
-class Hash {
- private:
- bool finished;
-
- int crc32_ctx;
- std::string crc32_str;
-
- Ed2k ed2k_ctx;
- std::string ed2k_str;
-
- MD5_CTX md5_ctx;
- std::string md5_str;
-
- SHA_CTX sha1_ctx;
- std::string sha1_str;
-
- public:
- Hash();
- void update(std::string data);
- std::string crc32();
- std::string ed2k();
- std::string md5();
- std::string sha1();
-};
-
-#endif // _HASH_H_