home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
APPS
/
md5.lzh
/
MD5
/
README
< prev
next >
Wrap
Text File
|
1996-01-12
|
3KB
|
59 lines
This directory contains source code for the MD5 message-digest algorithm.
MD5.tar.Z is a compressed tar file of all the other files in this directory.
"md5-announcement.txt" is the announcement from RSA Data Security that
MD5 is being placed in the public domain for free general use.
"rfc1321.txt" is the RFC that describes in detail the MD2, MD4, and MD5
message-digest algorithms.
The *.[ch] files were taken exactly from RFC 1321.
I wrote a simple Makefile to build an md5 executable by default,
with targets for "test" (which implements the test in Appendix A.5 in the RFC)
and "clean". Running Makefile with no targets will build the "md5" binary.
There is a typo in the RFC Appendix A.4 (mddriver.c).
Line 20 sets MD to "MD5" by default, but the code wants
MD to be set to one of "2", "4", or "5".
I put a -DMD=5 in the Makefile to mask this problem so that the
code itself remains unchanged from what is in RFC 1321.
Ric Anderson, ric@Artisoft.COM, provided a bug fix to the timing test
code that caused a divide by zero aborts on a Sun sparc station-10
running soalris 2.3. This fix to mddriver.c is the only change to the
code in RFC 1321 and corrects only a problem with the timing tests.
No change to the code that implements the actual checksum has been made.
Ric has also provided a man page - "md5.1". A postscript version
of this man page is in "md5.1.ps" and a text version in "md5.1.txt".
-- Jim Ellis (jte@cert.org)
For OSK Users
The original Unix archive MD5.TAR.GZ is included in ths archive. I have made
some alterations to the source files for OSK, but nothing that changes the
checksum implementation. I changed #ifs to #ifdefs, and changed the way
functions are declared to make it compatible with the uWare C Compiler. Any
additions to the code use #ifdef OSK, etc. The OSK version has a help message
(-h) that is not reflected in the man pages.
Okay, to compile this thing, you will need the the defs files from the
Blarslib archive (I have included the two you'll need for your convience).
To compile, just use the makefile. The executable included was compiled on
a Blackhawk MM/1 w/68070 & 3 Megs.
To check the executeable do the following:
md5 -x >test2; cmp test test2
If there are any differences between the two files, something is wrong.
If you do the timing test option, don't be surprised if it takes a while
on some machines. On my machine it takes around a minute! But since OS9 is
a multitasking system, your mileage may vary.
Hopefully this will be useful to someone!
--Dean