Blame src/libFLAC/include/private/md5.h

Packit 8f7830
#ifndef FLAC__PRIVATE__MD5_H
Packit 8f7830
#define FLAC__PRIVATE__MD5_H
Packit 8f7830
Packit 8f7830
/*
Packit 8f7830
 * This is the header file for the MD5 message-digest algorithm.
Packit 8f7830
 * The algorithm is due to Ron Rivest.  This code was
Packit 8f7830
 * written by Colin Plumb in 1993, no copyright is claimed.
Packit 8f7830
 * This code is in the public domain; do with it what you wish.
Packit 8f7830
 *
Packit 8f7830
 * Equivalent code is available from RSA Data Security, Inc.
Packit 8f7830
 * This code has been tested against that, and is equivalent,
Packit 8f7830
 * except that you don't need to include two pages of legalese
Packit 8f7830
 * with every copy.
Packit 8f7830
 *
Packit 8f7830
 * To compute the message digest of a chunk of bytes, declare an
Packit 8f7830
 * MD5Context structure, pass it to MD5Init, call MD5Update as
Packit 8f7830
 * needed on buffers full of bytes, and then call MD5Final, which
Packit 8f7830
 * will fill a supplied 16-byte array with the digest.
Packit 8f7830
 *
Packit 8f7830
 * Changed so as no longer to depend on Colin Plumb's `usual.h'
Packit 8f7830
 * header definitions; now uses stuff from dpkg's config.h
Packit 8f7830
 *  - Ian Jackson <ijackson@nyx.cs.du.edu>.
Packit 8f7830
 * Still in the public domain.
Packit 8f7830
 *
Packit 8f7830
 * Josh Coalson: made some changes to integrate with libFLAC.
Packit 8f7830
 * Still in the public domain, with no warranty.
Packit 8f7830
 */
Packit 8f7830
Packit 8f7830
#include "FLAC/ordinals.h"
Packit 8f7830
Packit 8f7830
typedef union {
Packit 8f7830
	FLAC__byte *p8;
Packit 8f7830
	FLAC__int16 *p16;
Packit 8f7830
	FLAC__int32 *p32;
Packit 8f7830
} FLAC__multibyte;
Packit 8f7830
Packit 8f7830
typedef struct {
Packit 8f7830
	FLAC__uint32 in[16];
Packit 8f7830
	FLAC__uint32 buf[4];
Packit 8f7830
	FLAC__uint32 bytes[2];
Packit 8f7830
	FLAC__multibyte internal_buf;
Packit 8f7830
	size_t capacity;
Packit 8f7830
} FLAC__MD5Context;
Packit 8f7830
Packit 8f7830
void FLAC__MD5Init(FLAC__MD5Context *context);
Packit 8f7830
void FLAC__MD5Final(FLAC__byte digest[16], FLAC__MD5Context *context);
Packit 8f7830
Packit 8f7830
FLAC__bool FLAC__MD5Accumulate(FLAC__MD5Context *ctx, const FLAC__int32 * const signal[], unsigned channels, unsigned samples, unsigned bytes_per_sample);
Packit 8f7830
Packit 8f7830
#endif