Mercurial > hg > xmms-sid
comparison src/xs_md5.h @ 4:4bb09e405eab
Added new files for 0.8
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 03 Jun 2003 11:03:04 +0000 |
parents | |
children | f5d82424b0ed |
comparison
equal
deleted
inserted
replaced
3:279b1e12df2b | 4:4bb09e405eab |
---|---|
1 #ifndef XS_MD5_H | |
2 #define XS_MD5_H | |
3 | |
4 #ifdef __cplusplus | |
5 extern "C" { | |
6 #endif | |
7 | |
8 #include "xs_length.h" | |
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 | |
19 | |
20 /* | |
21 * Functions | |
22 */ | |
23 void xs_md5_init(t_xs_md5state *pms); | |
24 void xs_md5_append(t_xs_md5state *pms, const guint8 *data, int nbytes); | |
25 void xs_md5_finish(t_xs_md5state *pms, t_xs_md5hash digest); | |
26 | |
27 | |
28 #ifdef __cplusplus | |
29 } | |
30 #endif | |
31 #endif /* XS_MD5_H */ |