[openssl.org #1084] Incorrect RIPEMD160 calculation on Solaris/Sparc-64 bit

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[openssl.org #1084] Incorrect RIPEMD160 calculation on Solaris/Sparc-64 bit

Rich Salz via RT

Attempt to build Openssl-0.9.8-stable-SNAP-20050530 on Solaris 8 sparc
using 64-bit mode (solaris64-sparcv9-gcc target) results in error in
RIEMD160 tests.

If test_rmd target is excluded from the tests, all other tests pass
correctly

-- output of make test
../util/shlib_wrap.sh ./rmdtest
error calculating RIPEMD160 on ''
got f5d0d8106761315059ae6b26b7b8f8d709bbad31 instead of
9c1185a5c5e9fc54612808977ee8f548b2258d31
error calculating RIPEMD160 on 'a'
got b043ec680ea550029fa8c516614e87e4b12b6e76 instead of
0bdc9d2d256b3ee9daae347be6f4dc835a467ffe
error calculating RIPEMD160 on 'abc'
got 0f60a77c70133e49f0e9673a01cc2a3594576b5e instead of
8eb208f7e05d987a9b044a8e98c6b087f15a0bfc
error calculating RIPEMD160 on 'message digest'
got 7e0241d14c654e046a285674449a450c0a525228 instead of
5d0689ef49d2fae572b881b123a85ffa21595f36
error calculating RIPEMD160 on 'abcdefghijklmnopqrstuvwxyz'
got b15da71470095d6395c53a3522a99154000ec885 instead of
f71c27109c692c1b56bbdceb5b9d2865b3708dbc
error calculating RIPEMD160 on
'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq'
got a9cf9607242ef0bfddf85d5505a17ff806e01f6e instead of
12a053384a9c0c88e405a06c27dcf49ada62eb2b
error calculating RIPEMD160 on
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'
got c7b9e967202835df2eb3309032e3937c95c46f07 instead of
b0e20b6e3116640286ed3a87a5713079b21f5189
error calculating RIPEMD160 on
'12345678901234567890123456789012345678901234567890123456789012345678901234567890'
got 9dd5182e0f4062f7dbfcee9b300a26e94bd99301 instead of
9b752e45573d4b39f4dbd3323cab82bf63326bfb
make[1]: *** [test_rmd] Error 8
-- output of make report
OpenSSL self-test report:

OpenSSL version:  0.9.8-beta3
Last change:      Correct naming of the 'chil' and '4758cca' ENGINEs. Thi...
Options:          enable-shared -R/usr/local/lib/sparcv9 -L/usr/local/lib/sparcv9 no-gmp no-krb5 no-mdc2 no-rc5 no-zlib no-zlib-dynamic
OS (uname):       SunOS sundae 5.8 Generic_108528-23 sun4u sparc SUNW,Ultra-1
OS (config):      sun4u-whatever-solaris2
Target (default): solaris-sparcv9-gcc
Target:           solaris64-sparcv9-gcc
Compiler:         Configured with: ../configure --disable-nls --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld
Thread model: posix
gcc version 3.3

Test skipped.
-- output of as -V
as: Sun WorkShop 6 99/08/18
-- output of ld -V
ld: Software Generation Utilities - Solaris Link Editors: 5.8-1.283

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: [openssl.org #1084] Incorrect RIPEMD160 calculation on Solaris/Sparc-64 bit

Rich Salz via RT

> Attempt to build Openssl-0.9.8-stable-SNAP-20050530 on Solaris 8 sparc
> using 64-bit mode (solaris64-sparcv9-gcc target) results in error in
> RIEMD160 tests.
>
> If test_rmd target is excluded from the tests, all other tests pass
> correctly
>
> -- output of make test
> ../util/shlib_wrap.sh ./rmdtest
> error calculating RIPEMD160 on ''
> got f5d0d8106761315059ae6b26b7b8f8d709bbad31 instead of
> 9c1185a5c5e9fc54612808977ee8f548b2258d31

Not again! This was discussed couple of times. It's sparc64-specific gcc
bug. Upgrade compiler or drop optimization level. A.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]