]>
diplodocus.org Git - nmh/blob - h/md5.h
1 /* md5.h -- header file for md5 message digest
2 * taken from RFC-1321/Appendices A.1/A.2
6 * RSAREF types and constants
12 /* UINT4 defines a four byte word */
13 typedef uint32_t UINT4
;
15 /* MD5.H - header file for MD5C.C
18 /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
21 License to copy and use this software is granted provided that it
22 is identified as the "RSA Data Security, Inc. MD5 Message-Digest
23 Algorithm" in all material mentioning or referencing this software
26 License is also granted to make and use derivative works provided
27 that such works are identified as "derived from the RSA Data
28 Security, Inc. MD5 Message-Digest Algorithm" in all material
29 mentioning or referencing the derived work.
31 RSA Data Security, Inc. makes no representations concerning either
32 the merchantability of this software or the suitability of this
33 software for any particular purpose. It is provided "as is"
34 without express or implied warranty of any kind.
36 These notices must be retained in any copies of any part of this
37 documentation and/or software.
42 UINT4 state
[4]; /* state (ABCD) */
43 UINT4 count
[2]; /* number of bits, modulo 2^64 (lsb first) */
44 unsigned char buffer
[64]; /* input buffer */
47 void MD5Init(MD5_CTX
*);
48 void MD5Update(MD5_CTX
*, unsigned char *, unsigned int);
49 void MD5Final(unsigned char [16], MD5_CTX
*);