9 Copyright (c) 1995-1998 by Cisco systems, Inc.
11 Permission to use, copy, modify, and distribute this software for
12 any purpose and without fee is hereby granted, provided that this
13 copyright and permission notice appear on all copies of the
14 software and supporting documentation, the name of Cisco Systems,
15 Inc. not be used in advertising or publicity pertaining to
16 distribution of the program without specific prior permission, and
17 notice be given in supporting documentation that modification,
18 copying and distribution is by permission of Cisco Systems, Inc.
20 Cisco Systems, Inc. makes no representations about the suitability
21 of this software for any purpose. THIS SOFTWARE IS PROVIDED ``AS
22 IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
23 WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
24 FITNESS FOR A PARTICULAR PURPOSE.
27 /* MD4.H - header file for MD4C.C
31 /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
34 License to copy and use this software is granted provided that it
35 is identified as the "RSA Data Security, Inc. MD4 Message-Digest
36 Algorithm" in all material mentioning or referencing this software
38 License is also granted to make and use derivative works provided
39 that such works are identified as "derived from the RSA Data
40 Security, Inc. MD4 Message-Digest Algorithm" in all material
41 mentioning or referencing the derived work.
43 RSA Data Security, Inc. makes no representations concerning either
44 the merchantability of this software or the suitability of this
45 software for any particular purpose. It is provided "as is"
46 without express or implied warranty of any kind.
48 These notices must be retained in any copies of any part of this
49 documentation and/or software.
53 typedef struct MD4Context {
54 unsigned long int state[4]; /* state (ABCD) */
55 unsigned long int count[2]; /* number of bits, modulo 2^64 (lsb first) */
56 unsigned char buffer[64]; /* input buffer */
60 extern void MD4Init TAC_ARGS((MD4_CTX *context));
61 extern void MD4Update TAC_ARGS((MD4_CTX *context, const unsigned char *input, unsigned int inputLen));
62 extern void MD4Final TAC_ARGS((unsigned char digest[16], MD4_CTX *context));