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.
We also tried with the gcrypt lib which produces exactly the same result as mhash (the source code is longer but available on request).
So we would like to know if there is a bug in your library or if we have made a bad use of the library.
As attachment my source
 
Thx for your help  

Attachment: hash.cpp
Description: Binary data

Reply via email to