HashHMACSHA1 Class Reference

HMAC-SHA1 hash function wrapper. More...

#include <crypto_asdcp.h>

Inheritance diagram for HashHMACSHA1:

Hash_Base RefCount IRefCount List of all members.

Public Member Functions

 HashHMACSHA1 ()
 Initialize this object.
bool SetKey (size_t Size, const UInt8 *Key)
 Set the key and start hashing.
void HashData (size_t Size, const UInt8 *Data)
 Add the given data to the current hash being calculated.
DataChunkPtr GetHash (void)
 Get the finished hash value.

Protected Attributes

UInt8 KeyBuffer_i [64]
 Inner key buffer, holds key xor 0x36.
UInt8 KeyBuffer_o [64]
 Outer key buffer, holds key xor 0x5c.
SHA_CTX Context
 Our SHA-1 context.
bool KeyInited
 True once the key has been initialized.

Detailed Description

HMAC-SHA1 hash function wrapper.

Calculates an HMAC-SHA1 hash for given data


Constructor & Destructor Documentation

HashHMACSHA1 (  )  [inline]

Initialize this object.


Member Function Documentation

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

Set the key and start hashing.

Reimplemented from Hash_Base.

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

Add the given data to the current hash being calculated.

Implements Hash_Base.

DataChunkPtr GetHash ( void   )  [virtual]

Get the finished hash value.

Implements Hash_Base.


Member Data Documentation

UInt8 KeyBuffer_i[64] [protected]

Inner key buffer, holds key xor 0x36.

UInt8 KeyBuffer_o[64] [protected]

Outer key buffer, holds key xor 0x5c.

SHA_CTX Context [protected]

Our SHA-1 context.

bool KeyInited [protected]

True once the key has been initialized.


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