From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 32353 invoked from network); 16 Dec 1999 16:25:17 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 16 Dec 1999 16:25:17 -0000 Received: from despam.spin.it (despam.spin.it [147.123.1.123]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id LAA08256 for ; Thu, 16 Dec 1999 11:25:15 -0500 Received: from mail.spin.it (plus.spin.it [147.123.1.12]) by despam.spin.it (Postfix/beta-19990601/Spin-ext-16nov1999) with ESMTP id 8F7173C01E for ; Thu, 16 Dec 1999 17:25:13 +0100 (CET) Received: (from furio@localhost) by mail.spin.it (8.9.1/8.9.1/spin-int-nov1999) id RAA30028 for axp-list@redhat.com; Thu, 16 Dec 1999 17:25:13 +0100 Date: Thu, 16 Dec 1999 17:25:13 +0100 From: furio ercolessi To: axp-list@redhat.com Subject: Re: OpenSource/GPL crypto software and Alpha? Message-ID: <19991216172513.A29422@spin.it> References: <19991216105745.10366.qmail@web116.yahoomail.com> <199912161605.JAA06873@ellpspace.math.ualberta.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: <199912161605.JAA06873@ellpspace.math.ualberta.ca>; from Michal Jaegermann on Thu, Dec 16, 1999 at 09:05:52AM -0700 On Thu, Dec 16, 1999 at 09:05:52AM -0700, Michal Jaegermann wrote: > Designer Seven wrote: > > > > I seem to always be having problems with crypto > > software on Alpha. I don't get it... > > > > example1: RSA md5 ref code... compiles on x86, sparc, > > alpha... but, md5 hash on alpha is always wrong. > I remember last year spending some time to get Merit Radius working on AlphaLinux. It did not authenticate users due to an MD5 problem similar to that reported by Designer Seven. After strenuous debugging and hard thinking, it turned out to be a trivial porting problem: all I had to do was to edit a file named 'md5.h', turning #if defined(__alpha) && defined(__osf__) typedef unsigned int UINT4; #else typedef unsigned long int UINT4; #endif into #if defined(__alpha) /* both OSF and Linux! */ typedef unsigned int UINT4; #else typedef unsigned long int UINT4; #endif and then it started working flawlessly! > > WHY? If anyone can explain this, please do! I made an attempt. furio ercolessi Spin