# $Id$ /*********************************************************************** ** md5.c -- the source code for MD5 routines ** ** RSA Data Security, Inc. MD5 Message-Digest Algorithm ** ** Created: 2/17/90 RLR ** ** Revised: 1/91 SRD,AJ,BSK,JT Reference C Version ** ** Revised (for MD5): RLR 4/27/91 ** *********************************************************************** ** Copyright (C) 1990, RSA Data Security, Inc. 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 ** ***********************************************************************/ The MD5 message-digesting package is copyrighted by RSA Data Security, Inc. The disclaimer from the C code has been retained, and is shown above. All big-endian/little-endian specific code in md5.c has been replaced by code that can resolve this automatically at compile-time. Tripwire specific code is in md5wrapper.c, which contains the routine 'sig_md5_get' to minimize the amount of overhead in collecting signatures from within Tripwire. (We certainly don't want to fork() for every file we need to scan!) Because of this, these files is no longer identical to the MD5 virgin distribution. I have sent my changes to the MD5 author, but I am not aware of any buybacks at this time. The original MD5 code can be found in the Internet Working Draft RFC 1321. This can be obtained via anonymous FTP (user = anonymous, password = guest) from NIC.DDN.MIL. Gene Kim September 7, 1992