Niotso  git revision 558726a9f13d7c3423a683dd2f4323589b66c310
The New Implementation of The Sims Online
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Functions
md5.c File Reference
#include <memory.h>
#include "md5.h"

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 byteReverse (unsigned char *buf, unsigned longs)
 
void MD5Init (struct MD5Context *ctx)
 
void MD5Update (struct MD5Context *ctx, unsigned char *buf, unsigned len)
 
void MD5Final (digest, struct MD5Context *ctx)
 
void MD5Transform (buf, in)
 

Macro Definition Documentation

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

Function Documentation

void byteReverse ( unsigned char *  buf,
unsigned  longs 
)
void MD5Final ( digest  ,
struct MD5Context ctx 
)
void MD5Init ( struct MD5Context ctx)
void MD5Transform ( buf  ,
in   
)
void MD5Update ( struct MD5Context ctx,
unsigned char *  buf,
unsigned  len 
)