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 <string.h>
#include "md5.h"

Go to the source code of this file.

Macros

#define F(x, y, z)   ((z) ^ ((x) & ((y) ^ (z))))
 
#define G(x, y, z)   ((y) ^ ((z) & ((x) ^ (y))))
 
#define H(x, y, z)   ((x) ^ (y) ^ (z))
 
#define I(x, y, z)   ((y) ^ ((x) | ~(z)))
 
#define STEP(f, a, b, c, d, x, t, s)
 
#define SET(n)
 
#define GET(n)   (ctx->block[(n)])
 

Functions

void MD5_Init (MD5_CTX *ctx)
 
void MD5_Update (MD5_CTX *ctx, void *data, unsigned long size)
 
void MD5_Final (unsigned char *result, MD5_CTX *ctx)
 

Macro Definition Documentation

◆ F

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

Definition at line 51 of file md5.c.

Referenced by vl::Geometry::computeTangentSpace(), TIFFCIELabToXYZ(), and TIFFYCbCrToRGBInit().

◆ G

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

Definition at line 52 of file md5.c.

Referenced by read_gif_map(), and read_ppm_map().

◆ GET

#define GET (   n)    (ctx->block[(n)])

Definition at line 84 of file md5.c.

◆ H

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

Definition at line 53 of file md5.c.

◆ I

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

Definition at line 54 of file md5.c.

◆ SET

#define SET (   n)
Value:
(ctx->block[(n)] = \
(MD5_u32plus)ptr[(n) * 4] | \
((MD5_u32plus)ptr[(n) * 4 + 1] << 8) | \
((MD5_u32plus)ptr[(n) * 4 + 2] << 16) | \
((MD5_u32plus)ptr[(n) * 4 + 3] << 24))
png_voidp ptr
Definition: png.h:1908
unsigned int MD5_u32plus
Definition: md5.h:32
GLdouble n

Definition at line 78 of file md5.c.

◆ STEP

#define STEP (   f,
  a,
  b,
  c,
  d,
  x,
  t,
  s 
)
Value:
(a) += f((b), (c), (d)) + (x) + (t); \
(a) = (((a) << (s)) | (((a) & 0xffffffff) >> (32 - (s)))); \
(a) += (b);
GLboolean GLboolean GLboolean GLboolean a
GLint GLint GLint GLint GLint x
GLboolean GLboolean GLboolean b
const GLubyte * c
GLdouble s
GLdouble GLdouble t
GLfloat f

Definition at line 59 of file md5.c.

Function Documentation

◆ MD5_Final()

void MD5_Final ( unsigned char *  result,
MD5_CTX ctx 
)

Definition at line 244 of file md5.c.

References MD5_CTX::buffer, free(), and MD5_CTX::lo.

Referenced by FT_Render_Glyph_Internal().

◆ MD5_Init()

void MD5_Init ( MD5_CTX ctx)

Definition at line 199 of file md5.c.

References MD5_CTX::a, MD5_CTX::b, MD5_CTX::c, MD5_CTX::d, MD5_CTX::hi, and MD5_CTX::lo.

Referenced by FT_Render_Glyph_Internal().

◆ MD5_Update()

void MD5_Update ( MD5_CTX ctx,
void data,
unsigned long  size 
)

Definition at line 210 of file md5.c.

References MD5_CTX::buffer, free(), MD5_CTX::hi, and MD5_CTX::lo.

Referenced by FT_Render_Glyph_Internal().