comparison src/xs_md5.h @ 14:f5d82424b0ed

Made song-length database support FINALLY work!
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 04 Jun 2003 18:00:03 +0000
parents 4bb09e405eab
children 575686094eb1
comparison
equal deleted inserted replaced
13:7e664541ea36 14:f5d82424b0ed
3 3
4 #ifdef __cplusplus 4 #ifdef __cplusplus
5 extern "C" { 5 extern "C" {
6 #endif 6 #endif
7 7
8 #include "xs_length.h" 8 #include <glib.h>
9 9
10 /* 10 /*
11 * Typedefs 11 * Typedefs
12 */ 12 */
13 typedef struct md5_state_s { 13 typedef struct md5_state_s {
14 guint32 count[2]; /* message length in bits, lsw first */ 14 guint32 count[2]; /* message length in bits, lsw first */
15 guint32 abcd[4]; /* digest buffer */ 15 guint32 abcd[4]; /* digest buffer */
16 guint8 buf[64]; /* accumulate block */ 16 guint8 buf[64]; /* accumulate block */
17 } t_xs_md5state; 17 } t_xs_md5state;
18
19 #define XS_MD5HASH_LENGTH (16)
20 #define XS_MD5HASH_LENGTH_CH (XS_MD5HASH_LENGTH * 2)
21
22 typedef guint8 t_xs_md5hash[XS_MD5HASH_LENGTH];
18 23
19 24
20 /* 25 /*
21 * Functions 26 * Functions
22 */ 27 */