2
* RCSID $Id: ipsec_md5h.h,v 1.8 2002/09/10 01:45:09 mcr Exp $
6
* The rest of this file is Copyright RSA DSI. See the following comments
7
* for the full Copyright notice.
10
#ifndef _IPSEC_MD5H_H_
11
#define _IPSEC_MD5H_H_
13
/* GLOBAL.H - RSAREF types and constants
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.
23
#endif /* !PROTOTYPES */
25
/* POINTER defines a generic pointer type */
26
typedef __u8 *POINTER;
28
/* UINT2 defines a two byte word */
31
/* UINT4 defines a four byte word */
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.
40
#define PROTO_LIST(list) list
41
#else /* PROTOTYPES */
42
#define PROTO_LIST(list) ()
43
#endif /* PROTOTYPES */
46
/* MD5.H - header file for MD5C.C
49
/* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
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
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.
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.
67
These notices must be retained in any copies of any part of this
68
documentation and/or software.
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 */
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 *));
83
#endif /* _IPSEC_MD5H_H_ */
86
* $Log: ipsec_md5h.h,v $
87
* Revision 1.8 2002/09/10 01:45:09 mcr
88
* changed type of MD5_CTX and SHA1_CTX to void * so that
89
* the function prototypes would match, and could be placed
90
* into a pointer to a function.
92
* Revision 1.7 2002/04/24 07:36:46 mcr
93
* Moved from ./klips/net/ipsec/ipsec_md5h.h,v
95
* Revision 1.6 1999/12/13 13:59:13 rgb
96
* Quick fix to argument size to Update bugs.
98
* Revision 1.5 1999/12/07 18:16:23 rgb
99
* Fixed comments at end of #endif lines.
101
* Revision 1.4 1999/04/06 04:54:26 rgb
102
* Fix/Add RCSID Id: and Log: bits to make PHMDs happy. This includes
105
* Revision 1.3 1999/01/22 06:19:58 rgb
108
* Revision 1.2 1998/11/30 13:22:54 rgb
109
* Rationalised all the klips kernel file headers. They are much shorter
110
* now and won't conflict under RH5.2.
112
* Revision 1.1 1998/06/18 21:27:48 henry
113
* move sources from klips/src to klips/net/ipsec, to keep stupid
114
* kernel-build scripts happier in the presence of symlinks
116
* Revision 1.2 1998/04/23 20:54:03 rgb
117
* Fixed md5 and sha1 include file nesting issues, to be cleaned up when
120
* Revision 1.1 1998/04/09 03:04:21 henry
121
* sources moved up from linux/net/ipsec
122
* these two include files modified not to include others except in kernel
124
* Revision 1.1.1.1 1998/04/08 05:35:03 henry
125
* RGB's ipsec-0.8pre2.tar.gz ipsec-0.8
127
* Revision 0.4 1997/01/15 01:28:15 ji
130
* Revision 0.3 1996/11/20 14:48:53 ji
131
* Release update only.
133
* Revision 0.2 1996/11/02 00:18:33 ji
134
* First limited release.