20
23
* Still in the public domain.
22
25
* Josh Coalson: made some changes to integrate with libFLAC.
23
* Still in the public domain.
26
* Still in the public domain, with no warranty.
26
#ifndef FLAC__PRIVATE__MD5_H
27
#define FLAC__PRIVATE__MD5_H
29
#define md5byte unsigned char
31
29
#include "FLAC/ordinals.h"
33
struct FLAC__MD5Context {
34
33
FLAC__uint32 buf[4];
35
34
FLAC__uint32 bytes[2];
37
35
FLAC__byte *internal_buf;
41
void FLAC__MD5Init(struct FLAC__MD5Context *context);
42
void FLAC__MD5Update(struct FLAC__MD5Context *context, md5byte const *buf, unsigned len);
43
void FLAC__MD5Final(md5byte digest[16], struct FLAC__MD5Context *context);
44
void FLAC__MD5Transform(FLAC__uint32 buf[4], FLAC__uint32 const in[16]);
46
FLAC__bool FLAC__MD5Accumulate(struct FLAC__MD5Context *ctx, const FLAC__int32 * const signal[], unsigned channels, unsigned samples, unsigned bytes_per_sample);
39
void FLAC__MD5Init(FLAC__MD5Context *context);
40
void FLAC__MD5Final(FLAC__byte digest[16], FLAC__MD5Context *context);
42
FLAC__bool FLAC__MD5Accumulate(FLAC__MD5Context *ctx, const FLAC__int32 * const signal[], unsigned channels, unsigned samples, unsigned bytes_per_sample);