removed old FreeS/WAN cvs revision entries
[strongswan.git] / src / libfreeswan / ipsec_md5h.h
1 /*
2 * RCSID $Id: ipsec_md5h.h,v 1.1 2004/03/15 20:35:25 as Exp $
3 */
4
5 /*
6 * The rest of this file is Copyright RSA DSI. See the following comments
7 * for the full Copyright notice.
8 */
9
10 #ifndef _IPSEC_MD5H_H_
11 #define _IPSEC_MD5H_H_
12
13 /* GLOBAL.H - RSAREF types and constants
14 */
15
16 /* PROTOTYPES should be set to one if and only if the compiler supports
17 function argument prototyping.
18 The following makes PROTOTYPES default to 0 if it has not already
19 been defined with C compiler flags.
20 */
21 #ifndef PROTOTYPES
22 #define PROTOTYPES 1
23 #endif /* !PROTOTYPES */
24
25 /* POINTER defines a generic pointer type */
26 typedef __u8 *POINTER;
27
28 /* UINT2 defines a two byte word */
29 typedef __u16 UINT2;
30
31 /* UINT4 defines a four byte word */
32 typedef __u32 UINT4;
33
34 /* PROTO_LIST is defined depending on how PROTOTYPES is defined above.
35 If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it
36 returns an empty list.
37 */
38
39 #if PROTOTYPES
40 #define PROTO_LIST(list) list
41 #else /* PROTOTYPES */
42 #define PROTO_LIST(list) ()
43 #endif /* PROTOTYPES */
44
45
46 /* MD5.H - header file for MD5C.C
47 */
48
49 /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
50 rights reserved.
51
52 License to copy and use this software is granted provided that it
53 is identified as the "RSA Data Security, Inc. MD5 Message-Digest
54 Algorithm" in all material mentioning or referencing this software
55 or this function.
56
57 License is also granted to make and use derivative works provided
58 that such works are identified as "derived from the RSA Data
59 Security, Inc. MD5 Message-Digest Algorithm" in all material
60 mentioning or referencing the derived work.
61
62 RSA Data Security, Inc. makes no representations concerning either
63 the merchantability of this software or the suitability of this
64 software for any particular purpose. It is provided "as is"
65 without express or implied warranty of any kind.
66
67 These notices must be retained in any copies of any part of this
68 documentation and/or software.
69 */
70
71 /* MD5 context. */
72 typedef struct {
73 UINT4 state[4]; /* state (ABCD) */
74 UINT4 count[2]; /* number of bits, modulo 2^64 (lsb first) */
75 unsigned char buffer[64]; /* input buffer */
76 } MD5_CTX;
77
78 void MD5Init PROTO_LIST ((void *));
79 void MD5Update PROTO_LIST
80 ((void *, unsigned char *, __u32));
81 void MD5Final PROTO_LIST ((unsigned char [16], void *));
82
83 #endif /* _IPSEC_MD5H_H_ */