Home
last modified time | relevance | path

Searched refs:shift (Results 1 – 25 of 29) sorted by relevance

12

/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA/Formats/Keys/
H A DMSBLOB.php91 extract(unpack('atype/aversion/vreserved/Valgo', Strings::shift($key, 8)));
124 extract(unpack('Vmagic/Vbitlen/a4pubexp', Strings::shift($key, 12)));
147 $components['modulus'] = new BigInteger(strrev(Strings::shift($key, $bitlen / 8)), 256);
156 … $components['primes'] = [1 => new BigInteger(strrev(Strings::shift($key, $bitlen / 16)), 256)];
158 $components['primes'][] = new BigInteger(strrev(Strings::shift($key, $bitlen / 16)), 256);
160 … $components['exponents'] = [1 => new BigInteger(strrev(Strings::shift($key, $bitlen / 16)), 256)];
162 … $components['exponents'][] = new BigInteger(strrev(Strings::shift($key, $bitlen / 16)), 256);
164 …$components['coefficients'] = [2 => new BigInteger(strrev(Strings::shift($key, $bitlen / 16)), 256…
169 … $components['privateExponent'] = new BigInteger(strrev(Strings::shift($key, $bitlen / 8)), 256);
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Formats/Keys/
H A DPuTTY.php70 if (Strings::shift($private, 4) != "\0\0\0\x20") {
102 list(, $length) = unpack('N', Strings::shift($public, 4));
103 Strings::shift($public, $length);
133 list(, $length) = unpack('N', Strings::shift($public, 4));
134 Strings::shift($public, $length);
H A DOpenSSH.php81 if (Strings::shift($parsed['publicKey'], 4) != "\0\0\0\x20") {
H A DCommon.php298 if (($val = Strings::shift($str)) != "\0") {
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/
H A DBigInteger.php562 * @param int $shift
565 public function bitwise_rightShift($shift) argument
567 return new static($this->value->bitwise_rightShift($shift));
575 * @param int $shift
578 public function bitwise_leftShift($shift) argument
580 return new static($this->value->bitwise_leftShift($shift));
588 * @param int $shift
591 public function bitwise_leftRotate($shift) argument
593 return new static($this->value->bitwise_leftRotate($shift));
601 * @param int $shift
[all …]
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/
H A DPHP64.php83 $shift = 8 - $step;
84 $digit >>= $shift;
85 $shift = 32 - $shift;
86 $digit &= (1 << $shift) - 1;
88 $digit |= ($temp << $shift) & 0x7F000000;
H A DPHP.php568 for ($shift = 0; !($msb & static::MSB); ++$shift) {
571 $x->lshift($shift);
572 $y->lshift($shift);
663 $x->rshift($shift);
669 $y->rshift($shift);
846 * @param int $shift
849 public function bitwise_rightShift($shift) argument
856 $temp->rshift($shift);
866 * @param int $shift
869 public function bitwise_leftShift($shift) argument
[all …]
H A DEngine.php502 * @param int $shift
505 protected static function base256_lshift(&$x, $shift) argument
507 if ($shift == 0) {
511 $num_bytes = $shift >> 3; // eg. floor($shift/8)
512 $shift &= 7; // eg. $shift % 8
516 $temp = ord($x[$i]) << $shift | $carry;
529 * @param int $shift
532 public function bitwise_leftRotate($shift) argument
552 if ($shift < 0) {
553 $shift += $precision;
[all …]
H A DBCMath.php358 * @param int $shift
361 public function bitwise_rightShift($shift) argument
364 $temp->value = bcdiv($this->value, bcpow('2', $shift, 0), 0);
374 * @param int $shift
377 public function bitwise_leftShift($shift) argument
380 $temp->value = bcmul($this->value, bcpow('2', $shift, 0), 0);
H A DGMP.php382 * @param int $shift
385 public function bitwise_rightShift($shift) argument
391 $temp->value = $this->value >> $shift;
401 * @param int $shift
404 public function bitwise_leftShift($shift) argument
407 $temp->value = $this->value << $shift;
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Common/Functions/
H A DStrings.php38 public static function shift(&$string, $index = 1) function in phpseclib3\\Common\\Functions\\Strings
113 $result[] = ord(self::shift($data));
116 $result[] = ord(self::shift($data)) != 0;
119 list(, $temp) = unpack('N', self::shift($data, 4));
129 extract(unpack('Nupper/Nlower', self::shift($data, 8)));
136 list(, $length) = unpack('N', self::shift($data, 4));
140 $temp = self::shift($data, $length);
/dokuwiki/lib/scripts/
H A Dhotkeys.js186 shift : false property
203 …t.shortcuts.push((o.ctrl ? 'ctrl' : '') + ',' + (o.alt ? 'alt' : '') + ',' + (o.shift ? 'shift' : …
281 if (o.shift != e.shiftKey)
/dokuwiki/inc/Utf8/
H A DUnicode.php108 $shift = ($mState - 1) * 6;
110 $tmp = ($tmp & 0x0000003F) << $shift;
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/
H A DHash.php1314 * @param int $shift
1316 private static function rotateLeft32($x, $shift) argument
1318 if ($shift < 32) {
1321 $shift -= 32;
1325 $mask = -1 ^ (-1 << $shift);
1327 ($hi << $shift) | (($lo >> (32 - $shift)) & $mask),
1328 ($lo << $shift) | (($hi >> (32 - $shift)) & $mask)
1481 * @param int $shift
1483 private static function rotateLeft64($x, $shift) argument
1485 $mask = -1 ^ (-1 << $shift);
[all …]
H A DSalsa20.php341 $ciphertext = $text ^ Strings::shift($buffer['ciphertext'], strlen($text));
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/Formats/Keys/
H A DPuTTY.php180 if (Strings::shift($key[0], strlen('PuTTY-User-Key-File-')) != 'PuTTY-User-Key-File-') {
183 …$version = (int) Strings::shift($key[0], 3); // should be either "2: " or "3: 0" prior to int cast…
202 extract(unpack('Nlength', Strings::shift($public, 4)));
203 $newtype = Strings::shift($public, $length);
H A DOpenSSH.php75 $magic = Strings::shift($key, 15);
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/PrimeField/
H A DInteger.php380 …$shift = !$d->equals(static::$zero[static::class]) && $d->bitwise_and($mask)->equals(static::$zero…
381 $d = $d->bitwise_rightShift($shift);
382 while (--$shift > 0) {
/dokuwiki/vendor/splitbrain/php-archive/src/
H A DTar.php776 $shift = 0;
778 $value += ord(substr($field, $i, 1)) << $shift;
779 $shift += 8;
783 $shift = 0;
785 $value += ord(substr($field, $i, 1)) << $shift;
786 $shift += 8;
/dokuwiki/lib/scripts/jquery/
H A Djquery.cookie.js87 var name = decode(parts.shift());
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Net/
H A DSSH2.php1688 Strings::shift($response, 1); // skip past the message number (it should be SSH_MSG_KEXINIT)
1689 $server_cookie = Strings::shift($response, 16);
3219 return Strings::shift($this->interactiveBuffer, $pos + strlen($match));
3223 return Strings::shift($this->interactiveBuffer, strlen($this->interactiveBuffer));
3667 $this->decrypt->setAAD(Strings::shift($raw, $packet_length_header_size));
3684 $this->decrypt->setAAD(Strings::shift($raw, $packet_length_header_size));
3692 Strings::shift($raw, $this->decrypt_block_size);
3697 Strings::shift($raw, $packet_length_header_size);
3703 Strings::shift($raw, $packet_length_header_size);
3725 extract(unpack('Cpadding_length', Strings::shift($payload, 1)));
[all …]
H A DSFTP.php3358 extract(unpack('Nlength', Strings::shift($this->packet_buffer, 4)));
3386 $this->packet_type = ord(Strings::shift($this->packet_buffer));
3389 … extract(unpack('Npacket_id', Strings::shift($this->packet_buffer, 4))); // remove the request id
3395 $packet = Strings::shift($this->packet_buffer, $length);
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA/
H A DPublicKey.php159 if (Strings::shift($em, 2) != "\0\1") {
164 if (Strings::shift($em) != "\0") {
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/
H A DSymmetricKey.php1386 $key = Strings::shift($buffer['ciphertext'], $block_size);
1488 $key = Strings::shift($buffer['xor'], $block_size);
1759 $key = Strings::shift($buffer['ciphertext'], $block_size);
1860 $key = Strings::shift($buffer['xor'], $block_size);
1992 $otp = Strings::shift($buffer['ciphertext'], $block_size);
2014 $ciphertext = $plaintext ^ Strings::shift($buffer['ciphertext'], strlen($plaintext));
2086 $ciphertext .= Strings::shift($xor, $overflow) ^ substr($plaintext, -$overflow);
3356 $r = Strings::shift($s, 16);
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/File/
H A DASN1.php816 $length = ord(Strings::shift($string));
819 $temp = Strings::shift($string, $length);

12