Hi Levente,
looking at code, my wild guess (but I did not try) is that #leftRotate:by: is incorrectly inlined...
The parameter should be cast to unsigned int (32 bits) otherwise extra bits will pollute the result.
Unfortunately, this method get inlined with sqInt argument which are 64bits long in 64bits version...
We really need to fix inlining.
I'll try with <inline: #never> if I have time to confirm/infirm the guess...




2016-05-13 13:07 GMT+02:00 Levente Uzonyi <leves@caesar.elte.hu>:

Hi All,

As the subject says, the primitives work, but the SecureHashAlgorithmTests fail, because the prims miscalculate the values. I guess this is another integer type issue.

Levente