diff options
author | zyp <zyp@localhost> | 2006-05-09 22:33:27 +0200 |
---|---|---|
committer | zyp <zyp@localhost> | 2006-05-09 22:33:27 +0200 |
commit | 0c4fc1e72770fc78d87891e5c031272fca59e409 (patch) | |
tree | 10682cb815cff09ec1e2ce9beb619c916f08616c /src/multihash.h | |
parent | 373495b3a1c8ccdcfece70bac69625b6823ccec0 (diff) |
[project @ zyp-20060509203327-c8c93b489da2ea46]
[project @ 27]
Multihash library rewrite complete.
Diffstat (limited to 'src/multihash.h')
-rw-r--r-- | src/multihash.h | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/src/multihash.h b/src/multihash.h deleted file mode 100644 index 5af339f..0000000 --- a/src/multihash.h +++ /dev/null @@ -1,37 +0,0 @@ -#ifndef _MULTIHASH_H_ -#define _MULTIHASH_H_ - -#include <string> - -#include "ed2k.h" - -#include <openssl/md4.h> -#include <openssl/md5.h> -#include <openssl/sha.h> - -class Multihash { - 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: - Multihash(); - void update(std::string data); - std::string crc32(); - std::string ed2k(); - std::string md5(); - std::string sha1(); -}; - -#endif // _HASH_H_ |