Edit report at https://bugs.php.net/bug.php?id=60221&edit=1

 ID:                 60221
 Updated by:         frozenf...@php.net
 Reported by:        chadd at fidelissys dot com
 Summary:            Tiger hash output byte order
-Status:             Open
+Status:             Closed
 Type:               Bug
 Package:            hash related
 Operating System:   Linux
 PHP Version:        5.3.8
 Assigned To:        mike
 Block user comment: N
 Private report:     N



Previous Comments:
------------------------------------------------------------------------
[2012-01-27 23:12:23] frozenf...@php.net

Automatic comment from SVN on behalf of frozenfire
Revision: http://svn.php.net/viewvc/?view=revision&revision=322885
Log: Added changelog, indicating that the Tiger hash algorithm now uses 
big-endian byte ordering. Closes bug #60221.

------------------------------------------------------------------------
[2012-01-17 15:26:24] m...@php.net

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
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.



------------------------------------------------------------------------
[2011-11-04 18:27:50] chadd at fidelissys dot com

Description:
------------
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.

Test script:
---------------
<?php echo hash('tiger192,3', ''), "\n"; ?>


Expected result:
----------------
3293ac630c13f0245f92bbb1766e16167a4e58492dde73f3

Actual result:
--------------
24f0130c63ac933216166e76b1bb925ff373de2d49584e7a


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=60221&edit=1

Reply via email to