help needed with tiger tree hashes
| From: | Carl S. in 't Veld | Date: | Thu, 03 Jun 2004 22:52:28 +0000 |
| Subject: | help needed with tiger tree hashes | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-187583@lists.php.net to get a copy of this message | ||
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?
begin 666 frown.gif
M1TE&.#EA#P
/-4_`/_XH-++?L[(?-7/@-_8AO_WF__[SO_XI__YL=W6A/_\
MW/_ZO?_WG?_XJ_KREO_[TO_YL/_\U?WUF.[GC__XHO_[Q\K#>?_[RO'JD<.]
M=<?!=^;?BO_ZP/_WF?_XI?_[R=S5A/[VF/_[T?_\W?_[R__ZO/_XJO;NE/_\
MV<*\=?CPE>KCC/_\V/_YK__YM<O%>OGQE?_[QO_ZO__XH__YM.CAB^':A]3-
M?__ZPMG2@OSTE__ZN^/<B,&[= ``*2DI"'Y! $#\+
````/\``:3
MP)]0Z"L6A\A?4<%Z7#A'I$\Q\D4,,1_DX!OZ6"BKH2*C^1B.KO+A$Y%P.U<#
MX,-T?97+IP@Q<>LU-D4+"R5%`P%11L)T4(""T-% 4=$B<K"0$O11XS%
`%
M$CHP$P0!&BE%(0XJ)T9%AD]/7<3*SX\!" #%CZT:CX;!#DWA:SM+5>`P(:
.RLIJ7K_044E*L$E!#L
`
end
begin 666 confused.gif
M1TE&.#EA#P6-4_`,.]=?GQE?#HD/_XH=++?O_WF_'JD>;?BL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