|
Posted by Sjoerd on 03/08/07 13:16
Cord-Heinrich Pahlmann wrote:
> These are the two lines which generate the error.
> $return = $sbox0[$b0] + $sbox1[$b1] % pow(2,32) ;
Modulus with big number is buggy (bug reports 1335, 12623, 25328). You
could use BCmath or the following function:
function mod($a, $b) {
return $a - $b * floor($a / $b);
}
Sjoerd
Navigation:
[Reply to this message]
|