|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Alex Alten (Alten
home.com)Date: Fri Feb 23 2001 - 23:45:16 CST
I looked at the code and couldn't see anything obviously wrong.
Did you get this to work using a PC gcc (for example on Linux)?
I did have trouble compiling this line.
tiger_compress_macro(((word64*)str), ((word64*)state));
You should step through both the gcc and msvc versions to
see if your intermediate values are being XOR'd, etc.,
correctly. The problem should pop up fairly quickly. You
may want to turn off any optimizations. Also printf'ing
the intermediate unsigned ints in hex from both versions
and then diff'ing could help automate the debugging.
- Alex
At 12:16 PM 2/20/2001 +0200, biham
cs.Technion.AC.IL wrote:
>Dear Jeff,
>
>I have no clue, and no ability to test on that compiler.
>
>Eli
>
>>From jsimmons
goblin.punk.net Tue Feb 20 03:23:09 2001
>>From: Jeff Simmons <jsimmons
goblin.punk.net>
>>Subject: tiger hash on win32
>>To: coderpunks
toad.com
>>Date: Mon, 19 Feb 2001 17:20:23 -0800 (PST)
>>Cc: biham
cs.technion.ac.il, rja14
cl.cam.ac.uk
>>MIME-Version: 1.0
>>Content-Transfer-Encoding: 7bit
>>
>>A friend of mine sent me the following description of a problem he was
>>having getting the Anderson/Biham Tiger hash to compile under MSVC++.
>>Rather than diving into the MS compiler, which I have very little
>>experience with, I thought I'd post here and see if anyone knows anything
>>about it.
>>
>>Thanks in advance for any assistance, I'll forward all replies to the
>>programmers (it's a distributed, GPL'ed database that doesn't want to
>>show it's face in public just yet ... ).
>>
>>> Ok, here is a complete run-down of the problem at hand:
>>> --------------------------------------------------------
>>>
>>> The tiger hash reference code that is available at
>>> (http://www.cs.technion.ac.il/~biham/Reports/Tiger/) compiles and runs
>>> fine on gcc (even cygwin!), but not with MSVC++ 6.0. The tiger hash code
>>> uses an 'unsigned long long int', which is an unsigned 64bit number.
>>> MSVC++ does not support this type, but the code compiles when you
>>> substitute 'unsigned __int64' for the type.
>>>
>>> However, the testtiger program that comes with the source does not
>>> output the correct hash values under win32/MSVC++ 6.0 -- there seems to
>>> be no relation to the correct output.
>>>
>>> The authors of the tiger hash have also released a 32 bit only version
>>> of their hash code, which compiles without problems under MSVC++.
>>> However, it also outputs incorrect hash values. To make matters worse,
>>> the output of the hash function for these two different versions
>>> compiled on MSVC++ is different!
>>>
>>> Does anyone have a clue as to what needs to be done in order to get the
>>> tiger hash to compile correctly under MSVC++??
>>>
>>> (The MSVC++ has sp3 applied)
>>
>>--
>>Jeff Simmons jeff
punk.net
>> Simmons Consulting - Network Engineering and Administration
>>Punknet - what happens when a bunch of computer geeks with way too much
>> free time and free hardware get pissed off at their ISP.
>>"You guys, I don't hear any noise. Are you sure you're doing it right?"
>> -- My Life With The Thrill Kill Kult
>>
>
>
>----------------------------------------------------------------------------
>Eli Biham Tel: +972-4-8294308
>Computer Science Department Fax: +972-4-8294308
>Technion, Haifa 32000, Israel email: biham
cs.technion.ac.il
>NEW OFFICE: Taub 612 WWW: http://www.cs.technion.ac.il/~biham/
>
--Alex Alten
Alten
Home.Com
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]