OpenVAS Scanner 23.23.1
md5.c File Reference
#include "md5.h"
#include <string.h>

Macros

#define F1(x, y, z)
#define F2(x, y, z)
#define F3(x, y, z)
#define F4(x, y, z)
#define MD5STEP(f, w, x, y, z, data, s)

Functions

static void MD5Transform (uint32 buf[4], uint32 const in[16])
static void byteReverse (unsigned char *buf, unsigned longs)
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 )
Value:
(z ^ (x & (y ^ z)))

◆ F2

#define F2 ( x,
y,
z )
Value:
F1 (z, x, y)
#define F1(x, y, z)
Definition md5.c:170

◆ F3

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

◆ F4

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

◆ MD5STEP

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

Function Documentation

◆ byteReverse()

void byteReverse ( unsigned char * buf,
unsigned longs )
static

◆ MD5Final()

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

◆ MD5Init()

void MD5Init ( struct MD5Context * ctx)

◆ MD5Transform()

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

◆ MD5Update()

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