/* MD5.H - header file for MD5C.C * $FreeBSD$ */ /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All rights reserved. License to copy and use this software is granted provided that it is identified as the "RSA Data Security, Inc. MD5 Message-Digest Algorithm" in all material mentioning or referencing this software or this function. License is also granted to make and use derivative works provided that such works are identified as "derived from the RSA Data Security, Inc. MD5 Message-Digest Algorithm" in all material mentioning or referencing the derived work. RSA Data Security, Inc. makes no representations concerning either the merchantability of this software or the suitability of this software for any particular purpose. It is provided "as is" without express or implied warranty of any kind. These notices must be retained in any copies of any part of this documentation and/or software. */ #ifndef _MD5_H_ #define _MD5_H_ /* MD5 context. */ typedef struct _MD5_CTX { unsigned long state[4]; /* state (ABCD) */ unsigned long count[2]; /* number of bits, modulo 2^64 (lsb first) */ unsigned char buffer[64]; /* input buffer */ } MD5_CTX; #ifndef __ # ifdef __STDC__ # define __(x) x # else # define __(x) () # endif #endif /* ** The following macro re-definitions added to work around a problem on ** Solaris where the original MD5 routines are already in /lib/libnsl.a. ** This causes dynamic linking of the module to fail. ** ** Thanks to Ken Pizzini (ken@spry.com) for finally nailing this one! */ #if defined(__sun) && defined(__SVR4) #define MD5Init MD5Init_perl #define MD5Update MD5Update_perl #define MD5Final MD5Final_perl #endif void MD5Init __((MD5_CTX *)); void MD5Update __((MD5_CTX *, const unsigned char *, const unsigned int)); void MD5Final __((unsigned char [16], MD5_CTX *)); #endif /* _MD5_H_ */