* OpenSource/GPL crypto software and Alpha?
@ 1999-12-16 10:57 Designer Seven
1999-12-16 11:34 ` Dr. David Gilbert
1999-12-16 16:05 ` Michal Jaegermann
0 siblings, 2 replies; 5+ messages in thread
From: Designer Seven @ 1999-12-16 10:57 UTC (permalink / raw)
To: Alpha Linux Mailing List
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.
example2: SSLeay-0.9.0b... again, compiles on x86,
sparc, alpha... but, on alpha, most of the 'tests'
fail.
example3: OpenSSL ... same story...
compiler is gcc-2.95.2 and also tried CCC-6.2. I
remember having the same problems back when I was
using egcs-1.1.2.... and egcs-1.0.3...
WHY? If anyone can explain this, please do! For
example, the GNU tool md5sum compiled by gcc-2.95.2
seems to always generate the correct hash. What makes
it so different? the RSA md5 ref code works fine on
Intel and SPARC... just not Alpha, and that's the
exact same C code...!!
Thanks,
D.
__________________________________________________
Do You Yahoo!?
Thousands of Stores. Millions of Products. All in one place.
Yahoo! Shopping: http://shopping.yahoo.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: OpenSource/GPL crypto software and Alpha?
1999-12-16 10:57 OpenSource/GPL crypto software and Alpha? Designer Seven
@ 1999-12-16 11:34 ` Dr. David Gilbert
1999-12-16 16:05 ` Michal Jaegermann
1 sibling, 0 replies; 5+ messages in thread
From: Dr. David Gilbert @ 1999-12-16 11:34 UTC (permalink / raw)
To: Alpha Linux Mailing List
On Thu, 16 Dec 1999, 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.
....
> WHY? If anyone can explain this, please do! For
> example, the GNU tool md5sum compiled by gcc-2.95.2
> seems to always generate the correct hash. What makes
> it so different? the RSA md5 ref code works fine on
> Intel and SPARC... just not Alpha, and that's the
> exact same C code...!!
Well there are two normal possibilities:
1) The code isn't 64 bit clean.
2) The compiler is broke
Since your saying that you've tried various compilers and there all broke
then (2) is less likely.
So the chance is that somewhere in the crypto code there is some un-64 bit
cleanliness. Report it as a bug to the authors of the code.
Dave
/------------------------------------------------------------------\
| Dr. David Alan Gilbert | Work:dg@px.uk.com +44-161-286-2000 Ex258|
| -------- G7FHJ --------|---------------------------------------- |
| Home: dave@treblig.org http://www.treblig.clara.net |
\------------------------------------------------------------------/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: OpenSource/GPL crypto software and Alpha?
1999-12-16 10:57 OpenSource/GPL crypto software and Alpha? Designer Seven
1999-12-16 11:34 ` Dr. David Gilbert
@ 1999-12-16 16:05 ` Michal Jaegermann
1999-12-16 16:25 ` furio ercolessi
1 sibling, 1 reply; 5+ messages in thread
From: Michal Jaegermann @ 1999-12-16 16:05 UTC (permalink / raw)
To: axp-list
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.
Eh? This is md5sum for some random file calculated on Alpha:
380aa9072f3b9775c80f0be088c4170
This is md5sum for the same file mounted via NFS and calculated
on x86 machine:
380aa9072f3b9775c80f0be088c4170
I fail to see a difference.
My ssh works transparently between different boxes, some even running
'doze, so it appears that they all compute encryption the same way.
Samba server on Alpha with clients using encrypted passwords is doing
just fine. Last but not least xpdf with a support for "encrypted" pdfs
does not care what an underlying processor happens to be. Just
examples. Actually all crypto libraries which I have seen take care to
be portable and sources usually come with corectness tests. I do not
even think that any of these libraries is Linux specific (I may be wrong
on the last point but I do not recall any of that kind at this moment).
Different machines, different compilers, compiled in different
times and in circumstances.
>
> WHY? If anyone can explain this, please do!
Gremlins? Cosmic rays? A broken instance of some library underneath?
Michal
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: OpenSource/GPL crypto software and Alpha?
1999-12-16 16:05 ` Michal Jaegermann
@ 1999-12-16 16:25 ` furio ercolessi
0 siblings, 0 replies; 5+ messages in thread
From: furio ercolessi @ 1999-12-16 16:25 UTC (permalink / raw)
To: axp-list
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: OpenSource/GPL crypto software and Alpha?
@ 1999-12-19 5:07 Designer Seven
0 siblings, 0 replies; 5+ messages in thread
From: Designer Seven @ 1999-12-19 5:07 UTC (permalink / raw)
To: axp-list
-- Michal Jaegermann
<michal@ellpspace.math.ualberta.ca> 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.
>
> Eh? This is md5sum for some random file calculated
> on Alpha:
> 380aa9072f3b9775c80f0be088c4170
> This is md5sum for the same file mounted via NFS and
> calculated
> on x86 machine:
> 380aa9072f3b9775c80f0be088c4170
Ok, perhaps an example would clarify what I am trying
to say:
from ftp.rsa.com ... there is the MD5 reference code.
This code, compiled on Alpha (using gcc,egcs, or ccc)
gets me this:
MD5 (md5.txt) = 7504cf60785d3eff97ecd0a01d537640
which is incorrect.
The EXACT same code, compiled on an UltraSPARC gives:
MD5 (md5.txt) = c6beb4140671d319f6433a3399cf6df2
which is correct.
md5sum on Alpha on the same file (md5.txt) gives:
c6beb4140671d319f6433a3399cf6df2 md5.txt
So I guess you can say, md5sum does work. However, why
does the same code on two different machines generate
two different things? The MD5 reference code works
fine on intel and ultrasparc, but not Alpha.
It was probably not wise to state "OpenSource/GPL"...
which might have implied "ALL OpenSource/GPL" ...
which isn't the case. But so far, this MD5 thing is
confusing to me. Also, SSLeay and OpenSSL both
compile, however almost all tests fail.
Has anyone gotten SSLeay to work on Alpha?
> examples. Actually all crypto libraries which I
> have seen take care to
> be portable and sources usually come with corectness
> tests. I do not
> even think that any of these libraries is Linux
> specific (I may be wrong
> on the last point but I do not recall any of that
> kind at this moment).
Well, at least the OpenSSL and SSLeay stuff hasn't
worked for me.... has it for you? Like you stated, the
"correctness" tests mostly fail. If you have any
ideas, please enlighten me!
Thanks,
D.
__________________________________________________
Do You Yahoo!?
Thousands of Stores. Millions of Products. All in one place.
Yahoo! Shopping: http://shopping.yahoo.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1999-12-19 5:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-12-16 10:57 OpenSource/GPL crypto software and Alpha? Designer Seven
1999-12-16 11:34 ` Dr. David Gilbert
1999-12-16 16:05 ` Michal Jaegermann
1999-12-16 16:25 ` furio ercolessi
-- strict thread matches above, loose matches on Subject: below --
1999-12-19 5:07 Designer Seven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox