summaryrefslogtreecommitdiff
path: root/daemon/md5.h
blob: 4899a3efd578d9527f1bd29620c67e494c5c00d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef GdmMD5_H
#define GdmMD5_H

#ifdef __alpha
typedef unsigned int uint32;
#else
typedef unsigned long uint32;
#endif

struct GdmMD5Context {
	uint32 buf[4];
	uint32 bits[2];
	unsigned char in[64];
};

void gdm_md5_init (struct GdmMD5Context *context);
void gdm_md5_update (struct GdmMD5Context *context, unsigned char const *buf,
		     unsigned len);
void gdm_md5_final (unsigned char digest[16], struct GdmMD5Context *context);
void gdm_md5_transform (uint32 buf[4], uint32 const in[16]);

/*
 * This is needed to make RSAREF happy on some MS-DOS compilers.
 */
/* typedef struct gdm_md5_Context gdm_md5__CTX; */

#endif /* !GdmMD5_H */