]>
git.ipfire.org Git - thirdparty/strongswan.git/blob - programs/pluto/md5.h
3 /* GLOBAL.H - RSAREF types and constants
6 /* PROTOTYPES should be set to one if and only if the compiler supports
7 function argument prototyping.
8 The following makes PROTOTYPES default to 0 if it has not already
9 been defined with C compiler flags.
15 /* POINTER defines a generic pointer type */
16 typedef unsigned char *POINTER
;
17 typedef const unsigned char *CONSTPOINTER
;
19 /* UINT2 defines a two byte word */
20 typedef u_int16_t UINT2
;
22 /* UINT4 defines a four byte word */
23 typedef u_int32_t UINT4
;
25 /* PROTO_LIST is defined depending on how PROTOTYPES is defined above.
26 If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it
27 returns an empty list.
31 #define PROTO_LIST(list) list
33 #define PROTO_LIST(list) ()
38 /* MD5.H - header file for MD5C.C
41 /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
44 License to copy and use this software is granted provided that it
45 is identified as the "RSA Data Security, Inc. MD5 Message-Digest
46 Algorithm" in all material mentioning or referencing this software
49 License is also granted to make and use derivative works provided
50 that such works are identified as "derived from the RSA Data
51 Security, Inc. MD5 Message-Digest Algorithm" in all material
52 mentioning or referencing the derived work.
54 RSA Data Security, Inc. makes no representations concerning either
55 the merchantability of this software or the suitability of this
56 software for any particular purpose. It is provided "as is"
57 without express or implied warranty of any kind.
59 These notices must be retained in any copies of any part of this
60 documentation and/or software.
65 UINT4 state
[4]; /* state (ABCD) */
66 UINT4 count
[2]; /* number of bits, modulo 2^64 (lsb first) */
67 unsigned char buffer
[64]; /* input buffer */
70 void MD5Init
PROTO_LIST ((MD5_CTX
*));
71 void MD5Update PROTO_LIST
72 ((MD5_CTX
*, const unsigned char *, UINT4
));
73 void MD5Final
PROTO_LIST ((unsigned char [16], MD5_CTX
*));