NLMISC::CMD5Context Class Reference

#include <md5.h>

List of all members.

Public Member Functions

void init ()
void update (const uint8 *pBufIn, uint32 nBufLength)
void final (CHashKeyMD5 &out)

Private Member Functions

void transform (uint32 state[4], const uint8 block[64])
void encode (uint8 *output, const uint32 *input, uint len)
void decode (uint32 *output, const uint8 *input, uint len)

Private Attributes

uint32 State [4]
uint32 Count [2]
uint8 Buffer [64]

Static Private Attributes

static uint8 Padding [64]

Detailed Description

Definition at line 84 of file md5.h.


Member Function Documentation

void NLMISC::CMD5Context::decode ( uint32 output,
const uint8 input,
uint  len 
) [private]

Definition at line 462 of file md5.cpp.

Referenced by transform().

void NLMISC::CMD5Context::encode ( uint8 output,
const uint32 input,
uint  len 
) [private]

Definition at line 447 of file md5.cpp.

Referenced by final().

void NLMISC::CMD5Context::final ( CHashKeyMD5 out  ) 

Definition at line 282 of file md5.cpp.

References Buffer, Count, NLMISC::CHashKeyMD5::Data, encode(), Padding, State, and update().

Referenced by NLMISC::getMD5().

void NLMISC::CMD5Context::init ( void   ) 

Definition at line 236 of file md5.cpp.

References Count, and State.

Referenced by NLMISC::getMD5().

void NLMISC::CMD5Context::transform ( uint32  state[4],
const uint8  block[64] 
) [private]

Definition at line 361 of file md5.cpp.

References decode(), FF, GG, HH, II, S11, S12, S13, S14, S21, S22, S23, S24, S31, S32, S33, S34, S41, S42, S43, and S44.

Referenced by update().

void NLMISC::CMD5Context::update ( const uint8 pBufIn,
uint32  nBufLength 
)

Definition at line 247 of file md5.cpp.

References Buffer, Count, State, and transform().

Referenced by final(), and NLMISC::getMD5().


Member Data Documentation

Definition at line 97 of file md5.h.

Referenced by final(), and update().

Definition at line 96 of file md5.h.

Referenced by final(), init(), and update().

Initial value:
 {
    0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
}

Definition at line 99 of file md5.h.

Referenced by final().

Definition at line 95 of file md5.h.

Referenced by final(), init(), and update().


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

Generated on Thu Jan 7 08:30:18 2010 for NeL by  doxygen 1.6.1