add -fsimpleopt-before-flatten
[ghc-hetmet.git] / compiler / utils / md5.h
1 /* MD5 message digest */
2 #ifndef _MD5_H
3 #define _MD5_H
4
5 #include "HsFFI.h"
6
7 typedef HsWord32 word32;
8 typedef HsWord8  byte;
9
10 struct MD5Context {
11         word32 buf[4];
12         word32 bytes[2];
13         word32 in[16];
14 };
15
16 void MD5Init(struct MD5Context *context);
17 void MD5Update(struct MD5Context *context, byte const *buf, int len);
18 void MD5Final(byte digest[16], struct MD5Context *context);
19 void MD5Transform(word32 buf[4], word32 const in[16]);
20
21 #endif /* _MD5_H */
22
23
24