Pavel Stanek wrote:
 
> I think that there is a bug in [OpenSSL 0.9.8 ] SHA-256 implementation [ when 
> on a big-endian x86 ]
> Platform is Renesas SH3E in BIG-endian mode ( used compiler sh3eb-linux-gcc)
>
> OpenSSL version:  0.9.8u
> Options:          -DB_ENDIAN 
> Target:           linux-generic32
> Compiler:         Configured with: --build=i686-pc-linux-gnu 

[ above information starkly edited by me to emphasize big-endian on x86]

OpenSSL is just one of many open-source packages whose authors have assumed 
that all IA32 implementations are little endian. I discovered the same problem 
several years ago when we ported OpenSSL to the Stratus VOS operating system, 
which is also big-endian on IA32. This issue is so pervasive that when a 
numeric package fails on my system, I immediately start looking for C macros of 
the form "__i386".

The good news is that the OpenSSL team has been kind enough to accept patches 
from me that correct this situation, and I think you will find that later 
versions of OpenSSL will work just fine. I have had no trouble with the current 
versions of OpenSSL (i.e., 1.0.0 or 1.0.1).

See the patches that I submitted under RT #1130 to correct this issue, and 
which were applied by Richard Levitte on June 23, 2005 or so (the RT comment 
doesn't say to which branch it was applied, however).

PG
:��I"Ϯ��r�m����
(����Z+�7�zZ)���1���x��h����W^��^��%����&jם.+-1�ځ��j:+v�������h�

Reply via email to