summaryrefslogtreecommitdiffstats
path: root/knetworkmanager-0.8/src/md5.h
blob: f3fd5be560cb94baa158709d4c9f84a9304bd993 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef GNOME_KEYRING_MD5_H
#define GNOME_KEYRING_MD5_H

#include <glib.h>

struct GnomeKeyringMD5Context {
	guint32 buf[4];
	guint32 bits[2];
	unsigned char in[64];
};

char *gnome_keyring_md5_digest_to_ascii (unsigned char                  digest[16]);
void  gnome_keyring_md5_string          (const char                    *string,
					 unsigned char                  digest[16]);
void  gnome_keyring_md5_init            (struct GnomeKeyringMD5Context *ctx);
void  gnome_keyring_md5_update          (struct GnomeKeyringMD5Context *ctx,
					 unsigned char const           *buf,
					 unsigned                       len);
void  gnome_keyring_md5_final           (unsigned char                  digest[16],
					 struct GnomeKeyringMD5Context *ctx);

#endif /* GNOME_KEYRING_MD5_H */