I am trying to generate tiger tree hashes the same way as directconnect
does, but I am failing.
I checked the output from php with the reference vectors from
and they appear to be different!
echo bin2hex(mhash(M HASH_TIGER, 'abc'))."<br/>\n";
outputs
f258c1e88414ab2 a527ab541ffc5b8 bf935f7b951c132 951
instead of
2AAB1484E8C158F 2BFB8C5FF41B57A 525129131C957B5 F93
and, for example,
echo bin2hex(mhash(M HASH_TIGER, 'message digest'))."<br/>\n";
outputs
951a2078cbf881d 91c441e754830cf 0df6295aa51aca7 f51
instead of
D981F8CB78201A9 50DCF3048751E44 1C517FCA1AA55A2 9F6
What am I doing wrong here?
Greetings, Carl in 't Veld
does, but I am failing.
I checked the output from php with the reference vectors from
and they appear to be different!
echo bin2hex(mhash(M HASH_TIGER, 'abc'))."<br/>\n";
outputs
f258c1e88414ab2 a527ab541ffc5b8 bf935f7b951c132 951
instead of
2AAB1484E8C158F 2BFB8C5FF41B57A 525129131C957B5 F93
and, for example,
echo bin2hex(mhash(M HASH_TIGER, 'message digest'))."<br/>\n";
outputs
951a2078cbf881d 91c441e754830cf 0df6295aa51aca7 f51
instead of
D981F8CB78201A9 50DCF3048751E44 1C517FCA1AA55A2 9F6
What am I doing wrong here?
Greetings, Carl in 't Veld