LLMD5 Class Reference

#include <llmd5.h>

List of all members.

Public Member Functions

 LLMD5 ()
void update (const uint1 *input, const uint4 input_length)
void update (std::istream &stream)
void update (FILE *file)
void finalize ()
 LLMD5 (const unsigned char *string)
 LLMD5 (std::istream &stream)
 LLMD5 (FILE *file)
 LLMD5 (const unsigned char *string, const unsigned int number)
void raw_digest (unsigned char *array)
void hex_digest (char *string)

Private Types

typedef unsigned int uint4
typedef unsigned short int uint2
typedef unsigned char uint1

Private Member Functions

void init ()
void transform (const uint1 *buffer)

Static Private Member Functions

static void encode (uint1 *dest, const uint4 *src, const uint4 length)
static void decode (uint4 *dest, const uint1 *src, const uint4 length)

Private Attributes

uint4 state [4]
uint4 count [2]
uint1 buffer [64]
uint1 digest [16]
uint1 finalized

Static Private Attributes

static const int BLOCK_LEN = 4096

Friends

std::ostream & operator<< (std::ostream &, LLMD5 context)


Detailed Description

Definition at line 82 of file llmd5.h.


Member Typedef Documentation

typedef unsigned char LLMD5::uint1 [private]

Definition at line 86 of file llmd5.h.

typedef unsigned short int LLMD5::uint2 [private]

Definition at line 85 of file llmd5.h.

typedef unsigned int LLMD5::uint4 [private]

Definition at line 84 of file llmd5.h.


Constructor & Destructor Documentation

LLMD5::LLMD5 (  ) 

Definition at line 92 of file llmd5.cpp.

References init().

LLMD5::LLMD5 ( const unsigned char *  string  ) 

Definition at line 271 of file llmd5.cpp.

References finalize(), init(), and update().

LLMD5::LLMD5 ( std::istream &  stream  ) 

Definition at line 250 of file llmd5.cpp.

References finalize(), init(), and update().

LLMD5::LLMD5 ( FILE *  file  ) 

Definition at line 240 of file llmd5.cpp.

References finalize(), init(), and update().

LLMD5::LLMD5 ( const unsigned char *  string,
const unsigned int  number 
)

Definition at line 258 of file llmd5.cpp.

References finalize(), init(), and update().


Member Function Documentation

void LLMD5::decode ( uint4 dest,
const uint1 src,
const uint4  length 
) [static, private]

Definition at line 524 of file llmd5.cpp.

References i, and j.

void LLMD5::encode ( uint1 dest,
const uint4 src,
const uint4  length 
) [static, private]

Definition at line 507 of file llmd5.cpp.

References i, and j.

Referenced by finalize().

void LLMD5::finalize (  ) 

Definition at line 201 of file llmd5.cpp.

References buffer, count, digest, encode(), finalized, state, and update().

Referenced by LLUUID::combine(), LLUUID::generate(), get_serial_number(), LLUUID::getRandomSeed(), idle_startup(), LLMD5(), and main().

void LLMD5::hex_digest ( char *  string  ) 

Definition at line 294 of file llmd5.cpp.

References digest, finalized, and i.

Referenced by get_serial_number(), idle_startup(), operator<<(), and LLFloaterImport::postBuild().

void LLMD5::init (  )  [private]

Definition at line 335 of file llmd5.cpp.

References count, finalized, and state.

Referenced by LLMD5().

void LLMD5::raw_digest ( unsigned char *  array  ) 

Definition at line 278 of file llmd5.cpp.

References digest, and finalized.

Referenced by LLUUID::combine(), LLUUID::generate(), LLUUID::getRandomSeed(), and main().

void LLMD5::transform ( const uint1 buffer  )  [private]

Referenced by update().

void LLMD5::update ( FILE *  file  ) 

Definition at line 160 of file llmd5.cpp.

References BLOCK_LEN, buffer, and update().

void LLMD5::update ( std::istream &  stream  ) 

Definition at line 180 of file llmd5.cpp.

References BLOCK_LEN, buffer, and update().

void LLMD5::update ( const uint1 input,
const uint4  input_length 
)

Definition at line 104 of file llmd5.cpp.

References buffer, count, finalized, NULL, and transform().

Referenced by LLUUID::combine(), finalize(), LLUUID::generate(), get_serial_number(), LLUUID::getRandomSeed(), idle_startup(), LLMD5(), main(), and update().


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
LLMD5  context 
) [friend]

Definition at line 320 of file llmd5.cpp.


Member Data Documentation

const int LLMD5::BLOCK_LEN = 4096 [static, private]

Definition at line 89 of file llmd5.h.

Referenced by update().

uint1 LLMD5::buffer[64] [private]

Definition at line 119 of file llmd5.h.

Referenced by finalize(), and update().

uint4 LLMD5::count[2] [private]

Definition at line 118 of file llmd5.h.

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

uint1 LLMD5::digest[16] [private]

Definition at line 120 of file llmd5.h.

Referenced by finalize(), hex_digest(), and raw_digest().

uint1 LLMD5::finalized [private]

Definition at line 121 of file llmd5.h.

Referenced by finalize(), hex_digest(), init(), raw_digest(), and update().

uint4 LLMD5::state[4] [private]

Definition at line 117 of file llmd5.h.

Referenced by finalize(), and init().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:30 2010 for Second Life Viewer by  doxygen 1.4.7