doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Functions
MD5.cpp File Reference
#include "../precompiled.h"

Go to the source code of this file.

Classes

struct  MD5_CTX
 

Macros

#define F1(x, y, z)   (z ^ (x & (y ^ z)))
 
#define F2(x, y, z)   F1(z, x, y)
 
#define F3(x, y, z)   (x ^ y ^ z)
 
#define F4(x, y, z)   (y ^ (x | ~z))
 
#define MD5STEP(f, w, x, y, z, data, s)   ( w += f(x, y, z) + data, w = w<<s | w>>(32-s), w += x )
 

Functions

void MD5_Transform (unsigned int state[4], unsigned int in[16])
 
void MD5_Init (MD5_CTX *ctx)
 
void MD5_Update (MD5_CTX *ctx, unsigned char const *buf, unsigned int len)
 
void MD5_Final (MD5_CTX *ctx, unsigned char digest[16])
 
unsigned long MD5_BlockChecksum (const void *data, int length)
 

Macro Definition Documentation

#define F1 (   x,
  y,
  z 
)    (z ^ (x & (y ^ z)))

Definition at line 38 of file MD5.cpp.

#define F2 (   x,
  y,
  z 
)    F1(z, x, y)

Definition at line 39 of file MD5.cpp.

#define F3 (   x,
  y,
  z 
)    (x ^ y ^ z)

Definition at line 40 of file MD5.cpp.

#define F4 (   x,
  y,
  z 
)    (y ^ (x | ~z))

Definition at line 41 of file MD5.cpp.

#define MD5STEP (   f,
  w,
  x,
  y,
  z,
  data,
  s 
)    ( w += f(x, y, z) + data, w = w<<s | w>>(32-s), w += x )

Definition at line 44 of file MD5.cpp.

Function Documentation

unsigned long MD5_BlockChecksum ( const void data,
int  length 
)

Definition at line 260 of file MD5.cpp.

void MD5_Final ( MD5_CTX ctx,
unsigned char  digest[16] 
)

Definition at line 215 of file MD5.cpp.

void MD5_Init ( MD5_CTX ctx)

Definition at line 148 of file MD5.cpp.

void MD5_Transform ( unsigned int  state[4],
unsigned int  in[16] 
)

Definition at line 55 of file MD5.cpp.

void MD5_Update ( MD5_CTX ctx,
unsigned char const buf,
unsigned int  len 
)

Definition at line 166 of file MD5.cpp.