Shadowrun: Awakened 29 September 2011 - Build 871
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
cat::HMAC_MD5 Class Reference

#include <HMAC_MD5.hpp>

Inheritance diagram for cat::HMAC_MD5:

List of all members.

Public Member Functions

bool BeginMAC ()
void Crunch (const void *message, int bytes)
void End ()
void Generate (void *out, int bytes, int strengthening_rounds=0)
void RekeyFromMD5 (HMAC_MD5 *parent)
bool SetKey (ICryptHash *parent)
 ~HMAC_MD5 ()

Protected Member Functions

bool BeginKDF ()
bool BeginKey (int)
bool BeginPRNG ()
void HashComputation (const void *message, int blocks, u32 *NextState)

Protected Attributes

u64 byte_counter
u32 CachedFinalState [4]
u32 CachedInitialState [4]
u32 State [4]
int used_bytes
u8 Work [WORK_BYTES]

Static Protected Attributes

static const int DIGEST_BYTES = 16
static const int WORK_BYTES = 64
static const int WORK_WORDS = WORK_BYTES / sizeof(u32)

Detailed Description

Definition at line 50 of file HMAC_MD5.hpp.


Constructor & Destructor Documentation

cat::HMAC_MD5::~HMAC_MD5 ( )

Member Function Documentation

bool cat::HMAC_MD5::BeginKDF ( ) [inline, protected, virtual]

Implements cat::ICryptHash.

Definition at line 69 of file HMAC_MD5.hpp.

{ return false; }
bool cat::HMAC_MD5::BeginKey ( int  ) [inline, protected, virtual]

Implements cat::ICryptHash.

Definition at line 68 of file HMAC_MD5.hpp.

{ return false; }
bool cat::HMAC_MD5::BeginMAC ( ) [virtual]

Implements cat::ICryptHash.

bool cat::HMAC_MD5::BeginPRNG ( ) [inline, protected, virtual]

Implements cat::ICryptHash.

Definition at line 70 of file HMAC_MD5.hpp.

{ return false; }
void cat::HMAC_MD5::Crunch ( const void *  message,
int  bytes 
) [virtual]

Implements cat::ICryptHash.

void cat::HMAC_MD5::End ( ) [virtual]

Implements cat::ICryptHash.

void cat::HMAC_MD5::Generate ( void *  out,
int  bytes,
int  strengthening_rounds = 0 
) [virtual]

Implements cat::ICryptHash.

void cat::HMAC_MD5::HashComputation ( const void *  message,
int  blocks,
u32 NextState 
) [protected]
void cat::HMAC_MD5::RekeyFromMD5 ( HMAC_MD5 parent)
bool cat::HMAC_MD5::SetKey ( ICryptHash parent) [virtual]

Implements cat::ICryptHash.


Member Data Documentation

Definition at line 60 of file HMAC_MD5.hpp.

Definition at line 58 of file HMAC_MD5.hpp.

Definition at line 57 of file HMAC_MD5.hpp.

const int cat::HMAC_MD5::DIGEST_BYTES = 16 [static, protected]

Definition at line 53 of file HMAC_MD5.hpp.

u32 cat::HMAC_MD5::State[4] [protected]

Definition at line 61 of file HMAC_MD5.hpp.

int cat::HMAC_MD5::used_bytes [protected]

Definition at line 63 of file HMAC_MD5.hpp.

Definition at line 62 of file HMAC_MD5.hpp.

const int cat::HMAC_MD5::WORK_BYTES = 64 [static, protected]

Definition at line 54 of file HMAC_MD5.hpp.

const int cat::HMAC_MD5::WORK_WORDS = WORK_BYTES / sizeof(u32) [static, protected]

Definition at line 55 of file HMAC_MD5.hpp.


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

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net