md5.c File Reference
#include "squid.h"
#include "md5.h"
Include dependency graph for md5.c:

Go to the source code of this file.

Macros

#define byteSwap(buf, words)
 
#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, in, s)   (w += f(x,y,z) + in, w = (w<<s | w>>(32-s)) + x)
 

Functions

void SquidMD5Init (struct SquidMD5Context *ctx)
 
void SquidMD5Update (struct SquidMD5Context *ctx, const void *_buf, unsigned len)
 
void SquidMD5Final (unsigned char digest[16], struct SquidMD5Context *ctx)
 
void SquidMD5Transform (uint32_t buf[4], uint32_t const in[16])
 

Macro Definition Documentation

#define byteSwap (   buf,
  words 
)

Definition at line 65 of file md5.c.

Referenced by SquidMD5Final(), and SquidMD5Update().

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

Definition at line 166 of file md5.c.

Referenced by SquidMD5Transform().

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

Definition at line 167 of file md5.c.

Referenced by SquidMD5Transform().

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

Definition at line 168 of file md5.c.

Referenced by SquidMD5Transform().

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

Definition at line 169 of file md5.c.

Referenced by SquidMD5Transform().

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

Definition at line 172 of file md5.c.

Referenced by SquidMD5Transform().

Function Documentation

void SquidMD5Final ( unsigned char  digest[16],
struct SquidMD5Context ctx 
)
void SquidMD5Transform ( uint32_t  buf[4],
uint32_t const  in[16] 
)

Definition at line 181 of file md5.c.

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

Referenced by SquidMD5Final(), and SquidMD5Update().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors