4
|
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 */
|