Initial revision
[silc.git] / lib / silccrypt / md5_internal.h
1 /* file ripped from noiz-0.5. -Pekka */
2
3 #ifndef MD5_INTERNAL_H
4 #define MD5_INTERNAL_H
5
6 typedef unsigned long 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, unsigned len);
16 void MD5Final(unsigned char digest[16], struct MD5Context *context);
17 void MD5Transform(uint32 buf[4], const unsigned char kbuf[64]);
18
19 /*
20  * This is needed to make RSAREF happy on some MS-DOS compilers.
21  */
22 typedef struct MD5Context MD5_CTX;
23
24 #endif