From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,f1d30be58273155a X-Google-Attributes: gidfee84,public From: mskucher@vertex.tor.hookup.net (Murray S. Kucherawy) Subject: Re: My first question about Digital Unix v3.2F Date: 1996/07/02 Message-ID: <4rc001$gdr@vertex.tor.hookup.net>#1/1 X-Deja-AN: 163347112 references: <4q8u9u$coi@rc1.vub.ac.be> organization: HookUp Communication Corporation, Oakville, Ontario, CANADA nntp-posting-user: mskucher newsgroups: comp.unix.osf.osf1 In article <4q8u9u$coi@rc1.vub.ac.be>, Chi Xiaochen wrote: >Here is another question: We compiled the MD5 package without any problem. >But the test failed. Here is the output of 'make test' > >./md5 -x | diff - test.rfc > diffs 2>&1 >*** Exit 1 (ignored) >*** MD5 TEST FAILED >2,8c2,8 >< MD5 ("") = e4c23762ed2823a27e62a64b95c024e7 >< MD5 ("a") = 793a9bc07e209b286fa416d6ee29a85d >< MD5 ("abc") = 7999dc75e8da648c6727e137c5b77803 >< MD5 ("message digest") = 840793371ec58a6cc84896a5153095de >< MD5 ("abcdefghijklmnopqrstuvwxyz") = 98ef94f1f01ac7b91918c6747fdebd96 >< MD5 ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") = >dabcd >637cde443764c4f8aa099cf23be >< MD5 >("123456789012345678901234567890123456789012345678901234567890123456789012 >34567890") = e29c01a1e2a663c26b4a68bf7ec42df7 >--- >> MD5 ("") = d41d8cd98f00b204e9800998ecf8427e >> MD5 ("a") = 0cc175b9c0f1b6a831c399e269772661 >> MD5 ("abc") = 900150983cd24fb0d6963f7d28e17f72 >> MD5 ("message digest") = f96b697d7cb7938d525a2f31aaf161d0 >> MD5 ("abcdefghijklmnopqrstuvwxyz") = c3fcd3d76192e4007dfb496cca67e13b >> MD5 ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") = >d174a >b98d277d9f5a5611c2c9f419d9f >> MD5 >("123456789012345678901234567890123456789012345678901234567890123456789012 >34567890") = 57edf4a22be3c955ac49da2e2107b67a >rm -f diffs > >Anyone can tell me what is wrong. Should I add a "magic" compile option? If I remember correctly, MD5 was written to assume 16-bit integers. Alpha integers are 32-bit. In "global.h", change the UINT2 and UINT4 typedefs to be "unsigned short int" and "unsigned int", respectively, and recompile. -- Murray S. Kucherawy ====================================== mskucher@hookup.net Vice-President, Software Services HookUp Communication Corporation (905) 847-8000 NIC Handle "MSK" Oakville, Ontario, CANADA -- EMACS: Eight Megs And Constantly Swapping --