Lines Matching refs:sshbuf_len

392 		while (sshbuf_len(state->incoming_packet) < dlen)  in ssh_packet_stop_discard()
426 if (sshbuf_len(state->input) >= discard) in ssh_packet_start_discard()
428 state->packet_discard = discard - sshbuf_len(state->input); in ssh_packet_start_discard()
742 if (sshbuf_len(in) == 0) in compress_buffer()
749 ssh->state->compression_out_stream.avail_in = sshbuf_len(in); in compress_buffer()
790 ssh->state->compression_in_stream.avail_in = sshbuf_len(in); in uncompress_buffer()
1105 len = sshbuf_len(state->outgoing_packet); in ssh_packet_send2_wrapped()
1120 sshbuf_len(state->outgoing_packet))); in ssh_packet_send2_wrapped()
1124 len = sshbuf_len(state->outgoing_packet); in ssh_packet_send2_wrapped()
1165 len = sshbuf_len(state->outgoing_packet); in ssh_packet_send2_wrapped()
1187 sshbuf_len(state->outgoing_packet) + authlen, &cp)) != 0) in ssh_packet_send2_wrapped()
1260 if (sshbuf_len(state->outgoing_packet) < 6) in ssh_packet_send2()
1264 ssh_packet_need_rekeying(ssh, sshbuf_len(state->outgoing_packet)); in ssh_packet_send2()
1313 sshbuf_len(p->payload))) { in ssh_packet_send2()
1442 if (sshbuf_len(state->input) < 4 + 1) in ssh_packet_read_poll2_mux()
1450 if (sshbuf_len(state->input) < need) in ssh_packet_read_poll2_mux()
1502 sshbuf_ptr(state->input), sshbuf_len(state->input)) != 0) in ssh_packet_read_poll2()
1520 if (sshbuf_len(state->input) < block_size) in ssh_packet_read_poll2()
1574 if (sshbuf_len(state->input) < aadlen + need + authlen + maclen) in ssh_packet_read_poll2()
1603 sshbuf_len(state->incoming_packet), in ssh_packet_read_poll2()
1611 sshbuf_len(state->incoming_packet), in ssh_packet_read_poll2()
1652 sshbuf_len(state->incoming_packet))); in ssh_packet_read_poll2()
1663 sshbuf_len(state->incoming_packet))); in ssh_packet_read_poll2()
1847 return sshbuf_len(ssh->state->incoming_packet); in ssh_packet_remaining()
2012 int len = sshbuf_len(state->output); in ssh_packet_write_poll()
2086 return sshbuf_len(ssh->state->output) != 0; in ssh_packet_have_data_to_write()
2095 return sshbuf_len(ssh->state->output) < 16384; in ssh_packet_not_very_much_data_to_write()
2097 return sshbuf_len(ssh->state->output) < 128 * 1024; in ssh_packet_not_very_much_data_to_write()
2109 sshbuf_len(ssh->state->output) < 256; in ssh_packet_interactive_data_to_write()
2393 if (sshbuf_len(b) != 0) { in newkeys_from_blob()
2492 if (sshbuf_len(m)) in ssh_packet_set_state()
2642 if (sshbuf_len(ssh->state->incoming_packet) > 0) in sshpkt_get_end()
2651 *lenp = sshbuf_len(ssh->state->incoming_packet); in sshpkt_ptr()
2679 len = sshbuf_len(state->outgoing_packet); in ssh_packet_send_mux()