1 /*
2 	mdfour.h
3 
4 	an implementation of MD4 designed for use in the SMB authentication
5 	protocol
6 
7 	Copyright (C) Andrew Tridgell 1997-1998
8 
9 	This program is free software; you can redistribute it and/or
10 	modify it under the terms of the GNU General Public License
11 	as published by the Free Software Foundation; either version 2
12 	of the License, or (at your option) any later version.
13 
14 	This program is distributed in the hope that it will be useful,
15 	but WITHOUT ANY WARRANTY; without even the implied warranty of
16 	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17 
18 	See the GNU General Public License for more details.
19 
20 	You should have received a copy of the GNU General Public License
21 	along with this program; if not, write to:
22 
23 		Free Software Foundation, Inc.
24 		59 Temple Place - Suite 330
25 		Boston, MA  02111-1307, USA
26 
27 	$Id: mdfour.h,v 1.1 2002/04/02 06:23:02 jaq Exp $
28 */
29 
30 #ifndef __mdfour_h
31 #define __mdfour_h
32 
33 #include "uint32.h"
34 
35 #define MDFOUR_DIGEST_BYTES 16
36 
37 struct mdfour {
38 	uint32 A, B, C, D;
39 	uint32 totalN;
40 };
41 
42 void mdfour_begin(struct mdfour *md); // old: MD4Init
43 void mdfour_update(struct mdfour *md, const unsigned char *in, int n); //old: MD4Update
44 void mdfour_result(struct mdfour *md, unsigned char *out); // old: MD4Final
45 void mdfour(unsigned char *out, const unsigned char *in, int n);
46 
47 #endif	// __mdfour_h
48