RetroArch
Macros | Functions
md5.c File Reference
#include <stdlib.h>
#include <string.h>
#include "include/private/md5.h"
#include "include/share/alloc.h"
#include "include/share/endswap.h"
Include dependency graph for md5.c:

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, in, s)   (w += f(x,y,z) + in, w = (w<<s | w>>(32-s)) + x)
 
#define byteSwap(buf, words)
 
#define byteSwapX16(buf)
 
#define BYTES_CHANNEL_SELECTOR(bytes, channels)   (bytes * 100 + channels)
 

Functions

static void FLAC__MD5Transform (FLAC__uint32 buf[4], FLAC__uint32 const in[16])
 
static void FLAC__MD5Update (FLAC__MD5Context *ctx, FLAC__byte const *buf, unsigned len)
 
void FLAC__MD5Init (FLAC__MD5Context *ctx)
 
void FLAC__MD5Final (FLAC__byte digest[16], FLAC__MD5Context *ctx)
 
static void format_input_ (FLAC__multibyte *mbuf, const FLAC__int32 *const signal[], unsigned channels, unsigned samples, unsigned bytes_per_sample)
 
FLAC__bool FLAC__MD5Accumulate (FLAC__MD5Context *ctx, const FLAC__int32 *const signal[], unsigned channels, unsigned samples, unsigned bytes_per_sample)
 

Macro Definition Documentation

◆ BYTES_CHANNEL_SELECTOR

#define BYTES_CHANNEL_SELECTOR (   bytes,
  channels 
)    (bytes * 100 + channels)

◆ byteSwap

#define byteSwap (   buf,
  words 
)

◆ byteSwapX16

#define byteSwapX16 (   buf)

◆ F1

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

◆ F2

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

◆ F3

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

◆ F4

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

◆ MD5STEP

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

Function Documentation

◆ FLAC__MD5Accumulate()

FLAC__bool FLAC__MD5Accumulate ( FLAC__MD5Context ctx,
const FLAC__int32 *const  signal[],
unsigned  channels,
unsigned  samples,
unsigned  bytes_per_sample 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ FLAC__MD5Final()

void FLAC__MD5Final ( FLAC__byte  digest[16],
FLAC__MD5Context ctx 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ FLAC__MD5Init()

void FLAC__MD5Init ( FLAC__MD5Context ctx)
Here is the caller graph for this function:

◆ FLAC__MD5Transform()

static void FLAC__MD5Transform ( FLAC__uint32  buf[4],
FLAC__uint32 const  in[16] 
)
static
Here is the caller graph for this function:

◆ FLAC__MD5Update()

static void FLAC__MD5Update ( FLAC__MD5Context ctx,
FLAC__byte const buf,
unsigned  len 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ format_input_()

static void format_input_ ( FLAC__multibyte mbuf,
const FLAC__int32 *const  signal[],
unsigned  channels,
unsigned  samples,
unsigned  bytes_per_sample 
)
static
Here is the caller graph for this function: