Hall-D Software
alpha
|
Digest base class. More...
#include <digest.h>
Public Member Functions | |
common (size_t s) | |
virtual digest_type | digest ()=0 |
return the digest value More... | |
digest_type | reset () |
resets the digest calculation More... | |
Protected Member Functions | |
int | sync () |
update digest with as much data as possible (overloaded from streambuf) More... | |
virtual void | calculate_digest ()=0 |
updates the digest must be inplemented by classes that implement this interface More... | |
virtual void | reset_digest ()=0 |
resets digest to it's initial value More... | |
std::streamsize | available () const |
remaining characters in the buffer More... | |
std::streamsize | taken () const |
number of characters in the buffer More... | |
Protected Attributes | |
xstream::buffer | buf |
uint64_t | length |
Digest base class.
general interface for digest functions
|
inline |
|
inlineprotectedinherited |
remaining characters in the buffer
Definition at line 28 of file common.h.
Referenced by xstream::base64::ostreambuf::~ostreambuf().
|
protectedpure virtualinherited |
updates the digest must be inplemented by classes that implement this interface
Referenced by xstream::digest::stream::sync().
|
pure virtual |
return the digest value
Referenced by xstream::digest::common< digest_type >::reset().
|
inline |
resets the digest calculation
returns the digest of data so far and for future calculations only considers data entered from now on
Definition at line 128 of file digest.h.
References xstream::digest::common< digest_type >::digest(), xstream::digest::stream::reset_digest(), and xstream::digest::stream::sync().
|
protectedpure virtualinherited |
resets digest to it's initial value
Referenced by xstream::digest::common< digest_type >::reset().
|
protectedinherited |
update digest with as much data as possible (overloaded from streambuf)
Definition at line 26 of file digest.cpp.
References xstream::buffer::buf, xstream::digest::stream::buf, xstream::digest::stream::calculate_digest(), xstream::digest::stream::length, LOG, and xstream::buffer::size.
Referenced by xstream::digest::stream::overflow(), xstream::digest::common< digest_type >::reset(), and xstream::digest::stream::xsputn().
|
inlineprotectedinherited |
number of characters in the buffer
Definition at line 36 of file common.h.
Referenced by xstream::digest::stream::xsputn().
|
protectedinherited |
buffer data to calculate digest
Definition at line 59 of file digest.h.
Referenced by xstream::digest::stream::stream(), and xstream::digest::stream::sync().
|
protectedinherited |
number of bytes read so far
Definition at line 60 of file digest.h.
Referenced by xstream::digest::stream::sync().