IBR-DTNSuite  0.10
ibrcommon::HMacStream Class Reference

#include <HMacStream.h>

Inheritance diagram for ibrcommon::HMacStream:
Inheritance graph
Collaboration diagram for ibrcommon::HMacStream:
Collaboration graph

Public Member Functions

 HMacStream (const unsigned char *const key, const int key_size)
 
virtual ~HMacStream ()
 
- Public Member Functions inherited from ibrcommon::HashStream
 HashStream (const unsigned int hash, const size_t buffer=2048)
 
virtual ~HashStream ()
 

Static Public Attributes

static const size_t BUFF_SIZE = 2048
 

Protected Member Functions

virtual void update (char *buf, const size_t size)
 
virtual void finalize (char *hash, unsigned int &size)
 
- Protected Member Functions inherited from ibrcommon::HashStream
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 ()
 

Additional Inherited Members

- Static Public Member Functions inherited from ibrcommon::HashStream
static std::string extract (std::istream &stream)
 

Detailed Description

Definition at line 30 of file HMacStream.h.

Constructor & Destructor Documentation

ibrcommon::HMacStream::HMacStream ( const unsigned char *const  key,
const int  key_size 
)

Definition at line 26 of file HMacStream.cpp.

ibrcommon::HMacStream::~HMacStream ( )
virtual

Definition at line 33 of file HMacStream.cpp.

Member Function Documentation

void ibrcommon::HMacStream::finalize ( char *  hash,
unsigned int &  size 
)
protectedvirtual

Implements ibrcommon::HashStream.

Definition at line 44 of file HMacStream.cpp.

void ibrcommon::HMacStream::update ( char *  buf,
const size_t  size 
)
protectedvirtual

Implements ibrcommon::HashStream.

Definition at line 38 of file HMacStream.cpp.

Member Data Documentation

const size_t ibrcommon::HMacStream::BUFF_SIZE = 2048
static

Definition at line 34 of file HMacStream.h.


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