/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/ |
H A D | Ed25519.php | 134 $x = $x2->pow($exp); 137 if (!$x->multiply($x)->subtract($x2)->equals($this->zero)) { 141 $x = $x->multiply($temp); 142 if (!$x->multiply($x)->subtract($x2)->equals($this->zero)) { 146 if ($x->isOdd() != $sign) { 147 $x = $x->negate(); 150 return [$x, $y]; 196 list($x, $y) = $point; 199 if ($x->isOdd()) {
|
H A D | Ed448.php | 82 $x = $x2->pow($exp); 84 if (!$x->multiply($x)->subtract($x2)->equals($this->zero)) { 87 if ($x->isOdd() != $sign) { 88 $x = $x->negate(); 91 return [$x, $y]; 138 list($x, $y) = $point; 140 if ($x->isOdd()) {
|
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Formats/Keys/ |
H A D | Common.php | 320 list(, $w, $x, $y) = $matches; 325 $curve->convertInteger(new BigInteger($x, 256)), 440 $x = $point[0]->toBytes(); 466 'base' => "\4" . $x . $y, 520 'base' => "\4" . $x . $y,
|
H A D | XML.php | 185 $x = self::query($xpath, 'publickey/x'); 187 if (!$x->length || !$x->item(0)->hasAttribute('Value')) { 194 $curve->convertInteger(new BigInteger($x->item(0)->getAttribute('Value'))), 311 …$x = self::query($xpath, 'basepointparams/basepoint/ecpointtype/x', 'Base Point X is not present',… 329 $x = str_replace(["\r", "\n", ' ', "\t"], '', $x); 332 new BigInteger($x), 443 list($x, $y) = $curve->getBasePoint(); 456 '<' . $pre . 'X>' . $x . '</' . $pre . 'X>' . "\r\n" .
|
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/ |
H A D | PrivateKey.php | 174 list($x, $y) = $this->curve->multiplyPoint($this->curve->getBasePoint(), $k); 175 $x = $x->toBigInteger(); 176 list(, $r) = $x->divide($order);
|
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/Crypt/ |
H A D | Hash.php | 618 $x = new BigInteger($x, 256); 619 $x->setPrecision(32); 620 return $x; 1001 $x = $y = 0; 1007 $x++; 1144 * @param array $x 1150 list($hi, $lo) = $x; 1194 $x = $y = 0; 1199 $x++; 1313 * @param int $x [all …]
|
H A D | RSA.php | 535 protected function i2osp($x, $xLen) argument 537 if ($x === false) { 540 $x = $x->toBytes(); 541 if (strlen($x) > $xLen) { 544 return str_pad($x, $xLen, chr(0), STR_PAD_LEFT); 553 * @param string $x 556 protected function os2ip($x) argument 558 return new BigInteger($x, 256);
|
H A D | Salsa20.php | 407 * @param int $x 411 protected static function leftRotate($x, $n) argument 413 $r1 = $x << $n; 416 $r2 = ($x & 0xFFFFFFFF) >> (32 - $n); 418 $r2 = $x >> (32 - $n); 477 * @param string $x 479 protected static function salsa20($x) argument 481 $z = $x = unpack('V*', $x); 487 $x[$i] += $z[$i]; 490 return pack('V*', ...$x);
|
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA/ |
H A D | PrivateKey.php | 106 protected function exponentiate(BigInteger $x) argument 115 return $x->modPow($this->exponent, $this->modulus); 153 1 => $this->blind($x, $r, 1), 154 2 => $this->blind($x, $r, 2) 163 $m_i = $this->blind($x, $r, $i); 190 private function blind($x, $r, $i) argument 192 $x = $x->multiply($r->modPow($this->publicExponent, $this->primes[$i])); 193 $x = $x->modPow($this->exponents[$i], $this->primes[$i]); 196 $x = $x->multiply($r); 197 list(, $x) = $x->divide($this->primes[$i]); [all …]
|
H A D | PublicKey.php | 45 private function exponentiate(BigInteger $x) argument 47 return $x->modPow($this->exponent, $this->modulus);
|
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/File/ |
H A D | ANSI.php | 78 private $x; variable in phpseclib3\\File\\ANSI 187 * @param int $x 193 $this->max_x = $x - 1; 195 $this->x = $this->y = 0; 275 …splice($this->attrs[$this->y], $this->x + 1, $this->max_x - $this->x, array_fill($this->x, $this->… 287 $this->x = 0; 383 $this->x = 0; 389 if ($this->x) { 390 $this->x--; 417 $this->x, [all …]
|
H A D | X509.php | 1969 $callback = function ($x) { 1970 return '\x' . bin2hex($x[0]);
|
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/Math/ |
H A D | BigInteger.php | 176 $this->value = clone $x; 274 * @param BigInteger $x 347 'x' => new static($x), 509 * @param BigInteger $x 512 public function equals(BigInteger $x) argument 530 * @param BigInteger $x 541 * @param BigInteger $x 552 * @param BigInteger $x 821 * @param int $x 824 public function testBit($x) argument [all …]
|
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/ |
H A D | BCMath.php | 76 parent::__construct($x, $base); 99 0x1000000 * ord($x[$i]) + ((ord($x[$i + 1]) << 16) | (ord( 100 $x[$i + 2] 198 * @param BCMath $x 329 * @param BCMath $x 340 * @param BCMath $x 351 * @param BCMath $x 419 * @param BCMath $x 422 public function equals(BCMath $x) argument 663 public function testBit($x) argument [all …]
|
H A D | Engine.php | 145 if (empty($x) && (abs($base) != 256 || $x !== '0')) { 171 $x = substr($x, 1); 174 $x = preg_replace('#^(?:0x)?([A-Fa-f0-9]*).*#', '$1', $x); 179 $x = Hex::encode(~Hex::decode($x)); 205 $x = substr($x, 1); 208 $x = preg_replace('#^([01]*).*#', '$1', $x); 334 $x = $x->compare(static::$zero[static::class]) < 0 ? $x->add($n) : $x; 504 * @param string $x 524 $x = $carry . $x . str_repeat(chr(0), $num_bytes); 662 * @param Engine $x [all …]
|
H A D | GMP.php | 73 if ($x instanceof \GMP) { 74 $this->value = $x; 197 * @param GMP $x 269 * @param GMP $x 272 public function equals(GMP $x) argument 346 * @param GMP $x 360 * @param GMP $x 374 * @param GMP $x 489 * @param Engine $x 503 $x = new self($x->value - 1); [all …]
|
H A D | OpenSSL.php | 43 * @param Engine $x 48 public static function powModHelper(Engine $x, Engine $e, Engine $n) argument 59 $plaintext = str_pad($x->toBytes(), $n->getLengthInBytes(), "\0", STR_PAD_LEFT); 69 $class = get_class($x);
|
H A D | PHP.php | 119 $x = substr($x, 1); 123 $x, 131 $x = substr($x, static::MAX10LEN); 569 $x = $y->subtract($x); 610 $x = $x->subtract($temp); 658 $x = $x->subtract($temp); 662 $x = $x->add($temp); 678 $x = $y->subtract($x); 715 * @param int $x 727 return ($x - ($x % $y)) / $y; [all …]
|
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/BCMath/ |
H A D | Base.php | 57 * @param BCMath $x 68 return $x->normalize($temp); 71 return $x->normalize(static::slidingWindow($x, $e, $n, $class)); 77 * @param string $x 83 protected static function prepareReduce($x, $n, $class) argument 85 return static::reduce($x, $n); 91 * @param string $x 100 return static::reduce(bcmul($x, $y), $n); 106 * @param string $x 112 protected static function squareReduce($x, $n, $class) argument [all …]
|
H A D | BuiltIn.php | 32 * @param BCMath $x 37 protected static function powModHelper(BCMath $x, BCMath $e, BCMath $n) argument 40 $temp->value = bcpowmod($x->value, $e->value, $n->value); 42 return $x->normalize($temp);
|
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/BCMath/Reductions/ |
H A D | Barrett.php | 149 * @param string $x 153 private static function regularBarrett($x, $n) argument 162 if (strlen($x) > 2 * $n_length) { 163 return bcmod($x, $n); 173 $temp = substr($x, 0, -$n_length + 1); 177 $r1 = substr($x, -$n_length - 1);
|
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/GMP/ |
H A D | DefaultEngine.php | 32 * @param GMP $x 37 protected static function powModHelper(GMP $x, GMP $e, GMP $n) argument 40 $temp->value = gmp_powm($x->value, $e->value, $n->value); 42 return $x->normalize($temp);
|
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/PHP/ |
H A D | Base.php | 77 * @param PHP $x 88 return $x->normalize($temp); 92 list(, $temp) = $x->divide($n); 93 return $x->normalize($temp); 98 $temp->value = $class::square($x->value); 100 return $x->normalize($temp); 103 return $x->normalize(static::slidingWindow($x, $e, $n, $class)); 109 * @param array $x 117 return static::reduce($x, $n, $class); 123 * @param array $x [all …]
|
H A D | Montgomery.php | 45 * @param Engine $x 51 protected static function slidingWindow(Engine $x, Engine $e, Engine $n, $class) argument 55 return parent::slidingWindow($x, $e, $n, $class); 76 $part1 = $mod1->value != [1] ? parent::slidingWindow($x, $e, $mod1, $class) : new $class(); 77 $part2 = PowerOfTwo::slidingWindow($x, $e, $mod2, $class);
|
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/PHP/Reductions/ |
H A D | Barrett.php | 143 * @param array $x 148 private static function regularBarrett(array $x, array $n, $class) argument 157 if (count($x) > 2 * $n_length) { 160 $lhs->value = $x; 180 $temp = array_slice($x, $n_length - 1); 187 $result = array_slice($x, 0, $n_length + 1);
|