]>
git.ipfire.org Git - thirdparty/squid.git/blob - include/md5.h
2 * $Id: md5.h,v 1.9 2001/04/14 00:03:20 hno Exp $
10 #if HAVE_OPENSSL_MD5_H
11 #include <openssl/md5.h>
13 #error Cannot find OpenSSL headers
16 /* Hack to adopt Squid to the OpenSSL syntax */
17 #define MD5_DIGEST_CHARS MD5_DIGEST_LENGTH
19 #define MD5Init MD5_Init
20 #define MD5Update MD5_Update
21 #define MD5Final MD5_Final
23 #else /* USE_OPENSSL */
25 /* MD5.H - header file for MD5C.C
28 /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
31 * License to copy and use this software is granted provided that it
32 * is identified as the "RSA Data Security, Inc. MD5 Message-Digest
33 * Algorithm" in all material mentioning or referencing this software
36 * License is also granted to make and use derivative works provided
37 * that such works are identified as "derived from the RSA Data
38 * Security, Inc. MD5 Message-Digest Algorithm" in all material
39 * mentioning or referencing the derived work.
41 * RSA Data Security, Inc. makes no representations concerning either
42 * the merchantability of this software or the suitability of this
43 * software for any particular purpose. It is provided "as is"
44 * without express or implied warranty of any kind.
46 * These notices must be retained in any copies of any part of this
47 * documentation and/or software.
50 #include "squid_types.h"
54 u_int32_t state
[4]; /* state (ABCD) */
55 u_int32_t count
[2]; /* number of bits, modulo 2^64 (lsb first) */
56 unsigned char buffer
[64]; /* input buffer */
59 void MD5Init(MD5_CTX
*);
60 void MD5Update(MD5_CTX
*, const unsigned char *, unsigned int);
61 void MD5Final(unsigned char[16], MD5_CTX
*);
63 #define MD5_DIGEST_CHARS 16
65 #endif /* USE_OPENSSL */