md4.h revision 1802
11802Sphk/* MD4.H - header file for MD4C.C
21802Sphk * $FreeBSD: cvs2svn/branches/ORIG/lib/libmd/md4.h 1802 1994-07-24 03:29:56Z phk $
31802Sphk */
41802Sphk
51802Sphk/* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
61802Sphk   rights reserved.
71802Sphk
81802Sphk   License to copy and use this software is granted provided that it
91802Sphk   is identified as the "RSA Data Security, Inc. MD4 Message-Digest
101802Sphk   Algorithm" in all material mentioning or referencing this software
111802Sphk   or this function.
121802Sphk   License is also granted to make and use derivative works provided
131802Sphk   that such works are identified as "derived from the RSA Data
141802Sphk   Security, Inc. MD4 Message-Digest Algorithm" in all material
151802Sphk   mentioning or referencing the derived work.
161802Sphk
171802Sphk   RSA Data Security, Inc. makes no representations concerning either
181802Sphk   the merchantability of this software or the suitability of this
191802Sphk   software for any particular purpose. It is provided "as is"
201802Sphk   without express or implied warranty of any kind.
211802Sphk
221802Sphk   These notices must be retained in any copies of any part of this
231802Sphk   documentation and/or software.
241802Sphk */
251802Sphk
261802Sphk#ifndef _MD4_H_
271802Sphk#define _MD4_H_
281802Sphk/* MD4 context. */
291802Sphktypedef struct {
301802Sphk  unsigned long state[4];	/* state (ABCD) */
311802Sphk  unsigned long count[2];	/* number of bits, modulo 2^64 (lsb first) */
321802Sphk  unsigned char buffer[64];	/* input buffer */
331802Sphk} MD4_CTX;
341802Sphk
351802Sphkvoid   MD4Init(MD4_CTX *);
361802Sphkvoid   MD4Update(MD4_CTX *, unsigned char *, unsigned int);
371802Sphkvoid   MD4Final(unsigned char [16], MD4_CTX *);
381802Sphkchar * MD4End(MD4_CTX *);
391802Sphkchar * MD4File(char *);
401802Sphkchar * MD4Data(unsigned char *, unsigned int);
411802Sphk
421802Sphk#endif /* _MD4_H_ */
43