Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANJ2NMOYM6qZVF8pLN1jq-MF2KVzxamSt6H_WWuzK_tNh6D09Q@mail.gmail.com>
Date: Sun, 6 May 2012 09:55:31 +0800
From: myrice <qqlddg@...il.com>
To: john-dev@...ts.openwall.com
Subject: OpenCL SWAP64 on 7970

Claudio, all

It seems that 7970 has some strange behaviors when we perform bitwise
operation with ulong type. SWAP64 didn't work correctly.
xsha512-opencl and cryptsha512-opencl are all influenced. Here is what
I get from my debugging.

With a 64bit variable n, if we do (n) << 56, no problem. However, if
we do (n) & 0xff00 << 24 or << 32 or << 40, the result will be 0. It
seems that the & operation converts the result to a 32bit variable. So
the << 24 or above will make the result to be 0.

Thanks
myrice

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.