karazeh
A cross-platform software updating library.
md5_hasher.hpp
Go to the documentation of this file.
1 
21 #ifndef H_KARAZEH_HASHER_MD5_H
22 #define H_KARAZEH_HASHER_MD5_H
23 
24 #include "md5/md5.hpp"
25 #include "karazeh_export.h"
26 #include "karazeh/hasher.hpp"
27 
28 namespace kzh {
29 
31  {
32  public:
33 
34  inline md5_hasher() : hasher("MD5") { }
35  inline virtual ~md5_hasher() { }
36 
37  virtual digest_rc hex_digest(string_t const& data) const;
38  virtual digest_rc hex_digest(std::ifstream& src) const;
39  virtual digest_rc hex_digest(path_t const& path) const;
40  };
41 
42 } // end of namespace kzh
43 
44 #endif
Definition: hasher.hpp:28
boost::filesystem::path path_t
Definition: karazeh.hpp:57
md5_hasher()
Definition: md5_hasher.hpp:34
std::string string_t
Definition: karazeh.hpp:55
Definition: config.hpp:32
virtual ~md5_hasher()
Definition: md5_hasher.hpp:35
Definition: md5_hasher.hpp:30
Definition: config.hpp:27
Definition: hasher.hpp:39