Release bumped to "gts4".
[tac_plus.git] / md4.h
1 #ifndef MD4_H
2 #define MD4_H 1
3
4 #include "tac_plus.h"
5
6 #ifdef MSCHAP
7
8 /*
9    Copyright (c) 1995-1998 by Cisco systems, Inc.
10
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.
19
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.
25 */
26
27 /* MD4.H - header file for MD4C.C
28  * $Id$
29  */
30
31 /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
32    rights reserved.
33
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
37    or this function.
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.
42
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.
47
48    These notices must be retained in any copies of any part of this
49    documentation and/or software.
50  */
51
52 /* MD4 context. */
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 */
57 } MD4_CTX;
58
59
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));
63
64
65 #endif /* MSCHAP */
66
67 #endif /* MD4_H */