From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,3edd850cbf9e6453 X-Google-Attributes: gidfee84,public From: iglesias@draco.acs.uci.edu (Mike Iglesias) Subject: Re: Digital UNIX and MD5 Date: 1997/04/07 Message-ID: <5ibufq$6l0@news.service.uci.edu>#1/1 X-Deja-AN: 231406389 References: <5ib1s6$9dg1@news.nde.state.ne.us> Organization: University of California, Irvine Newsgroups: comp.unix.osf.osf1 In article <5ib1s6$9dg1@news.nde.state.ne.us>, bzimmer wrote: >Has anyone had any problems with MD5 and Digital UNIX? I've downloaded >MD5 from ftp.cert.org and compiled it, but when I run the tests, they >all fail. I wander over to one of our Linux machines, go through the >exact same steps, and MD5 passes with flying colors. > >Any ideas? I took a quick glance through the code and saw quite a few >bit shifts and that kind of thing, so I wondered if this wouldn't have >something to do with DU being 64 bit. Yes, it does. Apply the patch below to fix it. *** global.h.dist Thu May 13 11:15:17 1993 --- global.h Thu Nov 2 11:10:20 1995 *************** *** 17,23 **** --- 17,27 ---- typedef unsigned short int UINT2; /* UINT4 defines a four byte word */ + #ifdef __alpha + typedef unsigned int UINT4; + #else typedef unsigned long int UINT4; + #endif /* PROTO_LIST is defined depending on how PROTOTYPES is defined above. If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it -- Mike Iglesias Internet: iglesias@draco.acs.uci.edu University of California, Irvine phone: (714) 824-6926 Office of Academic Computing FAX: (714) 824-2069