view src/xs_md5.h @ 71:2b32c75729ce

Started modularizing, separated sidplay1 things into a "wrapper" module. Removed non-generic stuff from xmms-sid.cc, removed C++ references and renamed to xmms-sid.c
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 10 Sep 2003 06:21:04 +0000
parents f5d82424b0ed
children 575686094eb1
line wrap: on
line source

#ifndef XS_MD5_H
#define XS_MD5_H

#ifdef __cplusplus
extern "C" {
#endif

#include <glib.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;

#define XS_MD5HASH_LENGTH	(16)
#define XS_MD5HASH_LENGTH_CH	(XS_MD5HASH_LENGTH * 2)

typedef guint8 t_xs_md5hash[XS_MD5HASH_LENGTH];


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