comparison src/xs_md5.h @ 657:acaba070cf49

Lots of cosmetic code cleanups; synced the de-gettextification from Audacious-SID, I suppose it makes some sense ...
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 02 Apr 2008 19:46:59 +0300
parents a3fdd2d6c056
children b0743dc9165d
comparison
equal deleted inserted replaced
656:e9257f006f41 657:acaba070cf49
11 */ 11 */
12 typedef struct md5_state_s { 12 typedef struct md5_state_s {
13 guint32 bits[2]; /* message length in bits, lsw first */ 13 guint32 bits[2]; /* message length in bits, lsw first */
14 guint32 buf[4]; /* digest buffer */ 14 guint32 buf[4]; /* digest buffer */
15 guint8 in[64]; /* accumulate block */ 15 guint8 in[64]; /* accumulate block */
16 } t_xs_md5state; 16 } xs_md5state_t;
17 17
18 #define XS_MD5HASH_LENGTH (16) 18 #define XS_MD5HASH_LENGTH (16)
19 #define XS_MD5HASH_LENGTH_CH (XS_MD5HASH_LENGTH * 2) 19 #define XS_MD5HASH_LENGTH_CH (XS_MD5HASH_LENGTH * 2)
20 20
21 typedef guint8 t_xs_md5hash[XS_MD5HASH_LENGTH]; 21 typedef guint8 xs_md5hash_t[XS_MD5HASH_LENGTH];
22 22
23 23
24 /* Functions 24 /* Functions
25 */ 25 */
26 void xs_md5_init(t_xs_md5state *ctx); 26 void xs_md5_init(xs_md5state_t *ctx);
27 void xs_md5_append(t_xs_md5state *ctx, const guint8 *buf, guint len); 27 void xs_md5_append(xs_md5state_t *ctx, const guint8 *buf, guint len);
28 void xs_md5_finish(t_xs_md5state *ctx, t_xs_md5hash digest); 28 void xs_md5_finish(xs_md5state_t *ctx, xs_md5hash_t digest);
29 29
30 30
31 #ifdef __cplusplus 31 #ifdef __cplusplus
32 } 32 }
33 #endif 33 #endif