Welcome Ethumb, it's ready to get out of PROTO.
[framework/uifw/ethumb.git] / src / lib / md5.h
1 #ifndef _MD5_H_
2 #define _MD5_H_
3
4 #include <stdint.h>
5 #include <sys/types.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 extern void   MD5Init(MD5_CTX *context);
16 extern void   MD5Update(MD5_CTX *context,unsigned char const *buf,unsigned len);
17 extern void   MD5Final(unsigned char digest[MD5_HASHBYTES], MD5_CTX *context);
18
19 extern void   MD5Transform(uint32_t buf[4], uint32_t const in[16]);
20 extern char  *MD5End(MD5_CTX *, char *);
21 extern char  *MD5File(const char *, char *);
22 extern char  *MD5Data (const unsigned char *, unsigned int, char *);
23
24 #endif