FreeTDS API

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
md5.h
1 #ifndef MD5_H
2 #define MD5_H
3
4 /* $Id: md5.h,v 1.6 2010-01-25 23:05:58 freddy77 Exp $ */
5
6 #if defined(__GNUC__) && __GNUC__ >= 4 && !defined(__MINGW32__)
7 #pragma GCC visibility push(hidden)
8 #endif
9
10 struct MD5Context {
11 TDS_UINT buf[4];
12 TDS_UINT bits[2];
13 unsigned char in[64];
14 };
15
16 void MD5Init(struct MD5Context *context);
17 void MD5Update(struct MD5Context *context, unsigned char const *buf, size_t len);
18 void MD5Final(struct MD5Context *context, unsigned char *digest);
19 void MD5Transform(TDS_UINT buf[4], TDS_UINT const in[16]);
20
21 /*
22 * This is needed to make RSAREF happy on some MS-DOS compilers.
23 */
24 typedef struct MD5Context MD5_CTX;
25
26 #if defined(__GNUC__) && __GNUC__ >= 4 && !defined(__MINGW32__)
27 #pragma GCC visibility pop
28 #endif
29
30 #endif /* !MD5_H */