diff options
Diffstat (limited to 'src/md5.h')
-rw-r--r-- | src/md5.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/md5.h b/src/md5.h new file mode 100644 index 0000000..f94f5a6 --- /dev/null +++ b/src/md5.h @@ -0,0 +1,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_ |