/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/Crypt/ |
H A D | Blowfish.php | 310 * @param int $length 312 public function setKeyLength($length) argument 314 if ($length < 32 || $length > 448) { 315 …throw new \LengthException('Key size of ' . $length . ' bits is not supported by this algorithm. O… 318 $this->key_length = $length >> 3; 320 parent::setKeyLength($length);
|
H A D | DH.php | 241 * @param int $length optional 245 public static function createKey(Parameters $params, $length = 0) argument 248 if ($length) { 249 $max = $one->bitwise_leftShift($length);
|
H A D | Hash.php | 97 private $length; variable in phpseclib3\\Crypt\\Hash 331 $this->length = 16; 334 $this->length = 20; 339 $this->length = 28; 347 $this->length = 32; 351 $this->length = 48; 486 $taglen = $this->length; 597 $length = strlen($m[$i]); 901 return $this->length; 1365 $length = strlen($m); [all …]
|
H A D | RC2.php | 316 * @param int $length in bits 319 public function setKeyLength($length) argument 321 if ($length < 8 || $length > 1024) { 322 …throw new \LengthException('Key size of ' . $length . ' bits is not supported by this algorithm. O… 325 $this->default_key_length = $this->current_key_length = $length; 326 $this->explicit_key_length = $length >> 3; 363 …throw new \LengthException('Key size of ' . $length . ' bits is not supported by this algorithm. O…
|
H A D | RC4.php | 150 * @param int $length 153 public function setKeyLength($length) argument 155 if ($length < 8 || $length > 2048) { 156 …throw new \LengthException('Key size of ' . $length . ' bits is not supported by this algorithm. O… 159 $this->key_length = $length >> 3; 161 parent::setKeyLength($length); 174 $length = strlen($key); 175 if ($length < 1 || $length > 256) { 176 …throw new \LengthException('Key size of ' . $length . ' bytes is not supported by RC4. Keys must b…
|
H A D | Random.php | 43 * @param int $length 47 public static function string($length) argument 49 if (!$length) { 54 return random_bytes($length); 183 while (strlen($result) < $length) { 190 return substr($result, 0, $length);
|
H A D | Rijndael.php | 205 * @param int $length 207 public function setKeyLength($length) argument 209 switch ($length) { 215 $this->key_length = $length >> 3; 221 parent::setKeyLength($length); 256 * @param int $length 258 public function setBlockLength($length) argument 260 switch ($length) { 271 $this->Nb = $length >> 5; 272 $this->block_size = $length >> 3; [all …]
|
H A D | TripleDES.php | 228 * @param int $length 230 public function setKeyLength($length) argument 232 switch ($length) { 237 …throw new \LengthException('Key size of ' . $length . ' bits is not supported by this algorithm. O… 240 parent::setKeyLength($length);
|
H A D | Twofish.php | 396 * @param int $length 398 public function setKeyLength($length) argument 400 switch ($length) { 406 …throw new \LengthException('Key of size ' . $length . ' not supported by this algorithm. Only keys… 409 parent::setKeyLength($length);
|
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/Formats/Keys/ |
H A D | PKCS1.php | 108 * @param int $length 111 private static function generateSymmetricKey($password, $iv, $length) argument 115 while (strlen($symkey) < $length) { 118 return substr($symkey, 0, $length);
|
H A D | PuTTY.php | 83 * @param int $length 86 private static function generateV2Key($password, $length) argument 90 while (strlen($symkey) < $length) { 94 return substr($symkey, 0, $length); 125 $length = 80; // keylen + ivlen + mac_keylen 126 $temp = sodium_crypto_pwhash($length, $password, $salt, $passes, $memory << 10, $flavour); 216 $newtype = Strings::shift($public, $length);
|
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/ |
H A D | SymmetricKey.php | 882 * @param int $length 884 public function setKeyLength($length) argument 1889 * @param int $length optional 1895 public function getTag($length = 16) argument 1910 if ($length < 4 || $length > 16) { 1914 return $length == 16 ? 1940 $length = strlen($tag); 1941 if ($length < 4 || $length > 16) { 2579 $length = strlen($text); 2614 if (!$length || $length > $this->block_size) { [all …]
|
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/Crypt/DSA/Formats/Keys/ |
H A D | XML.php | 71 if (!$temp->length) {
|
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/BaseCurves/ |
H A D | Prime.php | 526 $length = count($points); 534 for ($i = 1; $i < $length; $i++) { 544 for ($i = $length - 1; $i >= 1; $i -= 2) { 603 for ($j = 0; $j < $length; $j++) { 627 for ($j = 0; $j < $length; $j++) {
|
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Formats/Keys/ |
H A D | PuTTY.php | 108 list(, $length) = unpack('N', Strings::shift($public, 4)); 109 Strings::shift($public, $length); 140 list(, $length) = unpack('N', Strings::shift($public, 4)); 141 Strings::shift($public, $length);
|
H A D | XML.php | 105 $QA = self::query($xpath, 'ecdsakeyvalue')->length ? 135 if (!$result->length) { 155 if (!$nodes->length) { 187 if (!$x->length || !$x->item(0)->hasAttribute('Value')) { 190 if (!$y->length || !$y->item(0)->hasAttribute('Value')) { 213 if ($namedCurve->length == 1) { 229 if ($params->length) { 234 if (!$params->length) { 249 if (!$result->length) { 300 if (!$result->length) {
|
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA/Formats/Keys/ |
H A D | XML.php | 80 if (!$temp->length) {
|
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/File/ |
H A D | ASN1.php | 284 $length &= 0x7F; 286 $encoded_pos += $length; 289 $start += $length; 338 $length += 2; 413 $length = 0; 515 $start += $length; 838 $length &= 0x7F; 842 return $length; 1504 * @param int $length 1509 if ($length <= 0x7F) { [all …]
|
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/ |
H A D | Engine.php | 915 $length = $this->getLengthInBytes(); 919 if ($length >= 163) { $t = 2; } // floor(1300 / 8) 920 else if ($length >= 106) { $t = 3; } // floor( 850 / 8) 921 else if ($length >= 81 ) { $t = 4; } // floor( 650 / 8) 922 else if ($length >= 68 ) { $t = 5; } // floor( 550 / 8) 1238 $length = max(strlen($left), strlen($right)); 1240 $left = str_pad($left, $length, chr(0), STR_PAD_LEFT); 1257 $length = max(strlen($left), strlen($right)); 1259 $left = str_pad($left, $length, chr(0), STR_PAD_LEFT); 1276 $length = max(strlen($left), strlen($right)); [all …]
|
H A D | PHP.php | 146 $length = strlen($str); 150 return str_pad($str, $length + $pad, "\0", STR_PAD_LEFT); 768 $length = min(count($value), count($result->bitmask->value)); 769 $value = array_slice($value, 0, $length); 771 for ($i = 0; $i < $length; ++$i) {
|
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/Math/ |
H A D | BinaryField.php | 92 $length = strlen($t1); 93 if ($length) { 94 $t2 = str_pad($u[$k], $length, "\0", STR_PAD_LEFT); 96 $c = $j ? substr_replace($c, $temp, 0, $length) : $temp;
|
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/Math/BinaryField/ |
H A D | Integer.php | 135 $length = max(strlen($a), strlen($b)); 178 $length = max(strlen($s), strlen($q)); 183 $length = max(strlen($r), strlen($s)); 203 $length = strlen($x); 205 $length = max(strlen($x), strlen($y)); 206 $x = str_pad($x, $length, '0'); 207 $y = str_pad($y, $length, '0'); 239 $length = strlen($x); 248 return $length != 4 ? 255 $m = $length >> 1; [all …]
|
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/Math/PrimeField/ |
H A D | Integer.php | 319 $length = static::$modulo[$this->instanceID]->getLengthInBytes(); 320 return str_pad($this->value->toBytes(), $length, "\0", STR_PAD_LEFT); 341 static $length; 342 if (!isset($length)) { 343 $length = static::$modulo[$this->instanceID]->getLength(); 346 return str_pad($this->value->toBits(), $length, '0', STR_PAD_LEFT);
|
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/Net/ |
H A D | SFTP.php | 2355 * @param int $length 2361 …public function get($remote_file, $local_file = false, $offset = 0, $length = -1, $progressCallbac… argument 2414 while ($i < NET_SFTP_QUEUE_SIZE && ($length < 0 || $read < $length)) { 2417 …$packet_size = $length > 0 ? min($this->max_sftp_packet, $length - $read) : $this->max_sftp_packet; 2492 if ($length > 0 && $length <= $offset - $start) { 2494 $content = substr($content, 0, $length); 2496 ftruncate($fp, $length + $res_offset); 3373 $tempLength = $length; 3399 $length -= 5; // account for the request id and the packet type 3401 $length -= 1; // account for the packet type [all …]
|
H A D | SSH2.php | 3751 …if (substr($payload, 9, $length) == 'keepalive@openssh.com' && isset($this->server_channels[$chann… 3752 if (ord(substr($payload, 9 + $length))) { // want reply 4250 $length = $this->lengthEncrypt->encrypt($packet & "\xFF\xFF\xFF\xFF"); 4259 $this->encrypt->setAAD($length); 4261 $packet = $length . $this->encrypt->encrypt(substr($packet, 4));
|