1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#ifndef _MD5_H_ #define _MD5_H_ #include "hash.h" #include <openssl/md5.h> namespace Multihash { class MD5 : public Hash { private: MD5_CTX md5_ctx; protected: virtual void hash_update(const char* data, int length); virtual std::string hash_digest(); public: MD5(Hash* n = 0); }; } #endif // _MD5_H_