Lines Matching refs:i

48             for ($i = 0; $i < 5; $i++) {
49 $bc[$i] = [
50 … $st[$i][0] ^ $st[$i + 5][0] ^ $st[$i + 10][0] ^ $st[$i + 15][0] ^ $st[$i + 20][0],
51 … $st[$i][1] ^ $st[$i + 5][1] ^ $st[$i + 10][1] ^ $st[$i + 15][1] ^ $st[$i + 20][1]
55 for ($i = 0; $i < 5; $i++) {
57 …$bc[($i + 4) % 5][0] ^ (($bc[($i + 1) % 5][0] << 1) | ($bc[($i + 1) % 5][1] >> 31)) & (0xFFFFFFFF),
58 … $bc[($i + 4) % 5][1] ^ (($bc[($i + 1) % 5][1] << 1) | ($bc[($i + 1) % 5][0] >> 31)) & (0xFFFFFFFF)
62 $st[$j + $i] = [
63 $st[$j + $i][0] ^ $t[0],
64 $st[$j + $i][1] ^ $t[1]
71 for ($i = 0; $i < 24; $i++) {
72 $j = self::$keccakf_piln[$i];
76 $n = self::$keccakf_rotc[$i];
95 for ($i = 0; $i < 5; $i++) {
96 $bc[$i] = $st[$j + $i];
98 for ($i = 0; $i < 5; $i++) {
99 $st[$j + $i] = [
100 $st[$j + $i][0] ^ ~$bc[($i + 1) % 5][0] & $bc[($i + 2) % 5][0],
101 $st[$j + $i][1] ^ ~$bc[($i + 1) % 5][1] & $bc[($i + 2) % 5][1]
124 for ($i = 0; $i < 25; $i++) {
129 for ($i = 0; $i < $rsizw; $i++) {
130 $t = unpack('V*', self::ourSubstr($in_raw, $i * 8 + $in_t, 8));
132 $st[$i] = [
133 $st[$i][0] ^ $t[2],
134 $st[$i][1] ^ $t[1]
147 for ($i = 0; $i < $rsizw; $i++) {
148 $t = unpack('V*', self::ourSubstr($temp, $i * 8, 8));
150 $st[$i] = [
151 $st[$i][0] ^ $t[2],
152 $st[$i][1] ^ $t[1]
159 for ($i = 0; $i < 25; $i++) {
160 $out .= $t = pack('V*', $st[$i][1], $st[$i][0]);
182 for ($i = 0; $i < 5; $i++) {
183 $bc[$i] = [
184 … $st[$i][0] ^ $st[$i + 5][0] ^ $st[$i + 10][0] ^ $st[$i + 15][0] ^ $st[$i + 20][0],
185 … $st[$i][1] ^ $st[$i + 5][1] ^ $st[$i + 10][1] ^ $st[$i + 15][1] ^ $st[$i + 20][1],
186 … $st[$i][2] ^ $st[$i + 5][2] ^ $st[$i + 10][2] ^ $st[$i + 15][2] ^ $st[$i + 20][2],
187 … $st[$i][3] ^ $st[$i + 5][3] ^ $st[$i + 10][3] ^ $st[$i + 15][3] ^ $st[$i + 20][3]
191 for ($i = 0; $i < 5; $i++) {
193 … $bc[($i + 4) % 5][0] ^ ((($bc[($i + 1) % 5][0] << 1) | ($bc[($i + 1) % 5][1] >> 15)) & (0xFFFF)),
194 … $bc[($i + 4) % 5][1] ^ ((($bc[($i + 1) % 5][1] << 1) | ($bc[($i + 1) % 5][2] >> 15)) & (0xFFFF)),
195 … $bc[($i + 4) % 5][2] ^ ((($bc[($i + 1) % 5][2] << 1) | ($bc[($i + 1) % 5][3] >> 15)) & (0xFFFF)),
196 … $bc[($i + 4) % 5][3] ^ ((($bc[($i + 1) % 5][3] << 1) | ($bc[($i + 1) % 5][0] >> 15)) & (0xFFFF))
200 $st[$j + $i] = [
201 $st[$j + $i][0] ^ $t[0],
202 $st[$j + $i][1] ^ $t[1],
203 $st[$j + $i][2] ^ $t[2],
204 $st[$j + $i][3] ^ $t[3]
211 for ($i = 0; $i < 24; $i++) {
212 $j = self::$keccakf_piln[$i];
216 $n = self::$keccakf_rotc[$i] >> 4;
217 $m = self::$keccakf_rotc[$i] % 16;
231 for ($i = 0; $i < 5; $i++) {
232 $bc[$i] = $st[$j + $i];
234 for ($i = 0; $i < 5; $i++) {
235 $st[$j + $i] = [
236 $st[$j + $i][0] ^ ~$bc[($i + 1) % 5][0] & $bc[($i + 2) % 5][0],
237 $st[$j + $i][1] ^ ~$bc[($i + 1) % 5][1] & $bc[($i + 2) % 5][1],
238 $st[$j + $i][2] ^ ~$bc[($i + 1) % 5][2] & $bc[($i + 2) % 5][2],
239 $st[$j + $i][3] ^ ~$bc[($i + 1) % 5][3] & $bc[($i + 2) % 5][3]
264 for ($i = 0; $i < 25; $i++) {
269 for ($i = 0; $i < $rsizw; $i++) {
270 $t = unpack('v*', self::ourSubstr($in_raw, $i * 8 + $in_t, 8));
272 $st[$i] = [
273 $st[$i][0] ^ $t[4],
274 $st[$i][1] ^ $t[3],
275 $st[$i][2] ^ $t[2],
276 $st[$i][3] ^ $t[1]
289 for ($i = 0; $i < $rsizw; $i++) {
290 $t = unpack('v*', self::ourSubstr($temp, $i * 8, 8));
292 $st[$i] = [
293 $st[$i][0] ^ $t[4],
294 $st[$i][1] ^ $t[3],
295 $st[$i][2] ^ $t[2],
296 $st[$i][3] ^ $t[1]
303 for ($i = 0; $i < 25; $i++) {
304 $out .= $t = pack('v*', $st[$i][3],$st[$i][2], $st[$i][1], $st[$i][0]);