go to bug id or search bugs for
The testtiger program prints its hashes with each 8-byte chunk byte-swapped (perhaps arch-dependent?). The "24f0130c63ac9332..." hash of the tiger*,3 family would be printed "3293ac630c13f024..." in MSB-first representation, e.g. as given on Wikipedia's example output.
Perl's Digest::Tiger also uses the MSB-first format: http://search.cpan.org/~clintdw/Digest-Tiger-0.03/Tiger.pm#NOTE
The lack of MSB-first order potentially impacts interoperability, but changing the output of "tiger192,3" would break BC with anyone who doesn't have interop problems.
This bug has been observed in php 5.2.6 as well.
<?php echo hash('tiger192,3', ''), "\n"; ?>
Add a Patch
Add a Pull Request
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.
Automatic comment from SVN on behalf of frozenfire
Log: Added changelog, indicating that the Tiger hash algorithm now uses big-endian byte ordering. Closes bug #60221.