mod_url progress
[assman] / src / md4.h
1 /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
2    rights reserved.
3
4    License to copy and use this software is granted provided that it
5    is identified as the "RSA Data Security, Inc. MD4 Message-Digest
6    Algorithm" in all material mentioning or referencing this software
7    or this function.
8
9    License is also granted to make and use derivative works provided
10    that such works are identified as "derived from the RSA Data
11    Security, Inc. MD4 Message-Digest Algorithm" in all material
12    mentioning or referencing the derived work.
13
14    RSA Data Security, Inc. makes no representations concerning either
15    the merchantability of this software or the suitability of this
16    software for any particular purpose. It is provided "as is"
17    without express or implied warranty of any kind.
18
19    These notices must be retained in any copies of any part of this
20    documentation and/or software.
21  */
22
23 #include <inttypes.h>
24
25 /* MD4 context. */
26 typedef struct {
27         uint32_t state[4];                      /* state (ABCD) */
28         uint32_t count[2];                      /* number of bits, modulo 2^64 (lsb first) */
29         unsigned char buffer[64];       /* input buffer */
30 } MD4_CTX;
31
32 void MD4Init(MD4_CTX *);
33 void MD4Update(MD4_CTX *, unsigned char *, unsigned int);
34 void MD4Final(unsigned char [16], MD4_CTX *);