Re: [PHP] help needed with tiger tree hashes
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
RE: [PHP] help needed with tiger tree hashes
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
[PHP] help needed with tiger tree hashes
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*\=?CPEKCC/_\V/_YK__YMO%OGQE?_[QO_ZO__XH__YM.CAB^':A]3- [EMAIL PROTECTED]/B,[= ```*2DI'Y! $``#\`+ `/``\```:3 MP)]0ZL6A\A?4%Z7#A'I$\Q\D4,,1_DX!OZ6BKH2*C^1B.KO+A$Y%P.U# MX,[EMAIL PROTECTED]LU-D4+R5%``P%11L)`T4(T-% 4=$BK0$O11XS% `% M$CHP$P0!BE%(0XJ)T9%`AD]/73*SX\! #%CZT:CX;!#DW`A:SM+5`P(: .RLIJ7K_044E*L$E!`#L` ` end begin 666 confused.gif M1TE.#EA#P`6`-4_`,.]=?GQE?#HD/_XH=++?O_WF_'JD;?BL[(?.KCC,?! M=__XJ__[Q__[RO_\W-7.@/_YL?_YL-W6A/_[TOKREO_WG=_8AO_\U?WUF/_\ MV?_YM?_XHO_[SO_ZO?_ZN__XI^[GC__XI?3MD_;ND__ZP/_[QLK#GBC/[V MF/_\V/_[RO%O_ZO/_YM/_XJO_XH__YK][7A?_\T__\U^':A__ZPO_ZO__W MF?_\W?_XJ/STE_;NE/_\V\[= ```*2DI'Y! $``#\`+ `/`!8```:E MP-_/)Q02B\A4GDD)I?(O1)E5JOTBH2R\7ZOE_NUY:-$CAK /'[EMAIL PROTECTED] MZ9ME,FZK96K4)H3,E\U'AI?% 9.# TJ7Q$NSX)S1?'1TL@L#%04Z!@2 M#U\0$# +P4W,[EMAIL PROTECTED]P,%#H!(!8$@!?*!0!.R([EMAIL PROTECTED] `]/4X@ @[EMAIL PROTECTED]@6/@\()LL^S'3:M343T/XVE7TN5!`#L` ` end -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php