From: mskucher@vertex.tor.hookup.net (Murray S. Kucherawy)
Subject: Re: My first question about Digital Unix v3.2F
Date: 1996/07/02 [thread overview]
Message-ID: <4rc001$gdr@vertex.tor.hookup.net> (raw)
In-Reply-To: 4q8u9u$coi@rc1.vub.ac.be
In article <4q8u9u$coi@rc1.vub.ac.be>, Chi Xiaochen <xchi@ulb.ac.be> 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 --
prev parent reply other threads:[~1996-07-02 4:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-06-19 4:00 My first question about Digital Unix v3.2F Chi Xiaochen
1996-06-19 4:00 ` Lawrence Macintyre
1996-06-19 4:00 ` Mike Iglesias
1996-06-21 4:00 ` Peter Mayne
1996-07-02 4:00 ` Murray S. Kucherawy [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox