]> git.sur5r.net Git - openldap/blob - include/lutil_md5.h
Wrap $CC with quotes.
[openldap] / include / lutil_md5.h
1 /* See md5.c for explanation and copyright information.  */
2
3 #ifndef LDAP_MD5_H
4 #define LDAP_MD5_H
5
6 /* Unlike previous versions of this code, uint32 need not be exactly
7    32 bits, merely 32 bits or more.  Choosing a data type which is 32
8    bits instead of 64 is not important; speed is considerably more
9    important.  ANSI guarantees that "unsigned long" will be big enough,
10    and always using it seems to have few disadvantages.  */
11
12 #ifndef LDAP_UINT32
13 #define LDAP_UINT32
14 typedef unsigned long uint32;
15 #endif
16
17 struct MD5Context {
18         uint32 buf[4];
19         uint32 bits[2];
20         unsigned char in[64];
21 };
22
23 void ldap_MD5Init(struct MD5Context *context);
24 void ldap_MD5Update(struct MD5Context *context, unsigned char const *buf, unsigned len);
25 void ldap_MD5Final(unsigned char digest[16], struct MD5Context *context);
26 void ldap_MD5Transform(uint32 buf[4], const unsigned char in[64]);
27
28 /*
29  * This is needed to make RSAREF happy on some MS-DOS compilers.
30  */
31 typedef struct MD5Context MD5_CTX;
32
33 #endif /* !LDAP_MD5_H */