fix constants
[l2tpns.git] / md5.h
1 /*
2 * This is an OpenSSL-compatible implementation of the RSA Data Security,
3 * Inc. MD5 Message-Digest Algorithm.
4 *
5 * Written by Solar Designer <solar at openwall.com> in 2001, and placed
6 * in the public domain. See md5.c for more information.
7 */
8
9 #ifdef HAVE_OPENSSL
10 #include <openssl/md5.h>
11 #elif !defined(_MD5_H)
12 #define _MD5_H
13
14 /* Any 32-bit or wider unsigned integer data type will do */
15 typedef unsigned long MD5_u32plus;
16
17 typedef struct {
18 MD5_u32plus lo, hi;
19 MD5_u32plus a, b, c, d;
20 unsigned char buffer[64];
21 MD5_u32plus block[16];
22 } MD5_CTX;
23
24 extern void MD5_Init(MD5_CTX *ctx);
25 extern void MD5_Update(MD5_CTX *ctx, void *data, unsigned long size);
26 extern void MD5_Final(unsigned char *result, MD5_CTX *ctx);
27
28 #endif