@@ -50,7 +50,9 @@ |
||
50 | 50 | */ |
51 | 51 | private static function addRoundKey($state, $w, $rnd, $Nb) { // xor Round Key into state S [é5.1.4] |
52 | 52 | for ($r = 0; $r < 4; $r++) { |
53 | - for ($c = 0; $c < $Nb; $c++) $state[$r][$c] ^= $w[$rnd * 4 + $c][$r]; |
|
53 | + for ($c = 0; $c < $Nb; $c++) { |
|
54 | + $state[$r][$c] ^= $w[$rnd * 4 + $c][$r]; |
|
55 | + } |
|
54 | 56 | } |
55 | 57 | |
56 | 58 | return $state; |