The core of the fix to allow opens to go async inside a compound request.
[Samba.git] / lib / crypto / md5.h
blobedddbac8f200765c6fb96e77fbed517f8a66b456
1 #ifndef MD5_H
2 #define MD5_H
3 #ifndef HEADER_MD5_H
4 /* Try to avoid clashes with OpenSSL */
5 #define HEADER_MD5_H
6 #endif
8 #ifdef HAVE_MD5_H
9 /*
10 * Try to avoid clashes with Solaris MD5 implementation.
11 * ...where almost all implementations follows:
12 * "Schneier's Cryptography Classics Library"
14 #include <md5.h>
15 #else
17 struct MD5Context {
18 uint32_t buf[4];
19 uint32_t bits[2];
20 uint8_t in[64];
22 typedef struct MD5Context MD5_CTX;
24 void MD5Init(struct MD5Context *context);
25 void MD5Update(struct MD5Context *context, const uint8_t *buf,
26 size_t len);
27 void MD5Final(uint8_t digest[16], struct MD5Context *context);
29 #endif /* !HAVE_MD5_H */
31 #endif /* !MD5_H */