Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

md5.c File Reference

Implementation of the MD5 algorithm by Ron Rivest, code Colin Plumb (public domain). More...

#include <string.h>
#include "md5.h"

Defines

#define byteReverse(buf, len)
#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 MD5Init (struct MD5Context *ctx)
void MD5Update (struct MD5Context *ctx, unsigned char const *buf, unsigned len)
void MD5Final (unsigned char digest[16], struct MD5Context *ctx)
void MD5Transform (uint32 buf[4], uint32 const in[16])


Detailed Description

Implementation of the MD5 algorithm by Ron Rivest, code Colin Plumb (public domain).


Define Documentation

#define byteReverse buf,
len   
 

#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 MD5Final unsigned char    digest[16],
struct MD5Context   ctx
 

void MD5Init struct MD5Context   ctx
 

void MD5Transform uint32    buf[4],
uint32 const    in[16]
 

void MD5Update struct MD5Context   ctx,
unsigned char const *    buf,
unsigned    len
 


Generated on Mon Apr 25 10:53:26 2005 for Hofmeier_FYP:libcomm by doxygen1.2.15