Defines | Functions

md5.c File Reference

Include dependency graph for md5.c:

Defines

#define REVERSE(p, n)
#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 MD5_DO(f, w, x, y, z, data, s)   ( w += f(x, y, z) + data, w = w<<s | w>>(32-s), w += x )

Functions

static void DigestMD5 (struct md5_s *p_md5, uint32_t *p_input)
void InitMD5 (struct md5_s *p_md5)
void AddMD5 (struct md5_s *p_md5, const void *p_src, size_t i_len)
void EndMD5 (struct md5_s *p_md5)

Define Documentation

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

Referenced by DigestMD5().

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

Referenced by DigestMD5().

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

Referenced by DigestMD5().

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

Referenced by DigestMD5().

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

Referenced by DigestMD5().

#define REVERSE (   p,
  n 
)

Referenced by DigestMD5(), and EndMD5().


Function Documentation

void AddMD5 ( struct md5_s p_md5,
const void *  p_src,
size_t  i_len 
)
static void DigestMD5 ( struct md5_s p_md5,
uint32_t *  p_input 
) [static]

References F1, F2, F3, F4, MD5_DO, md5_s::p_digest, and REVERSE.

Referenced by AddMD5(), and EndMD5().

void EndMD5 ( struct md5_s p_md5  ) 
void InitMD5 ( struct md5_s p_md5  ) 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines