Fix service_name management and add pppoe_only_equal_svc_name parameter
[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 #ifndef __MD5_H__
10 #define __MD5_H__
11
12 #define MD5_DIGEST_SZ 16
13 #define MD5_BLOCK_SZ 64
14
15 /* Any 32-bit or wider unsigned integer data type will do */
16 typedef unsigned long MD5_u32plus;
17
18 typedef struct {
19 MD5_u32plus lo, hi;
20 MD5_u32plus a, b, c, d;
21 unsigned char buffer[MD5_BLOCK_SZ];
22 MD5_u32plus block[MD5_DIGEST_SZ];
23 } MD5_CTX;
24
25 extern void MD5_Init(MD5_CTX *ctx);
26 extern void MD5_Update(MD5_CTX *ctx, void *data, unsigned long size);
27 extern void MD5_Final(unsigned char *result, MD5_CTX *ctx);
28
29 #endif /* __MD5_H__ */