karazeh
A cross-platform software updating library.
kzh::md5_hasher Class Reference

#include <md5_hasher.hpp>

+ Inheritance diagram for kzh::md5_hasher:
+ Collaboration diagram for kzh::md5_hasher:

Public Member Functions

 md5_hasher ()
 
virtual ~md5_hasher ()
 
virtual digest_rc hex_digest (string_t const &data) const
 
virtual digest_rc hex_digest (std::ifstream &src) const
 
virtual digest_rc hex_digest (path_t const &path) const
 
- Public Member Functions inherited from kzh::hasher
 hasher (string_t const &name)
 
virtual ~hasher ()
 
string_t const & name () const
 

Additional Inherited Members

- Protected Attributes inherited from kzh::hasher
string_t name_
 

Constructor & Destructor Documentation

kzh::md5_hasher::md5_hasher ( )
inline
virtual kzh::md5_hasher::~md5_hasher ( )
inlinevirtual

Member Function Documentation

hasher::digest_rc kzh::md5_hasher::hex_digest ( string_t const &  data) const
virtual

digests can be calculated directly off raw data

Implements kzh::hasher.

References kzh::hasher::digest_rc::digest, and kzh::hasher::digest_rc::valid.

Referenced by hex_digest(), and TEST_CASE().

hasher::digest_rc kzh::md5_hasher::hex_digest ( std::ifstream &  src) const
virtual

digests can be calculated off data in a valid file stream

Implements kzh::hasher.

References kzh::hasher::digest_rc::digest, kzh::logger::error(), and kzh::hasher::digest_rc::valid.

hasher::digest_rc kzh::md5_hasher::hex_digest ( path_t const &  path) const
virtual

Implements kzh::hasher.

References hex_digest().


The documentation for this class was generated from the following files: