OpenVAS Libraries  9.0.1
Macros | Functions
md5.c File Reference
#include <string.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 MD5Init (struct MD5Context *ctx)
 
void MD5Update (struct MD5Context *ctx, unsigned char const *buf, unsigned len)
 
void MD5Final (unsigned char digest[16], struct MD5Context *ctx)
 

Macro Definition Documentation

◆ F1

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

◆ F2

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

◆ F3

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

◆ F4

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

◆ MD5STEP

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

Function Documentation

◆ MD5Final()

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

◆ MD5Init()

void MD5Init ( struct MD5Context ctx)

◆ MD5Update()

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