Re: help needed with tiger tree hashes
| From: | Carl S. in 't Veld | Date: | Sun, 06 Jun 2004 21:45:04 +0000 |
| Subject: | Re: help needed with tiger tree hashes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187761@lists.php.net to get a copy of this message | ||
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" <TLensselink@factotummedia.nl> wrote in message
news:A306A04842B1D311BA280050DA699620F9E47E@nt-vivenda.fm.local...
> 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?