% pwd /usr/local/src/md5 % ls -l 合計 70 -rw------- 1 tachi install 35287 7月 27日 14:11 MD5.tar.Z % zcat MD5.tar.Z | tar xvf - x Makefile, 1644 bytes, 4 テープブロック x README, 5568 bytes, 11 テープブロック x global.h, 781 bytes, 2 テープブロック x md5-announcement.txt, 1898 bytes, 4 テープブロック x md5.1, 1288 bytes, 3 テープブロック x md5.1.ps, 8572 bytes, 17 テープブロック x md5.1.txt, 1503 bytes, 3 テープブロック x md5.h, 1350 bytes, 3 テープブロック x md5c.c, 10423 bytes, 21 テープブロック x mddriver.c, 5354 bytes, 11 テープブロック x rfc1321.txt, 35223 bytes, 69 テープブロック % make gcc -c -O -DMD=5 md5c.c gcc -c -O -DMD=5 mddriver.c gcc -o md5 md5c.o mddriver.o % make test echo 'MD5 test suite:' > test.rfc echo 'MD5 ("") = d41d8cd98f00b204e9800998ecf8427e' >> test.rfc echo 'MD5 ("a") = 0cc175b9c0f1b6a831c399e269772661' >> test.rfc echo 'MD5 ("abc") = 900150983cd24fb0d6963f7d28e17f72' >> test.rfc echo 'MD5 ("message digest") = f96b697d7cb7938d525a2f31aaf161d0' >> test.rfc echo 'MD5 ("abcdefghijklmnopqrstuvwxyz") = c3fcd3d76192e4007dfb496cca67e13b' >> test.rfc echo 'MD5 ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") = d174ab98d277d9f5a5611c2c9f419d9f' >> test.rfc echo 'MD5 ("12345678901234567890123456789012345678901234567890123456789012345678901234567890") = 57edf4a22be3c955ac49da2e2107b67a' >> test.rfc ./md5 -x | diff - test.rfc > diffs 2>&1 *** MD5 Test Passed rm -f diffs %
|