Lines Matching refs:s

11  * Here's a short example of how to use this library:
248 * when doing an HMAC multiple times it's faster to compute the hash once instead of computing it during
470 // Extract and zero low bit(s) of Nonce if needed
930 * Whereas BigInteger.php's 32-bit engine works on PHP 64-bit this 32-bit implementation
963 $s = [
977 $s[$x][$y][0] ^= $pi[$i + 1];
978 $s[$x][$y][1] ^= $pi[$i];
984 static::processSHA3Block32($s);
990 $z .= pack('V2', $s[$i][$j][1], $s[$i][$j++][0]);
996 static::processSHA3Block32($s);
1007 * @param array $s
1009 private static function processSHA3Block32(&$s)
1019 // the standards give these constants in hexadecimal notation. it's tempting to want to use
1054 $s[0][$i][0] ^ $s[1][$i][0] ^ $s[2][$i][0] ^ $s[3][$i][0] ^ $s[4][$i][0],
1055 $s[0][$i][1] ^ $s[1][$i][1] ^ $s[2][$i][1] ^ $s[3][$i][1] ^ $s[4][$i][1]
1069 $s[$i][$j][0] ^= $temp[$j][0];
1070 $s[$i][$j][1] ^= $temp[$j][1];
1074 $st = $s;
1079 $st[(2 * $i + 3 * $j) % 5][$j] = static::rotateLeft32($s[$j][$i], $rotationOffsets[$j][$i]);
1085 $s[$i][0] = [
1089 $s[$i][1] = [
1093 $s[$i][2] = [
1097 $s[$i][3] = [
1101 $s[$i][4] = [
1108 $s[0][0][0] ^= $roundConstants[$round][0];
1109 $s[0][0][1] ^= $roundConstants[$round][1];
1153 $s = [
1167 $s[$x][$y++] ^= $subpi;
1173 static::processSHA3Block64($s);
1179 $z .= pack('P', $s[$i][$j++]);
1185 static::processSHA3Block64($s);
1196 * @param array $s
1198 private static function processSHA3Block64(&$s)
1239 $parity[] = $s[0][$i] ^ $s[1][$i] ^ $s[2][$i] ^ $s[3][$i] ^ $s[4][$i];
1250 $s[$i][$j] ^= $temp[$j];
1254 $st = $s;
1259 $st[(2 * $i + 3 * $j) % 5][$j] = static::rotateLeft64($s[$j][$i], $rotationOffsets[$j][$i]);
1265 $s[$i] = [
1275 $s[0][0] ^= $roundConstants[$round];
1427 // Add this chunk's hash to result so far