crypto/md5: Change prototypes to match BSD.
[gd/samba-autobuild/.git] / lib / crypto / md5.h
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
7
8 typedef struct MD5Context {
9         uint32_t buf[4];
10         uint32_t bits[2];
11         uint8_t in[64];
12 } MD5_CTX;
13
14 #define MD5_DIGEST_LENGTH 16
15
16 void MD5Init(MD5_CTX *context);
17 void MD5Update(MD5_CTX *context, const uint8_t *buf,
18                size_t len);
19 void MD5Final(uint8_t digest[MD5_DIGEST_LENGTH], MD5_CTX *context);
20
21 #endif /* !MD5_H */