-8
u= (c1 & 0xff) * (c2 & 0xff) * (c3 & 0xff) * (c4 & 0xff) * (c5 & 0xff)
unsigned a, b, r;
u += 0xe91aaa35;
u ^= u >> 16;
u += u << 8;
u ^= u >> 4;
b = (u >> 8) & 0x1ff;
a = (u + (u << 2)) >> 19;
r = a^table[b];
的AutoIt代碼:
$u=(BitAND($c1, 0xFF)) * (BitAND($c2, 0xFF)) * (BitAND($c3, 0xFF)) * (BitAND($c4, 0xFF)) * (BitAND($c5, 0xFF))
dim $a,$b,$r
$u=$u+0xe91aaa35
$u=BitXOR($u, BitShift($u, 16))
$u=$u+(BitShift($u,-8))
$u=BitXOR($u, BitShift($u, 4))
$b = (BitShift($u, 8)) & 0x1FF
$a = BitShift(($u + (BitShift($u, -2)), 19) #I get this "ERROR: unbalanced parenthesis expression" here)
$r = BitXOR($a, $table[$b])
的這個錯誤告訴你到底發生了什麼錯誤和在哪裏。有什麼問題? –
在這種情況下不建議使用暗點,它具有非常特定的用途,不是這樣。改爲使用本地。 – Matt