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