6 /* GLOBAL.H - RSAREF types and constants
9 /* PROTOTYPES should be set to one if and only if the compiler supports
10 function argument prototyping.
11 The following makes PROTOTYPES default to 0 if it has not already
12 been defined with C compiler flags.
22 /* POINTER defines a generic pointer type */
23 typedef unsigned char *POINTER;
26 /* UINT2 defines a two byte word */
27 typedef unsigned short int UINT2;
30 /* UINT4 defines a four byte word */
31 #if defined(__alpha) && (defined(__osf__) || defined(__linux__))
32 typedef unsigned int UINT4;
34 typedef unsigned long int UINT4;
38 /* PROTO_LIST is defined depending on how PROTOTYPES is defined above.
39 If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it
40 returns an empty list.
43 #define PROTO_LIST(list) list
45 #define PROTO_LIST(list) ()
47 #endif /* _LRAD_PROTO_H */
49 /* MD4.H - header file for MD4C.C
52 /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
55 License to copy and use this software is granted provided that it
56 is identified as the "RSA Data Security, Inc. MD4 Message-Digest
57 Algorithm" in all material mentioning or referencing this software
60 License is also granted to make and use derivative works provided
61 that such works are identified as "derived from the RSA Data
62 Security, Inc. MD4 Message-Digest Algorithm" in all material
63 mentioning or referencing the derived work.
65 RSA Data Security, Inc. makes no representations concerning either
66 the merchantability of this software or the suitability of this
67 software for any particular purpose. It is provided "as is"
68 without express or implied warranty of any kind.
70 These notices must be retained in any copies of any part of this
71 documentation and/or software.
76 UINT4 state[4]; /* state (ABCD) */
77 UINT4 count[2]; /* number of bits, modulo 2^64 (lsb first) */
78 unsigned char buffer[64]; /* input buffer */
81 void md4_calc (unsigned char *, unsigned char *, unsigned int);
82 void MD4Init PROTO_LIST ((MD4_CTX *));
83 void MD4Update PROTO_LIST
84 ((MD4_CTX *, unsigned char *, unsigned int));
85 void MD4Final PROTO_LIST ((unsigned char [16], MD4_CTX *));
87 #endif /* _LRAD_MD4_H */