Mercurial > hg > xmms-sid
annotate src/xs_md5.h @ 627:109445214255
More gtk_signal_connect() -> XS_SIGNAL_CONNECT() changes.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 03 Sep 2007 02:46:02 +0000 |
parents | a3fdd2d6c056 |
children | acaba070cf49 |
rev | line source |
---|---|
4 | 1 #ifndef XS_MD5_H |
2 #define XS_MD5_H | |
3 | |
214 | 4 #include <glib.h> |
5 | |
4 | 6 #ifdef __cplusplus |
7 extern "C" { | |
8 #endif | |
9 | |
491
a3fdd2d6c056
Changed the MD5 implementation, the previous had a license that was somewhat
Matti Hamalainen <ccr@tnsp.org>
parents:
379
diff
changeset
|
10 /* Typedefs |
4 | 11 */ |
12 typedef struct md5_state_s { | |
491
a3fdd2d6c056
Changed the MD5 implementation, the previous had a license that was somewhat
Matti Hamalainen <ccr@tnsp.org>
parents:
379
diff
changeset
|
13 guint32 bits[2]; /* message length in bits, lsw first */ |
a3fdd2d6c056
Changed the MD5 implementation, the previous had a license that was somewhat
Matti Hamalainen <ccr@tnsp.org>
parents:
379
diff
changeset
|
14 guint32 buf[4]; /* digest buffer */ |
a3fdd2d6c056
Changed the MD5 implementation, the previous had a license that was somewhat
Matti Hamalainen <ccr@tnsp.org>
parents:
379
diff
changeset
|
15 guint8 in[64]; /* accumulate block */ |
4 | 16 } t_xs_md5state; |
17 | |
14
f5d82424b0ed
Made song-length database support FINALLY work!
Matti Hamalainen <ccr@tnsp.org>
parents:
4
diff
changeset
|
18 #define XS_MD5HASH_LENGTH (16) |
f5d82424b0ed
Made song-length database support FINALLY work!
Matti Hamalainen <ccr@tnsp.org>
parents:
4
diff
changeset
|
19 #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
|
20 |
f5d82424b0ed
Made song-length database support FINALLY work!
Matti Hamalainen <ccr@tnsp.org>
parents:
4
diff
changeset
|
21 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
|
22 |
4 | 23 |
491
a3fdd2d6c056
Changed the MD5 implementation, the previous had a license that was somewhat
Matti Hamalainen <ccr@tnsp.org>
parents:
379
diff
changeset
|
24 /* Functions |
4 | 25 */ |
491
a3fdd2d6c056
Changed the MD5 implementation, the previous had a license that was somewhat
Matti Hamalainen <ccr@tnsp.org>
parents:
379
diff
changeset
|
26 void xs_md5_init(t_xs_md5state *ctx); |
a3fdd2d6c056
Changed the MD5 implementation, the previous had a license that was somewhat
Matti Hamalainen <ccr@tnsp.org>
parents:
379
diff
changeset
|
27 void xs_md5_append(t_xs_md5state *ctx, const guint8 *buf, guint len); |
a3fdd2d6c056
Changed the MD5 implementation, the previous had a license that was somewhat
Matti Hamalainen <ccr@tnsp.org>
parents:
379
diff
changeset
|
28 void xs_md5_finish(t_xs_md5state *ctx, t_xs_md5hash digest); |
4 | 29 |
30 | |
31 #ifdef __cplusplus | |
32 } | |
33 #endif | |
34 #endif /* XS_MD5_H */ |