LMMS
Loading...
Searching...
No Matches
md5.c File Reference
#include <stdlib.h>
#include <string.h>
#include "include/private/md5.h"
#include "../alloc.h"
#include "../endswap.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, in, s)
#define byteSwap(buf, words)
#define byteSwapX16(buf)
#define BYTES_CHANNEL_SELECTOR(bytes, 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 )
Value:
(bytes * 100 + channels)

◆ byteSwap

#define byteSwap ( buf,
words )

◆ byteSwapX16

#define byteSwapX16 ( buf)

◆ F1

#define F1 ( x,
y,
z )
Value:
(z ^ (x & (y ^ z)))
unsigned z
Definition inflate.c:1589
int y
Definition inflate.c:1588
unsigned x[BMAX+1]
Definition inflate.c:1586

◆ F2

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

◆ 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,
in,
s )
Value:
(w += f(x,y,z) + in, w = (w<<s | w>>(32-s)) + x)
UINT_D64 w
Definition inflate.c:942
unsigned s
Definition inflate.c:1555
unsigned f
Definition inflate.c:1572
float in
Definition lilv_test.c:1460

Function Documentation

◆ FLAC__MD5Accumulate()

FLAC__bool FLAC__MD5Accumulate ( FLAC__MD5Context * ctx,
const FLAC__int32 *const signal[],
unsigned channels,
unsigned samples,
unsigned bytes_per_sample )

◆ FLAC__MD5Final()

void FLAC__MD5Final ( FLAC__byte digest[16],
FLAC__MD5Context * ctx )

◆ FLAC__MD5Init()

void FLAC__MD5Init ( FLAC__MD5Context * ctx)

◆ FLAC__MD5Transform()

void FLAC__MD5Transform ( FLAC__uint32 buf[4],
FLAC__uint32 const in[16] )
static

◆ FLAC__MD5Update()

void FLAC__MD5Update ( FLAC__MD5Context * ctx,
FLAC__byte const * buf,
unsigned len )
static

◆ format_input_()

void format_input_ ( FLAC__multibyte * mbuf,
const FLAC__int32 *const signal[],
unsigned channels,
unsigned samples,
unsigned bytes_per_sample )
static