md4.h revision 75374
175374Sbp/* MD4.H - header file for MD4C.C 275374Sbp * $FreeBSD: head/sys/sys/md4.h 75374 2001-04-10 07:59:06Z bp $ 375374Sbp */ 475374Sbp 575374Sbp/* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All 675374Sbp rights reserved. 775374Sbp 875374Sbp License to copy and use this software is granted provided that it 975374Sbp is identified as the "RSA Data Security, Inc. MD4 Message-Digest 1075374Sbp Algorithm" in all material mentioning or referencing this software 1175374Sbp or this function. 1275374Sbp License is also granted to make and use derivative works provided 1375374Sbp that such works are identified as "derived from the RSA Data 1475374Sbp Security, Inc. MD4 Message-Digest Algorithm" in all material 1575374Sbp mentioning or referencing the derived work. 1675374Sbp 1775374Sbp RSA Data Security, Inc. makes no representations concerning either 1875374Sbp the merchantability of this software or the suitability of this 1975374Sbp software for any particular purpose. It is provided "as is" 2075374Sbp without express or implied warranty of any kind. 2175374Sbp 2275374Sbp These notices must be retained in any copies of any part of this 2375374Sbp documentation and/or software. 2475374Sbp */ 2575374Sbp 2675374Sbp#ifndef _MD4_H_ 2775374Sbp#define _MD4_H_ 2875374Sbp/* MD4 context. */ 2975374Sbptypedef struct MD4Context { 3075374Sbp u_int32_t state[4]; /* state (ABCD) */ 3175374Sbp u_int32_t count[2]; /* number of bits, modulo 2^64 (lsb first) */ 3275374Sbp unsigned char buffer[64]; /* input buffer */ 3375374Sbp} MD4_CTX; 3475374Sbp 3575374Sbp#include <sys/cdefs.h> 3675374Sbp 3775374Sbp__BEGIN_DECLS 3875374Sbpvoid MD4Init(MD4_CTX *); 3975374Sbpvoid MD4Update(MD4_CTX *, const unsigned char *, unsigned int); 4075374Sbpvoid MD4Pad(MD4_CTX *); 4175374Sbpvoid MD4Final(unsigned char [16], MD4_CTX *); 4275374Sbpchar * MD4End(MD4_CTX *, char *); 4375374Sbpchar * MD4File(const char *, char *); 4475374Sbpchar * MD4Data(const unsigned char *, unsigned int, char *); 4575374Sbp__END_DECLS 4675374Sbp 4775374Sbp#endif /* _MD4_H_ */ 48