| OLD | NEW |
| 1 #ifdef HAVE_CONFIG_H | 1 #ifdef HAVE_CONFIG_H |
| 2 # include <config.h> | 2 # include <config.h> |
| 3 #endif | 3 #endif |
| 4 | 4 |
| 5 #include <stdlib.h> /* for malloc() */ | 5 #include <stdlib.h> /* for malloc() */ |
| 6 #include <string.h> /* for memcpy() */ | 6 #include <string.h> /* for memcpy() */ |
| 7 | 7 |
| 8 #include "private/md5.h" | 8 #include "private/md5.h" |
| 9 #include "share/alloc.h" | 9 #include "share/alloc.h" |
| 10 #include "share/compat.h" |
| 10 #include "share/endswap.h" | 11 #include "share/endswap.h" |
| 11 | 12 |
| 12 /* | 13 /* |
| 13 * This code implements the MD5 message-digest algorithm. | 14 * This code implements the MD5 message-digest algorithm. |
| 14 * The algorithm is due to Ron Rivest. This code was | 15 * The algorithm is due to Ron Rivest. This code was |
| 15 * written by Colin Plumb in 1993, no copyright is claimed. | 16 * written by Colin Plumb in 1993, no copyright is claimed. |
| 16 * This code is in the public domain; do with it what you wish. | 17 * This code is in the public domain; do with it what you wish. |
| 17 * | 18 * |
| 18 * Equivalent code is available from RSA Data Security, Inc. | 19 * Equivalent code is available from RSA Data Security, Inc. |
| 19 * This code has been tested against that, and is equivalent, | 20 * This code has been tested against that, and is equivalent, |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 509 ctx->internal_buf.p8= tmp; | 510 ctx->internal_buf.p8= tmp; |
| 510 ctx->capacity = bytes_needed; | 511 ctx->capacity = bytes_needed; |
| 511 } | 512 } |
| 512 | 513 |
| 513 format_input_(&ctx->internal_buf, signal, channels, samples, bytes_per_s
ample); | 514 format_input_(&ctx->internal_buf, signal, channels, samples, bytes_per_s
ample); |
| 514 | 515 |
| 515 FLAC__MD5Update(ctx, ctx->internal_buf.p8, bytes_needed); | 516 FLAC__MD5Update(ctx, ctx->internal_buf.p8, bytes_needed); |
| 516 | 517 |
| 517 return true; | 518 return true; |
| 518 } | 519 } |
| OLD | NEW |