Lines Matching refs:Strings

50 use phpseclib3\Common\Functions\Strings;  alias
1303 if (Strings::is_stringable($host)) {
1621 $kexinit_payload_client .= Strings::packSSH2(
1655 Strings::shift($response, 1); // skip past the message number (it should be SSH_MSG_KEXINIT)
1656 $server_cookie = Strings::shift($response, 16);
1670 ) = Strings::unpackSSH2('L10C', $response);
1791 list($type, $primeBytes, $gBytes) = Strings::unpackSSH2('Css', $response);
1800 $exchange_hash_rfc4419 = $dh_group_sizes_packed . Strings::packSSH2(
1841 ) = Strings::unpackSSH2('Csss', $response);
1856 list($public_key_format) = Strings::unpackSSH2('s', $server_public_host_key);
1870 $this->exchange_hash = Strings::packSSH2(
1879 $this->exchange_hash .= Strings::packSSH2(
1921 list($type) = Strings::unpackSSH2('C', $response);
2285 case Strings::is_stringable($arg):
2316 if ($hasString || Strings::is_stringable($arg)) {
2373 $packet = Strings::packSSH2('Cs', NET_SSH2_MSG_SERVICE_REQUEST, 'ssh-userauth');
2388 list($type, $service) = Strings::unpackSSH2('Cs', $response);
2397 …return !Strings::is_stringable($password) && !is_array($password) ? false : $this->keyboard_intera…
2417 $packet = Strings::packSSH2(
2429 list($type) = Strings::unpackSSH2('C', $response);
2435 list($auth_methods) = Strings::unpackSSH2('L', $response);
2443 $packet = Strings::packSSH2(
2457 $logged = Strings::packSSH2(
2472 list($type) = Strings::unpackSSH2('C', $response);
2477 list($message) = Strings::unpackSSH2('s', $response);
2484 list($auth_methods, $partial_success) = Strings::unpackSSH2('Lb', $response);
2514 $packet = Strings::packSSH2(
2544 list($type) = Strings::unpackSSH2('C', $response);
2552 ) = Strings::unpackSSH2('s3N', $response);
2569 ) = Strings::unpackSSH2('sC', $response);
2598 $packet .= Strings::packSSH2('s', $responses[$i]);
2599 $logged .= Strings::packSSH2('s', 'dummy-answer');
2617 list($auth_methods) = Strings::unpackSSH2('L', $response);
2719 $part1 = Strings::packSSH2(
2726 $part2 = Strings::packSSH2('ss', $signatureType, $publickeyStr);
2733 list($type) = Strings::unpackSSH2('C', $response);
2736 list($auth_methods) = Strings::unpackSSH2('L', $response);
2755 $signature = $privatekey->sign(Strings::packSSH2('s', $this->session_id) . $packet);
2757 $signature = Strings::packSSH2('ss', $signatureType, $signature);
2759 $packet .= Strings::packSSH2('s', $signature);
2765 list($type) = Strings::unpackSSH2('C', $response);
2769 list($auth_methods) = Strings::unpackSSH2('L', $response);
2853 $packet = Strings::packSSH2(
2869 $packet = Strings::packSSH2(
2903 $packet = Strings::packSSH2(
2965 $packet = Strings::packSSH2(
2981 $packet = Strings::packSSH2(
3003 $packet = Strings::packSSH2(
3075 $packet = Strings::packSSH2(
3136 return Strings::shift($this->interactiveBuffer, $pos + strlen($match));
3141 return Strings::shift($this->interactiveBuffer, strlen($this->interactiveBuffer));
3187 $packet = Strings::packSSH2(
3202 $packet = Strings::packSSH2(
3331 $packet = Strings::packSSH2(
3469 Strings::increment_str($this->decryptInvocationCounter);
3470 $this->decrypt->setAAD($temp = Strings::shift($raw, 4));
3493 $temp = $this->lengthDecrypt->decrypt($aad = Strings::shift($raw, 4));
3523 extract(unpack('Npacket_length', $temp = Strings::shift($raw, 4)));
3539 extract(unpack('Npacket_length/Cpadding_length', Strings::shift($raw, 5)));
3558 $payload = Strings::shift($raw, $packet_length - $padding_length - 1);
3559 $padding = Strings::shift($raw, $padding_length); // should leave $raw empty
3708 Strings::shift($payload, 1);
3709 list($reason_code, $message) = Strings::unpackSSH2('Ns', $payload);
3717 Strings::shift($payload, 2); // second byte is "always_display"
3718 list($message) = Strings::unpackSSH2('s', $payload);
3736 Strings::shift($payload, 1);
3737 list($this->banner_message) = Strings::unpackSSH2('s', $payload);
3770 Strings::shift($payload, 1);
3771 list($request_name) = Strings::unpackSSH2('s', $payload);
3783 Strings::shift($payload, 1);
3784 list($data, $server_channel) = Strings::unpackSSH2('sN', $payload);
3794 ) = Strings::unpackSSH2('NN', $payload);
3817 $packet = Strings::packSSH2(
3836 Strings::shift($payload, 1);
3837 list($channel, $window_size) = Strings::unpackSSH2('NN', $payload);
3982 list($type, $channel) = Strings::unpackSSH2('CN', $response);
4005 list($data_type_code, $data) = Strings::unpackSSH2('Ns', $response);
4020 list($value) = Strings::unpackSSH2('s', $response);
4028 ) = Strings::unpackSSH2('bsbs', $response);
4042 list(, $this->exit_status) = Strings::unpackSSH2('CN', $response);
4063 ) = Strings::unpackSSH2('NNN', $response);
4091 list($data) = Strings::unpackSSH2('s', $response);
4116 list($data) = Strings::unpackSSH2('s', $response);
4235 Strings::increment_str($this->encryptInvocationCounter);
4315 Strings::shift($message);
4407 $temp = Strings::shift($data, $max_size);
4408 $packet = Strings::packSSH2(
4471 $data = Strings::packSSH2('CNss', NET_SSH2_MSG_DISCONNECT, $reason, '', '');
4553 $fragment = Strings::shift($current_log, $this->log_short_width);
5086 list(, $signature) = Strings::unpackSSH2('ss', $signature);