Renesas / Mbed OS GR-PEACH_Audio_Playback_7InchLCD_Sample

Dependencies:   GR-PEACH_video R_BSP TLV320_RBSP USBHost_custom

Fork of GR-PEACH_Audio_Playback_Sample by Renesas

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers md5.h Source File

md5.h

00001 #ifndef FLAC__PRIVATE__MD5_H
00002 #define FLAC__PRIVATE__MD5_H
00003 
00004 /*
00005  * This is the header file for the MD5 message-digest algorithm.
00006  * The algorithm is due to Ron Rivest.  This code was
00007  * written by Colin Plumb in 1993, no copyright is claimed.
00008  * This code is in the public domain; do with it what you wish.
00009  *
00010  * Equivalent code is available from RSA Data Security, Inc.
00011  * This code has been tested against that, and is equivalent,
00012  * except that you don't need to include two pages of legalese
00013  * with every copy.
00014  *
00015  * To compute the message digest of a chunk of bytes, declare an
00016  * MD5Context structure, pass it to MD5Init, call MD5Update as
00017  * needed on buffers full of bytes, and then call MD5Final, which
00018  * will fill a supplied 16-byte array with the digest.
00019  *
00020  * Changed so as no longer to depend on Colin Plumb's `usual.h'
00021  * header definitions; now uses stuff from dpkg's config.h
00022  *  - Ian Jackson <ijackson@nyx.cs.du.edu>.
00023  * Still in the public domain.
00024  *
00025  * Josh Coalson: made some changes to integrate with libFLAC.
00026  * Still in the public domain, with no warranty.
00027  */
00028 
00029 #include "FLAC/ordinals.h"
00030 
00031 typedef union {
00032     FLAC__byte *p8;
00033     FLAC__int16 *p16;
00034     FLAC__int32 *p32;
00035 } FLAC__multibyte;
00036 
00037 typedef struct {
00038     FLAC__uint32 in[16];
00039     FLAC__uint32 buf[4];
00040     FLAC__uint32 bytes[2];
00041     FLAC__multibyte internal_buf;
00042     size_t capacity;
00043 } FLAC__MD5Context;
00044 
00045 void FLAC__MD5Init(FLAC__MD5Context *context);
00046 void FLAC__MD5Final(FLAC__byte digest[16], FLAC__MD5Context *context);
00047 
00048 FLAC__bool FLAC__MD5Accumulate(FLAC__MD5Context *ctx, const FLAC__int32 * const signal[], unsigned channels, unsigned samples, unsigned bytes_per_sample);
00049 
00050 #endif