md5.c File Reference

#include <memory.h>
#include <stdint.h>
#include "md5.h"

Include dependency graph for md5.c:

Go to the source code of this file.

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

static void MD5Transform (uint32_t buf[4], uint32_t in[16])
void MD5Init (struct MD5Context *ctx)
void MD5Update (struct MD5Context *ctx, const void *data, unsigned len)
void MD5Final (unsigned char digest[16], struct MD5Context *ctx)


Define Documentation

#define byteReverse ( buf,
len   ) 

Definition at line 27 of file md5.c.

Referenced by MD5Final(), and MD5Update().

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

Definition at line 50 of file md5.c.

Referenced by MD5Transform().

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

Definition at line 51 of file md5.c.

Referenced by MD5Transform().

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

Definition at line 52 of file md5.c.

Referenced by MD5Transform().

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

Definition at line 53 of file md5.c.

Referenced by MD5Transform().

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

Definition at line 56 of file md5.c.

Referenced by MD5Transform().


Function Documentation

void MD5Final ( unsigned char  digest[16],
struct MD5Context ctx 
)

Definition at line 221 of file md5.c.

References MD5Context::bits, MD5Context::buf, byteReverse, MD5Context::in, and MD5Transform().

Referenced by calculate_nonce(), digest_calc_ha1(), and digest_calc_response().

Here is the call graph for this function:

Here is the caller graph for this function:

void MD5Init ( struct MD5Context ctx  ) 

Definition at line 154 of file md5.c.

References MD5Context::bits, and MD5Context::buf.

Referenced by calculate_nonce(), digest_calc_ha1(), and digest_calc_response().

Here is the caller graph for this function:

static void MD5Transform ( uint32_t  buf[4],
uint32_t  in[16] 
) [static]

Definition at line 65 of file md5.c.

References F1, F2, F3, F4, and MD5STEP.

Referenced by MD5Final(), and MD5Update().

Here is the caller graph for this function:

void MD5Update ( struct MD5Context ctx,
const void *  data,
unsigned  len 
)

Definition at line 170 of file md5.c.

References MD5Context::bits, MD5Context::buf, byteReverse, MD5Context::in, and MD5Transform().

Referenced by calculate_nonce(), digest_calc_ha1(), and digest_calc_response().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on Thu May 10 14:38:02 2012 for GNU libmicrohttpd by  doxygen 1.4.7