1 #ifndef _UADE_MD5_H_
2 #define _UADE_MD5_H_
3 
4 #include <sys/types.h>
5 #include <stdint.h>
6 
7 #define MD5_HASHBYTES 16
8 
9 typedef struct MD5Context {
10         uint32_t buf[4];
11 	uint32_t bits[2];
12 	unsigned char in[64];
13 } MD5_CTX;
14 
15 void   MD5Init(MD5_CTX *context);
16 void   MD5Update(MD5_CTX *context, unsigned char const *buf,
17 	       unsigned len);
18 void   MD5Final(unsigned char digest[MD5_HASHBYTES], MD5_CTX *context);
19 void   MD5Transform(uint32_t buf[4], uint32_t const in[16]);
20 
21 #endif /* !_UADE_MD5_H_ */
22