Lines Matching refs:packet

172      * Returns whenever a data packet is received.
630 * If a client requests a packet from one channel but receives two packets from another those packets should
660 * Maximum packet size indexed by channel
985 * Send the key exchange initiation packet first?
1108 * "During initial KEX, terminate the connection if any unexpected or out-of-sequence packet is received"
1275 * sending the [SSH_MSG_KEXINIT] packet". It does not say which side sends it first. In theory
1288 * sending the [SSH_MSG_KEXINIT] packet". It does not say which side sends it first. In theory
1757 $packet = pack(
1762 $this->send_binary_packet($packet);
1887 $packet = pack('C', NET_SSH2_MSG_NEWKEYS);
1888 $this->send_binary_packet($packet);
2003 first encrypted packet MUST be encrypted using the 1537th byte of
2348 $packet = Strings::packSSH2('Cs', NET_SSH2_MSG_SERVICE_REQUEST, 'ssh-userauth');
2349 $this->send_binary_packet($packet);
2408 $packet = Strings::packSSH2(
2416 $this->send_binary_packet($packet);
2434 $packet = Strings::packSSH2(
2444 // remove the username and password from the logged packet
2459 $this->send_binary_packet($packet, $logged);
2506 $packet = Strings::packSSH2(
2515 $this->send_binary_packet($packet);
2587 $packet = $logged = pack('CN', NET_SSH2_MSG_USERAUTH_INFO_RESPONSE, count($responses));
2589 $packet .= Strings::packSSH2('s', $responses[$i]);
2593 $this->send_binary_packet($packet, $logged);
2717 $packet = $part1 . chr(0) . $part2;
2718 $this->send_binary_packet($packet);
2746 $packet = $part1 . chr(1) . $part2;
2748 $signature = $privatekey->sign(Strings::packSSH2('s', $this->session_id) . $packet);
2752 $packet .= Strings::packSSH2('s', $signature);
2754 $this->send_binary_packet($packet);
2847 $packet = Strings::packSSH2(
2861 $this->send_binary_packet($packet);
2876 // although, in theory, the size of SSH_MSG_CHANNEL_REQUEST could exceed the maximum packet size established by
2877 // SSH_MSG_CHANNEL_OPEN_CONFIRMATION, RFC4254#section-5.1 states that the "maximum packet size" refers to the
2878 // "maximum size of an individual data packet". ie. SSH_MSG_CHANNEL_DATA. RFC4254#section-5.2 corroborates.
2879 $packet = Strings::packSSH2(
2887 $this->send_binary_packet($packet);
2957 // 0x8000 is the maximum max packet size, per http://tools.ietf.org/html/rfc4253#section-6.1, although since PuTTy
2961 $packet = Strings::packSSH2(
2970 $this->send_binary_packet($packet);
3000 $packet = Strings::packSSH2(
3014 $this->send_binary_packet($packet);
3022 $packet = Strings::packSSH2(
3029 $this->send_binary_packet($packet);
3106 $packet = Strings::packSSH2(
3116 $this->send_binary_packet($packet);
3247 $packet = Strings::packSSH2(
3255 $this->send_binary_packet($packet);
3351 * packet that doesn't require a response
3353 * packet and imediately trying to close that channel. some routers, in particular, however, will only let you
3777 // "implementations SHOULD check that the packet length is reasonable"
3778 // PuTTY uses 0x9000 as the actual max packet size and so to shall we
3918 $packet = pack(
3929 $this->send_binary_packet($packet);
3933 $packet = Strings::packSSH2(
3943 $this->send_binary_packet($packet);
4056 foreach ($this->channel_buffers[$client_channel] as $i => $packet) {
4057 switch (ord($packet[0])) {
4061 return substr($packet, 1);
4101 $packet = pack('CNN', NET_SSH2_MSG_CHANNEL_WINDOW_ADJUST, $this->server_channels[$channel], $this->window_resize);
4102 $this->send_binary_packet($packet);
4308 // 4 (packet length) + 1 (padding length) + 4 (minimal padding amount) == 9
4327 $packet = pack('NCa*', $packet_length - 4, $padding_length, $data . $padding);
4333 $hmac = $this->hmac_create->hash($packet);
4335 $hmac = $this->hmac_create->hash(pack('Na*', $this->send_seq_no, $packet));
4348 $this->encrypt->setAAD($temp = ($packet & "\xFF\xFF\xFF\xFF"));
4349 $packet = $temp . $this->encrypt->encrypt(substr($packet, 4));
4362 $length = $this->lengthEncrypt->encrypt($packet & "\xFF\xFF\xFF\xFF");
4373 $packet = $length . $this->encrypt->encrypt(substr($packet, 4));
4376 $packet = $this->hmac_create instanceof Hash && $this->hmac_create_etm ?
4377 ($packet & "\xFF\xFF\xFF\xFF") . $this->encrypt->encrypt(substr($packet, 4)) :
4378 $this->encrypt->encrypt($packet);
4385 $hmac = $this->hmac_create->hash($packet);
4387 $hmac = $this->hmac_create->hash(pack('Na*', $this->send_seq_no, $packet));
4393 $packet .= $this->encrypt && $this->encrypt->usesNonce() ? $this->encrypt->getTag() : $hmac;
4396 $sent = @fputs($this->fsock, $packet);
4408 if (strlen($packet) != $sent) {
4411 'Unable to write ' . strlen($packet) . ' bytes' :
4412 "Only $sent of " . strlen($packet) . " bytes were sent";
4441 * Logs data packet helper
4547 packet size for the channel, and the current window size, whichever
4556 $packet = Strings::packSSH2(
4563 $this->send_binary_packet($packet);
5394 * Update packet types in log history