Public Member Functions | Static Public Member Functions | Protected Member Functions

ibrcommon::HashStream Class Reference

#include <HashStream.h>

Inherited by ibrcommon::HMacStream.

List of all members.

Public Member Functions

 HashStream (const size_t 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 int overflow (int=std::char_traits< char >::eof())
virtual int underflow ()

Detailed Description

Definition at line 17 of file HashStream.h.


Constructor & Destructor Documentation

ibrcommon::HashStream::HashStream ( const size_t  hash,
const size_t  buffer = 2048 
)

Definition at line 10 of file HashStream.cpp.

ibrcommon::HashStream::~HashStream (  )  [virtual]

Definition at line 18 of file HashStream.cpp.


Member Function Documentation

std::string ibrcommon::HashStream::extract ( std::istream &  stream  )  [static]

Definition at line 24 of file HashStream.cpp.

Referenced by dtn::security::BundleAuthenticationBlock::calcMAC().

virtual void ibrcommon::HashStream::finalize ( char *  hash,
unsigned int &  size 
) [protected, pure virtual]

Implemented in ibrcommon::HMacStream.

int ibrcommon::HashStream::overflow ( int  c = std::char_traits<char>::eof()  )  [protected, virtual]

Definition at line 40 of file HashStream.cpp.

int ibrcommon::HashStream::sync (  )  [protected, virtual]

Definition at line 31 of file HashStream.cpp.

int ibrcommon::HashStream::underflow (  )  [protected, virtual]

Definition at line 65 of file HashStream.cpp.

virtual void ibrcommon::HashStream::update ( char *  buf,
const size_t  size 
) [protected, pure virtual]

Implemented in ibrcommon::HMacStream.


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