Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Macros | Functions
md5.c File Reference
#include <memory.h>
#include "md5.h"

Go to the source code of this file.

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 byteReverse (unsigned char *buf, unsigned longs)
 
void MD5Transform (uint32 buf[4], uint32 in[16])
 
void MD5Init (struct MD5Context *ctx)
 
void MD5Update (struct MD5Context *ctx, unsigned char *buf, unsigned len)
 
void MD5Final (unsigned char digest[16], struct MD5Context *ctx)
 

Macro Definition Documentation

◆ F1

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

Definition at line 159 of file md5.c.

Referenced by MD5Transform().

◆ F2

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

Definition at line 160 of file md5.c.

Referenced by MD5Transform().

◆ F3

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

Definition at line 161 of file md5.c.

Referenced by MD5Transform().

◆ F4

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

Definition at line 162 of file md5.c.

Referenced by MD5Transform().

◆ MD5STEP

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

Definition at line 165 of file md5.c.

Referenced by MD5Transform().

Function Documentation

◆ byteReverse()

void byteReverse ( unsigned char *  buf,
unsigned  longs 
)

Definition at line 33 of file md5.c.

References MD5Transform().

Referenced by MD5Final(), and MD5Update().

◆ MD5Final()

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

Definition at line 114 of file md5.c.

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

Referenced by vl::MD5CheckSum::compute().

◆ MD5Init()

void MD5Init ( struct MD5Context ctx)

Definition at line 51 of file md5.c.

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

Referenced by vl::MD5CheckSum::compute().

◆ MD5Transform()

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

Definition at line 173 of file md5.c.

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

Referenced by byteReverse(), MD5Final(), and MD5Update().

◆ MD5Update()

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

Definition at line 66 of file md5.c.

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

Referenced by vl::MD5CheckSum::compute().