]> mj.ucw.cz Git - eval.git/blob - lib/md5.h
Polished configuration scripts.
[eval.git] / lib / md5.h
1 /*
2  *      UCW Library -- MD5 Message Digest
3  *
4  *      This file is in public domain (see lib/md5.c).
5  */
6
7 #ifndef _UCW_MD5_H
8 #define _UCW_MD5_H
9
10 typedef u32 uint32;
11
12 struct MD5Context {
13         uint32 buf[4];
14         uint32 bits[2];
15         unsigned char in[64];
16 };
17
18 void MD5Init(struct MD5Context *context);
19 void MD5Update(struct MD5Context *context, unsigned char const *buf,
20                unsigned len);
21 void MD5Final(unsigned char digest[16], struct MD5Context *context);
22 void MD5Transform(uint32 buf[4], uint32 const in[16]);
23
24 #endif /* !_UCW_MD5_H */