1 | /* MD5.H - header file for MD5C.C |
---|
2 | * |
---|
3 | * $Id$ |
---|
4 | */ |
---|
5 | |
---|
6 | /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All |
---|
7 | rights reserved. |
---|
8 | |
---|
9 | License to copy and use this software is granted provided that it |
---|
10 | is identified as the "RSA Data Security, Inc. MD5 Message-Digest |
---|
11 | Algorithm" in all material mentioning or referencing this software |
---|
12 | or this function. |
---|
13 | |
---|
14 | License is also granted to make and use derivative works provided |
---|
15 | that such works are identified as "derived from the RSA Data |
---|
16 | Security, Inc. MD5 Message-Digest Algorithm" in all material |
---|
17 | mentioning or referencing the derived work. |
---|
18 | |
---|
19 | RSA Data Security, Inc. makes no representations concerning either |
---|
20 | the merchantability of this software or the suitability of this |
---|
21 | software for any particular purpose. It is provided "as is" |
---|
22 | without express or implied warranty of any kind. |
---|
23 | |
---|
24 | These notices must be retained in any copies of any part of this |
---|
25 | documentation and/or software. |
---|
26 | */ |
---|
27 | |
---|
28 | #ifndef _h_MD5 |
---|
29 | #define _h_MD5 1 |
---|
30 | |
---|
31 | #ifndef UINT4 |
---|
32 | #define UINT4 unsigned long |
---|
33 | #endif |
---|
34 | |
---|
35 | #ifndef POINTER |
---|
36 | #define POINTER unsigned char * |
---|
37 | #endif |
---|
38 | |
---|
39 | /* MD5 context. */ |
---|
40 | typedef struct { |
---|
41 | UINT4 state[4]; /* state (ABCD) */ |
---|
42 | UINT4 count[2]; /* number of bits, modulo 2^64 (lsb first) */ |
---|
43 | unsigned char buffer[64]; /* input buffer */ |
---|
44 | } MD5_CONTEXT; |
---|
45 | |
---|
46 | extern void MD5Init (MD5_CONTEXT *); |
---|
47 | extern void MD5Update (MD5_CONTEXT *, unsigned char *, unsigned int); |
---|
48 | extern void MD5Final (unsigned char [16], MD5_CONTEXT *); |
---|
49 | |
---|
50 | #endif /* _h_MD5 */ |
---|