IBR-DTNSuite
0.12
|
#include <HashStream.h>
Public Member Functions | |
HashStream (const unsigned int hash, const size_t buffer=2048) | |
virtual | ~HashStream () |
Static Public Member Functions | |
static std::string | extract (std::istream &stream) |
Protected Member Functions | |
virtual void | update (char *buf, const size_t size)=0 |
virtual void | finalize (char *hash, unsigned int &size)=0 |
virtual int | sync () |
virtual std::char_traits< char > ::int_type | overflow (std::char_traits< char >::int_type=std::char_traits< char >::eof()) |
virtual std::char_traits< char > ::int_type | underflow () |
Definition at line 32 of file HashStream.h.
ibrcommon::HashStream::HashStream | ( | const unsigned int | hash, |
const size_t | buffer = 2048 |
||
) |
Definition at line 27 of file HashStream.cpp.
|
virtual |
Definition at line 35 of file HashStream.cpp.
|
static |
Definition at line 39 of file HashStream.cpp.
Referenced by dtn::security::BundleAuthenticationBlock::calcMAC().
|
protectedpure virtual |
Implemented in ibrcommon::HMacStream.
Referenced by underflow().
|
protectedvirtual |
Definition at line 55 of file HashStream.cpp.
References update().
Referenced by sync().
|
protectedvirtual |
Definition at line 46 of file HashStream.cpp.
References overflow().
|
protectedvirtual |
Definition at line 80 of file HashStream.cpp.
References finalize().
|
protectedpure virtual |
Implemented in ibrcommon::HMacStream.
Referenced by overflow().