Hi all, I think that there is a bug in SHA-256 implementation. I have tried to compile least Openssl of 0.9.8 branch - 0.9.8u but make test failed on SHA-256 test. ../util/shlib_wrap.sh ./shatest test 1 ok test 2 ok test 3 ok ../util/shlib_wrap.sh ./sha1test test 1 ok test 2 ok test 3 ok ../util/shlib_wrap.sh ./sha256t Testing SHA-256 TEST 1 of 3 failed. make[1]: *** [test_sha] Error 1 I also notice that previous version of OpenSSL also calculate wrong SHA-256 hash of data. Compared to little endian machines where the hash is correct. Platform is Renesas SH3E in BIG-endian mode ( used compiler sh3eb-linux-gcc) OpenSSL self-test report:
OpenSSL version: 0.9.8u Last change: Fix MMA (Bleichenbacher's attack on PKCS #1 v1.5 RSA pa... Options: --prefix=/usr enable-zlib-dynamic -DB_ENDIAN no-camellia no-capieng no-cms no-gmp no-hw no-jpake no-krb5 no-mdc2 no-montasm no-rc5 no-rfc3779 no-seed no-shared OS (uname): Linux 10.1.5.102 2.6.15-29 #2 Tue Jan 10 15:23:09 CET 2012 sh3eb unknown OS (config): sh3eb-whatever-linux2 Target (default): linux-generic32 Target: linux-generic32 Compiler: Configured with: ../configure --prefix=/usr --mandir=/usr/man --target=sh3eb-linux --host=sh3eb-linux --build=i686-pc-linux-gnu --enable-langu ages=c,c++,java --disable-checking --with-x=no --enable-threads=posix --enable-long-long Thread model: posix gcc version 3.0.4 Thanks for any advance. Pavel Stanek ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager majord...@openssl.org