Mercurial > hg > xmms-sid
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/xs_md5.h Tue Jun 03 11:03:04 2003 +0000 @@ -0,0 +1,31 @@ +#ifndef XS_MD5_H +#define XS_MD5_H + +#ifdef __cplusplus +extern "C" { +#endif + +#include "xs_length.h" + +/* + * Typedefs + */ +typedef struct md5_state_s { + guint32 count[2]; /* message length in bits, lsw first */ + guint32 abcd[4]; /* digest buffer */ + guint8 buf[64]; /* accumulate block */ +} t_xs_md5state; + + +/* + * Functions + */ +void xs_md5_init(t_xs_md5state *pms); +void xs_md5_append(t_xs_md5state *pms, const guint8 *data, int nbytes); +void xs_md5_finish(t_xs_md5state *pms, t_xs_md5hash digest); + + +#ifdef __cplusplus +} +#endif +#endif /* XS_MD5_H */