Mercurial > hg > xmms-sid
annotate 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 |
rev | line source |
---|---|
4 | 1 #ifndef XS_MD5_H |
2 #define XS_MD5_H | |
3 | |
4 #ifdef __cplusplus | |
5 extern "C" { | |
6 #endif | |
7 | |
14
f5d82424b0ed
Made song-length database support FINALLY work!
Matti Hamalainen <ccr@tnsp.org>
parents:
4
diff
changeset
|
8 #include <glib.h> |
4 | 9 |
10 /* | |
11 * Typedefs | |
12 */ | |
13 typedef struct md5_state_s { | |
14 guint32 count[2]; /* message length in bits, lsw first */ | |
15 guint32 abcd[4]; /* digest buffer */ | |
16 guint8 buf[64]; /* accumulate block */ | |
17 } t_xs_md5state; | |
18 | |
14
f5d82424b0ed
Made song-length database support FINALLY work!
Matti Hamalainen <ccr@tnsp.org>
parents:
4
diff
changeset
|
19 #define XS_MD5HASH_LENGTH (16) |
f5d82424b0ed
Made song-length database support FINALLY work!
Matti Hamalainen <ccr@tnsp.org>
parents:
4
diff
changeset
|
20 #define XS_MD5HASH_LENGTH_CH (XS_MD5HASH_LENGTH * 2) |
f5d82424b0ed
Made song-length database support FINALLY work!
Matti Hamalainen <ccr@tnsp.org>
parents:
4
diff
changeset
|
21 |
f5d82424b0ed
Made song-length database support FINALLY work!
Matti Hamalainen <ccr@tnsp.org>
parents:
4
diff
changeset
|
22 typedef guint8 t_xs_md5hash[XS_MD5HASH_LENGTH]; |
f5d82424b0ed
Made song-length database support FINALLY work!
Matti Hamalainen <ccr@tnsp.org>
parents:
4
diff
changeset
|
23 |
4 | 24 |
25 /* | |
26 * Functions | |
27 */ | |
28 void xs_md5_init(t_xs_md5state *pms); | |
29 void xs_md5_append(t_xs_md5state *pms, const guint8 *data, int nbytes); | |
30 void xs_md5_finish(t_xs_md5state *pms, t_xs_md5hash digest); | |
31 | |
32 | |
33 #ifdef __cplusplus | |
34 } | |
35 #endif | |
36 #endif /* XS_MD5_H */ |