| OLD | NEW |
| 1 #ifndef FLAC__PRIVATE__MD5_H | 1 #ifndef FLAC__PRIVATE__MD5_H |
| 2 #define FLAC__PRIVATE__MD5_H | 2 #define FLAC__PRIVATE__MD5_H |
| 3 | 3 |
| 4 /* | 4 /* |
| 5 * This is the header file for the MD5 message-digest algorithm. | 5 * This is the header file for the MD5 message-digest algorithm. |
| 6 * The algorithm is due to Ron Rivest. This code was | 6 * The algorithm is due to Ron Rivest. This code was |
| 7 * written by Colin Plumb in 1993, no copyright is claimed. | 7 * written by Colin Plumb in 1993, no copyright is claimed. |
| 8 * This code is in the public domain; do with it what you wish. | 8 * This code is in the public domain; do with it what you wish. |
| 9 * | 9 * |
| 10 * Equivalent code is available from RSA Data Security, Inc. | 10 * Equivalent code is available from RSA Data Security, Inc. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * header definitions; now uses stuff from dpkg's config.h | 21 * header definitions; now uses stuff from dpkg's config.h |
| 22 * - Ian Jackson <ijackson@nyx.cs.du.edu>. | 22 * - Ian Jackson <ijackson@nyx.cs.du.edu>. |
| 23 * Still in the public domain. | 23 * Still in the public domain. |
| 24 * | 24 * |
| 25 * Josh Coalson: made some changes to integrate with libFLAC. | 25 * Josh Coalson: made some changes to integrate with libFLAC. |
| 26 * Still in the public domain, with no warranty. | 26 * Still in the public domain, with no warranty. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #include "FLAC/ordinals.h" | 29 #include "FLAC/ordinals.h" |
| 30 | 30 |
| 31 typedef union { |
| 32 FLAC__byte *p8; |
| 33 FLAC__int16 *p16; |
| 34 FLAC__int32 *p32; |
| 35 } FLAC__multibyte; |
| 36 |
| 31 typedef struct { | 37 typedef struct { |
| 32 FLAC__uint32 in[16]; | 38 FLAC__uint32 in[16]; |
| 33 FLAC__uint32 buf[4]; | 39 FLAC__uint32 buf[4]; |
| 34 FLAC__uint32 bytes[2]; | 40 FLAC__uint32 bytes[2]; |
| 35 » FLAC__byte *internal_buf; | 41 » FLAC__multibyte internal_buf; |
| 36 size_t capacity; | 42 size_t capacity; |
| 37 } FLAC__MD5Context; | 43 } FLAC__MD5Context; |
| 38 | 44 |
| 39 void FLAC__MD5Init(FLAC__MD5Context *context); | 45 void FLAC__MD5Init(FLAC__MD5Context *context); |
| 40 void FLAC__MD5Final(FLAC__byte digest[16], FLAC__MD5Context *context); | 46 void FLAC__MD5Final(FLAC__byte digest[16], FLAC__MD5Context *context); |
| 41 | 47 |
| 42 FLAC__bool FLAC__MD5Accumulate(FLAC__MD5Context *ctx, const FLAC__int32 * const
signal[], unsigned channels, unsigned samples, unsigned bytes_per_sample); | 48 FLAC__bool FLAC__MD5Accumulate(FLAC__MD5Context *ctx, const FLAC__int32 * const
signal[], unsigned channels, unsigned samples, unsigned bytes_per_sample); |
| 43 | 49 |
| 44 #endif | 50 #endif |
| OLD | NEW |