Yann wrote:


Using the crypto++ library 5.2.1, when we applied the tiger function with the word "aze", we obtained 0B0FD1D46C71D46E3814C9E281E1EA7DDEA52447584AC3F7.
We tried to compare the result with two other implementations of the hash algo. The first one is with the mhash module of php4. The source code is the
following :
<?php
$input = "aze";
$hash = mhash (MHASH_TIGER , $input);
echo "Tiger hash : ".bin2hex ($hash)."<br />\n";
?>
And we obtained 6ed4716cd4d10f0b7deae181e2c91438f7c34a584724a5de.

These appear to be the same hash/number/bits - I expect you are just having trouble with there being multiple ways to represent (or do input/output on) large binary values... the two ways chosen above happen to take different approaches, and thus make it seem like they are not displaying the same "value".


Or that is my quick before-breakfast take. :)

Robert Roessler
[EMAIL PROTECTED]
http://www.rftp.com



Reply via email to