Ah yes! Thanks, I see the problem; I have to switch the 8-byte chunks in
byte-order! (Why is Directconnect doing this...)
Thanks for your help. Greetings, Carl.

"Thijs Lensselink" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> check: http://www.cs.technion.ac.il/~biham/Reports/Tiger/testresults.html
> The results you posted seem to be right.
>
> Carl S. in 't Veld wrote on vrijdag 4 juni 2004 0:52:
>
> > 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
> > http://www.cs.technion.ac.il/~biham...ssie-format.dat
> > and they appear to be different!
> >
> > echo bin2hex(mhash(MHASH_TIGER, 'abc'))."<br/>\n";
> > outputs
> > f258c1e88414ab2a527ab541ffc5b8bf935f7b951c132951
> > instead of
> > 2AAB1484E8C158F2BFB8C5FF41B57A525129131C957B5F93
> >
> > and, for example,
> > echo bin2hex(mhash(MHASH_TIGER, 'message digest'))."<br/>\n";
> > outputs
> > 951a2078cbf881d91c441e754830cf0df6295aa51aca7f51
> > instead of
> > D981F8CB78201A950DCF3048751E441C517FCA1AA55A29F6
> >
> > What am I doing wrong here?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to