Menu

#1360 sha256 output is wrong on 32bit Linux

open
sha1 (6)
5
2013-04-02
2013-04-02
Anonymous
No

I am using ActiveState Tcl for 32bit and 64bit Linux.
The command is:
sha2::sha256 -hex tk

The output is:
32bit Linux:
0b9422c2ca451b24fea81114412fb2c61e2ced68889466119b72d36c4ec3c337

64bit Linux:
1ec22d56dbbc91e849b00643bc4f10eb764441c93bde5c6090fe81db55cf6932

When using any web based sha256 generators the output is:
1ec22d56dbbc91e849b00643bc4f10eb764441c93bde5c6090fe81db55cf6932

Therefore, 32bit sha256 output seems to be incorrect.

NOTE: A ticket ID: 3609575 was open for this issue under Tcl tracker:
http://sourceforge.net/tracker/?func=detail&aid=3609575&group_id=10894&atid=110894

I am closing that ticket and moving it to tcllib since it has been determined that the problem is with the accelerated code in tcllibc (when forced to use plain Tcl, the code behaves correctly).

Discussion