2 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
9 #pragma ident "%Z%%M% %I% %E% SMI"
13 * MD4C.C - RSA Data Security, Inc., MD4 message-digest algorithm
17 * Copyright (C) 1990-2, RSA Data Security, Inc. All rights reserved.
19 * License to copy and use this software is granted provided that it
20 * is identified as the "RSA Data Security, Inc. MD4 Message-Digest
21 * Algorithm" in all material mentioning or referencing this software
24 * License is also granted to make and use derivative works provided
25 * that such works are identified as "derived from the RSA Data
26 * Security, Inc. MD4 Message-Digest Algorithm" in all material
27 * mentioning or referencing the derived work.
29 * RSA Data Security, Inc. makes no representations concerning either
30 * the merchantability of this software or the suitability of this
31 * software for any particular purpose. It is provided "as is"
32 * without express or implied warranty of any kind.
34 * These notices must be retained in any copies of any part of this
35 * documentation and/or software.
42 #include <sys/types.h>
44 #define MD4_DIGEST_LENGTH 16
48 uint32_t state
[4]; /* state (ABCD) */
49 uint32_t count
[2]; /* number of bits, modulo 2^64 (lsb first) */
50 unsigned char buffer
[64]; /* input buffer */
53 void MD4Init(MD4_CTX
*);
54 void MD4Update(MD4_CTX
*, const void *_RESTRICT_KYWD
, size_t);
55 void MD4Final(void *, MD4_CTX
*);