]> mj.ucw.cz Git - eval.git/blob - src/md5.h
No longer force gcc version.
[eval.git] / src / md5.h
1 #ifndef MD5_H
2 #define MD5_H
3
4 #include <sys/types.h>
5
6 typedef u_int32_t uint32;
7
8 struct MD5Context {
9         uint32 buf[4];
10         uint32 bits[2];
11         unsigned char in[64];
12 };
13
14 void MD5Init(struct MD5Context *context);
15 void MD5Update(struct MD5Context *context, unsigned char const *buf,
16                unsigned len);
17 void MD5Final(unsigned char digest[16], struct MD5Context *context);
18 void MD5Transform(uint32 buf[4], uint32 const in[16]);
19
20 #endif /* !MD5_H */