6 /* GLOBAL.H - RSAREF types and constants
10 * FreeRADIUS defines to ensure globally unique MD5 function names,
11 * so that we don't pick up vendor-specific broken MD5 libraries.
13 #define MD5_CTX librad_MD5_CTX
14 #define MD5Init librad_MD5Init
15 #define MD5Update librad_MD5Update
16 #define MD5Final librad_MD5Final
18 /* PROTOTYPES should be set to one if and only if the compiler supports
19 function argument prototyping.
20 The following makes PROTOTYPES default to 0 if it has not already
21 been defined with C compiler flags.
31 /* POINTER defines a generic pointer type */
33 typedef unsigned char *POINTER;
35 typedef const unsigned char *CONSTPOINTER;
37 /* UINT2 defines a two byte word */
39 typedef unsigned short int UINT2;
42 /* UINT4 defines a four byte word */
44 #if defined(__alpha) && (defined(__osf__) || defined(__linux__))
45 typedef unsigned int UINT4;
47 typedef unsigned long int UINT4;
51 /* PROTO_LIST is defined depending on how PROTOTYPES is defined above.
52 If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it
53 returns an empty list.
56 #define PROTO_LIST(list) list
58 #define PROTO_LIST(list) ()
60 #endif /* _LRAD_PROTO_H */
62 /* MD5.H - header file for MD5C.C
65 /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
68 License to copy and use this software is granted provided that it
69 is identified as the "RSA Data Security, Inc. MD5 Message-Digest
70 Algorithm" in all material mentioning or referencing this software
73 License is also granted to make and use derivative works provided
74 that such works are identified as "derived from the RSA Data
75 Security, Inc. MD5 Message-Digest Algorithm" in all material
76 mentioning or referencing the derived work.
78 RSA Data Security, Inc. makes no representations concerning either
79 the merchantability of this software or the suitability of this
80 software for any particular purpose. It is provided "as is"
81 without express or implied warranty of any kind.
83 These notices must be retained in any copies of any part of this
84 documentation and/or software.
89 UINT4 state[4]; /* state (ABCD) */
90 UINT4 count[2]; /* number of bits, modulo 2^64 (lsb first) */
91 unsigned char buffer[64]; /* input buffer */
94 void MD5Init PROTO_LIST ((MD5_CTX *));
95 void MD5Update PROTO_LIST
96 ((MD5_CTX *, const unsigned char *, unsigned int));
97 void MD5Final PROTO_LIST ((unsigned char [16], MD5_CTX *));
98 #endif /* _LRAD_MD5_H */