Hash_Base Class Reference

Base hash function wrapper class. More...

#include <crypto.h>

Inheritance diagram for Hash_Base:

RefCount IRefCount HashHMACSHA1 List of all members.

Public Member Functions

 Hash_Base ()
 Initialize this hash.
virtual ~Hash_Base ()
bool SetKey (DataChunk &Key)
 Set a hashing key (if required).
bool SetKey (DataChunkPtr &Key)
 Set a hashing key (if required).
virtual bool SetKey (size_t Size, const UInt8 *Key)
 Set a hashing key (if required).
void HashData (DataChunk &Data)
 Add the given data to the current hash being calculated.
void HashData (DataChunkPtr &Data)
 Add the given data to the current hash being calculated.
virtual void HashData (size_t Size, const UInt8 *Data)=0
 Add the given data to the current hash being calculated.
virtual DataChunkPtr GetHash (void)=0
 Get the finished hash value.

Detailed Description

Base hash function wrapper class.

Note:
Classes derived from this class must not include their own RefCount<> derivation TODO: This will allow KLVEObjects to automatically hash thier contents - NOT YET IMPLEMENTED


Constructor & Destructor Documentation

Hash_Base (  )  [inline]

Initialize this hash.

virtual ~Hash_Base (  )  [inline, virtual]


Member Function Documentation

bool SetKey ( DataChunk Key  )  [inline]

Set a hashing key (if required).

Returns:
True if key is accepted

bool SetKey ( DataChunkPtr Key  )  [inline]

Set a hashing key (if required).

Returns:
True if key is accepted

virtual bool SetKey ( size_t  Size,
const UInt8 Key 
) [inline, virtual]

Set a hashing key (if required).

Returns:
True if key is accepted

Reimplemented in HashHMACSHA1.

void HashData ( DataChunk Data  )  [inline]

Add the given data to the current hash being calculated.

void HashData ( DataChunkPtr Data  )  [inline]

Add the given data to the current hash being calculated.

virtual void HashData ( size_t  Size,
const UInt8 Data 
) [pure virtual]

Add the given data to the current hash being calculated.

Implemented in HashHMACSHA1.

virtual DataChunkPtr GetHash ( void   )  [pure virtual]

Get the finished hash value.

Implemented in HashHMACSHA1.


The documentation for this class was generated from the following file:
Generated on Mon Apr 2 15:20:57 2007 for MXFLib by  doxygen 1.5.1-p1