Lines Matching full:st

33     private static function keccakf64(&$st, $rounds)  argument
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]
62 $st[$j + $i] = [
63 $st[$j + $i][0] ^ $t[0],
64 $st[$j + $i][1] ^ $t[1]
70 $t = $st[1];
74 $bc[0] = $st[$j];
85 $st[$j] =[
96 $bc[$i] = $st[$j + $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]
107 $st[0] = [
108 $st[0][0] ^ $keccakf_rndc[$round][0],
109 $st[0][1] ^ $keccakf_rndc[$round][1]
123 $st = [];
125 $st[] = [0, 0];
132 $st[$i] = [
133 $st[$i][0] ^ $t[2],
134 $st[$i][1] ^ $t[1]
138 self::keccakf64($st, self::KECCAK_ROUNDS);
150 $st[$i] = [
151 $st[$i][0] ^ $t[2],
152 $st[$i][1] ^ $t[1]
156 self::keccakf64($st, self::KECCAK_ROUNDS);
160 $out .= $t = pack('V*', $st[$i][1], $st[$i][0]);
167 private static function keccakf32(&$st, $rounds) argument
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]
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]
210 $t = $st[1];
213 $bc[0] = $st[$j];
219 $st[$j] = [
232 $bc[$i] = $st[$j + $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]
245 $st[0] = [
246 $st[0][0] ^ $keccakf_rndc[$round][0],
247 $st[0][1] ^ $keccakf_rndc[$round][1],
248 $st[0][2] ^ $keccakf_rndc[$round][2],
249 $st[0][3] ^ $keccakf_rndc[$round][3]
263 $st = [];
265 $st[] = [0, 0, 0, 0];
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]
280 self::keccakf32($st, self::KECCAK_ROUNDS);
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]
300 self::keccakf32($st, self::KECCAK_ROUNDS);
304 $out .= $t = pack('v*', $st[$i][3],$st[$i][2], $st[$i][1], $st[$i][0]);