Pol  Revision:cb584c9
Pol::Crypt::MD5Crypt Class Reference

#include <md5.h>

Public Member Functions

 MD5Crypt ()
 
 ~MD5Crypt ()
 
void Encrypt (unsigned char *in, unsigned char *out, int len)
 
void Init (unsigned char *Data, unsigned int Size)
 

Static Protected Member Functions

static void append (md5_state *pms, const unsigned char *data, int nbytes)
 
static void finish (md5_state *pms, unsigned char digest[16])
 
static void process (md5_state *pms, const unsigned char *data)
 
static void start (md5_state *pms)
 

Protected Attributes

unsigned char Digest [16]
 
unsigned int TableIdx
 

Detailed Description

Definition at line 22 of file md5.h.

Constructor & Destructor Documentation

Pol::Crypt::MD5Crypt::MD5Crypt ( )

Definition at line 78 of file md5.cpp.

References Digest.

Pol::Crypt::MD5Crypt::~MD5Crypt ( )

Definition at line 82 of file md5.cpp.

Member Function Documentation

void Pol::Crypt::MD5Crypt::append ( md5_state pms,
const unsigned char *  data,
int  nbytes 
)
staticprotected

Definition at line 239 of file md5.cpp.

References Pol::Crypt::tagmd5_state::buf, Pol::Crypt::tagmd5_state::count, data, and process().

Referenced by finish(), and Init().

void Pol::Crypt::MD5Crypt::Encrypt ( unsigned char *  in,
unsigned char *  out,
int  len 
)

Definition at line 97 of file md5.cpp.

References Digest, and TableIdx.

Referenced by Pol::Crypt::CCryptTwofish::Encrypt().

void Pol::Crypt::MD5Crypt::finish ( md5_state pms,
unsigned char  digest[16] 
)
staticprotected

Definition at line 281 of file md5.cpp.

References Pol::Crypt::tagmd5_state::abcd, append(), Pol::Crypt::tagmd5_state::count, and data.

Referenced by Init().

void Pol::Crypt::MD5Crypt::Init ( unsigned char *  Data,
unsigned int  Size 
)

Definition at line 86 of file md5.cpp.

References append(), Digest, finish(), start(), and TableIdx.

Referenced by Pol::Crypt::CCryptTwofish::Init().

void Pol::Crypt::MD5Crypt::process ( md5_state pms,
const unsigned char *  data 
)
staticprotected

Definition at line 105 of file md5.cpp.

References Pol::Crypt::tagmd5_state::abcd, data, SET, T1, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T2, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T3, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T4, T40, T41, T42, T43, T44, T45, T46, T47, T48, T49, T5, T50, T51, T52, T53, T54, T55, T56, T57, T58, T59, T6, T60, T61, T62, T63, T64, T7, T8, and T9.

Referenced by append().

void Pol::Crypt::MD5Crypt::start ( md5_state pms)
staticprotected

Definition at line 230 of file md5.cpp.

References Pol::Crypt::tagmd5_state::abcd, Pol::Crypt::tagmd5_state::count, and T_MASK.

Referenced by Init().

Member Data Documentation

unsigned char Pol::Crypt::MD5Crypt::Digest[16]
protected

Definition at line 42 of file md5.h.

Referenced by Encrypt(), Init(), and MD5Crypt().

unsigned int Pol::Crypt::MD5Crypt::TableIdx
protected

Definition at line 41 of file md5.h.

Referenced by Encrypt(), and Init().


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