Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Digital UNIX and MD5
@ 1997-04-07  4:00 bzimmer
  1997-04-07  4:00 ` Mike Iglesias
  0 siblings, 1 reply; 2+ messages in thread
From: bzimmer @ 1997-04-07  4:00 UTC (permalink / raw)



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.

We're running DU 4.0B, in case that helps.

Brad Zimmerman     (bzimmer@genie.esu10.k12.ne.us)
Educational Service Unit 10
Kearney NE
                       



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Digital UNIX and MD5
  1997-04-07  4:00 Digital UNIX and MD5 bzimmer
@ 1997-04-07  4:00 ` Mike Iglesias
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Iglesias @ 1997-04-07  4:00 UTC (permalink / raw)



In article <5ib1s6$9dg1@news.nde.state.ne.us>,
bzimmer <bzimmer@genie.esu10.k12.ne.us> 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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-04-07  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-04-07  4:00 Digital UNIX and MD5 bzimmer
1997-04-07  4:00 ` Mike Iglesias

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox