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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
1 #ifndef XS_MD5_H
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
2 #define XS_MD5_H
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3
214
575686094eb1 Portability fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 14
diff changeset
4 #include <glib.h>
575686094eb1 Portability fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 14
diff changeset
5
4
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
6 #ifdef __cplusplus
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
7 extern "C" {
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
8 #endif
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
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
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
11 */
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
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
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16 } t_xs_md5state;
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
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
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
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
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
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
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
29
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
30
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
31 #ifdef __cplusplus
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
32 }
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
33 #endif
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
34 #endif /* XS_MD5_H */