Updated the FSF's address to an even newer one.
[rsync/rsync.git] / lib / mdfour.h
1 /* 
2  * Unix SMB/Netbios implementation.
3  * Version 1.9.
4  * An implementation of MD4 designed for use in the SMB authentication protocol.
5  *
6  * Copyright (C) 1997-1998 Andrew Tridgell
7  * 
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  * 
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  * 
18  * You should have received a copy of the GNU General Public License along
19  * with this program; if not, write to the Free Software Foundation, Inc.,
20  * 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
21  */
22
23 struct mdfour {
24         uint32 A, B, C, D;
25         uint32 totalN;          /* bit count, lower 32 bits */
26         uint32 totalN2;         /* bit count, upper 32 bits */
27 };
28
29 void mdfour_begin(struct mdfour *md);
30 void mdfour_update(struct mdfour *md, unsigned char *in, uint32 n);
31 void mdfour_result(struct mdfour *md, unsigned char *out);
32 void mdfour(unsigned char *out, unsigned char *in, int n);