2 * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
5 * Redistribution and use in source and binary forms are permitted only
6 * as authorized by the OpenLDAP Public License. A copy of this
7 * license is available at http://www.OpenLDAP.org/license.html or
8 * in file LICENSE in the top-level directory of the distribution.
11 /* See md5.c for explanation and copyright information. */
16 #include <ldap_cdefs.h>
21 /* Unlike previous versions of this code, uint32 need not be exactly
22 32 bits, merely 32 bits or more. Choosing a data type which is 32
23 bits instead of 64 is not important; speed is considerably more
24 important. ANSI guarantees that "unsigned long" will be big enough,
25 and always using it seems to have few disadvantages. */
29 typedef ac_uint4 uint32;
32 struct lutil_MD5Context {
39 lutil_MD5Init LDAP_P((
40 struct lutil_MD5Context *context));
43 lutil_MD5Update LDAP_P((
44 struct lutil_MD5Context *context,
45 unsigned char const *buf,
49 lutil_MD5Final LDAP_P((
50 unsigned char digest[16],
51 struct lutil_MD5Context *context));
54 lutil_MD5Transform LDAP_P((
56 const unsigned char in[64]));
59 * This is needed to make RSAREF happy on some MS-DOS compilers.
61 typedef struct lutil_MD5Context lutil_MD5_CTX;
65 #endif /* _LUTIL_MD5_H_ */