Changed msg_style and msg_delim to be file static to m_getfld.c
[mmh] / h / md5.h
1 /*
2  * md5.h -- header file for md5 message digest
3  *          taken from RFC-1321/Appendices A.1/A.2
4  */
5
6 /*
7  * RSAREF types and constants
8  */
9
10 /*
11  * Use include for nmh/mh
12  */
13
14 #include <h/nmh.h>
15
16 /*
17  * We need this for uint32_t
18  */
19
20 #include <inttypes.h>
21
22 /*
23  * Use prototypes for nmh/mh
24  */
25 #define PROTOTYPES 1
26
27 /*
28  * PROTOTYPES should be set to one if and only if the compiler
29  * supports function argument prototyping.  The following makes
30  * PROTOTYPES default to 0 if it has not already been defined
31  * with C compiler flags.
32  */
33 #ifndef PROTOTYPES
34 #define PROTOTYPES 0
35 #endif
36
37 /* POINTER defines a generic pointer type */
38 typedef unsigned char *POINTER;
39
40 /* UINT2 defines a two byte word */
41 typedef unsigned short int UINT2;
42
43 /* UINT4 defines a four byte word */
44 typedef uint32_t UINT4;
45
46 /* PROTO_LIST is defined depending on how PROTOTYPES is defined above.
47 If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it
48   returns an empty list.
49  */
50 #if PROTOTYPES
51 #define PROTO_LIST(list) list
52 #else
53 #define PROTO_LIST(list) ()
54 #endif
55
56 /* MD5.H - header file for MD5C.C
57  */
58
59 /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
60 rights reserved.
61
62 License to copy and use this software is granted provided that it
63 is identified as the "RSA Data Security, Inc. MD5 Message-Digest
64 Algorithm" in all material mentioning or referencing this software
65 or this function.
66
67 License is also granted to make and use derivative works provided
68 that such works are identified as "derived from the RSA Data
69 Security, Inc. MD5 Message-Digest Algorithm" in all material
70 mentioning or referencing the derived work.
71
72 RSA Data Security, Inc. makes no representations concerning either
73 the merchantability of this software or the suitability of this
74 software for any particular purpose. It is provided "as is"
75 without express or implied warranty of any kind.
76
77 These notices must be retained in any copies of any part of this
78 documentation and/or software.
79  */
80
81 /* MD5 context. */
82 typedef struct {
83   UINT4 state[4];                                   /* state (ABCD) */
84   UINT4 count[2];        /* number of bits, modulo 2^64 (lsb first) */
85   unsigned char buffer[64];                         /* input buffer */
86 } MD5_CTX;
87
88 void MD5Init PROTO_LIST ((MD5_CTX *));
89 void MD5Update PROTO_LIST ((MD5_CTX *, unsigned char *, unsigned int));
90 void MD5Final PROTO_LIST ((unsigned char [16], MD5_CTX *));
91