RetroArch
Macros | Functions
md5.c File Reference
#include <rhash.h>
#include <string.h>
Include dependency graph for md5.c:
This graph shows which files directly or indirectly include this file:

Macros

#define MD5_F(x, y, z)   ((z) ^ ((x) & ((y) ^ (z))))
 
#define MD5_G(x, y, z)   ((y) ^ ((z) & ((x) ^ (y))))
 
#define MD5_H(x, y, z)   (((x) ^ (y)) ^ (z))
 
#define MD5_H2(x, y, z)   ((x) ^ ((y) ^ (z)))
 
#define MD5_I(x, y, z)   ((y) ^ ((x) | ~(z)))
 
#define MD5_STEP(f, a, b, c, d, x, t, s)
 
#define MD5_SET(n)
 
#define MD5_GET(n)   (ctx->block[(n)])
 

Functions

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

Macro Definition Documentation

◆ MD5_F

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

◆ MD5_G

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

◆ MD5_GET

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

◆ MD5_H

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

◆ MD5_H2

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

◆ MD5_I

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

◆ MD5_SET

#define MD5_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))
const GLvoid * ptr
Definition: nx_glsym.h:242
unsigned int MD5_u32plus
Definition: rhash.h:92
AVFormatContext * ctx
Definition: record_ffmpeg.c:247
GLdouble n
Definition: glext.h:8396

◆ MD5_STEP

#define MD5_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);
GLdouble GLdouble t
Definition: glext.h:6398
GLfloat f
Definition: glext.h:8207
GLdouble s
Definition: glext.h:6390
const GLubyte * c
Definition: glext.h:9812
GLboolean GLboolean GLboolean b
Definition: glext.h:6844
GLint GLint GLint GLint GLint x
Definition: glext.h:6295
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6844

Function Documentation

◆ MD5_body()

static const void* MD5_body ( MD5_CTX ctx,
const void data,
unsigned long  size 
)
static
Here is the caller graph for this function:

◆ MD5_Final()

void MD5_Final ( unsigned char *  result,
MD5_CTX ctx 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ MD5_Init()

void MD5_Init ( MD5_CTX ctx)
Here is the caller graph for this function:

◆ MD5_Update()

void MD5_Update ( MD5_CTX ctx,
const void data,
unsigned long  size 
)
Here is the call graph for this function:
Here is the caller graph for this function: