Lines Matching refs:sshbuf_len
387 while (sshbuf_len(state->incoming_packet) < dlen) in ssh_packet_stop_discard()
421 if (sshbuf_len(state->input) >= discard) in ssh_packet_start_discard()
423 state->packet_discard = discard - sshbuf_len(state->input); in ssh_packet_start_discard()
722 if (sshbuf_len(in) == 0) in compress_buffer()
729 ssh->state->compression_out_stream.avail_in = sshbuf_len(in); in compress_buffer()
770 ssh->state->compression_in_stream.avail_in = sshbuf_len(in); in uncompress_buffer()
879 len = sshbuf_len(state->outgoing_packet) + 4 - 8; in ssh_packet_send1()
896 sshbuf_len(state->outgoing_packet)); in ssh_packet_send1()
911 sshbuf_len(state->outgoing_packet), &cp)) != 0) in ssh_packet_send1()
915 sshbuf_len(state->outgoing_packet), 0, 0)) != 0) in ssh_packet_send1()
924 sshbuf_len(state->outgoing_packet); in ssh_packet_send1()
1176 len = sshbuf_len(state->outgoing_packet); in ssh_packet_send2_wrapped()
1191 sshbuf_len(state->outgoing_packet))); in ssh_packet_send2_wrapped()
1195 len = sshbuf_len(state->outgoing_packet); in ssh_packet_send2_wrapped()
1236 len = sshbuf_len(state->outgoing_packet); in ssh_packet_send2_wrapped()
1258 sshbuf_len(state->outgoing_packet) + authlen, &cp)) != 0) in ssh_packet_send2_wrapped()
1321 if (sshbuf_len(state->outgoing_packet) < 6) in ssh_packet_send2()
1325 ssh_packet_need_rekeying(ssh, sshbuf_len(state->outgoing_packet)); in ssh_packet_send2()
1374 sshbuf_len(p->payload))) { in ssh_packet_send2()
1550 if (sshbuf_len(state->input) < 4 + 8) in ssh_packet_read_poll1()
1563 if (sshbuf_len(state->input) < 4 + padded_len) in ssh_packet_read_poll1()
1620 sshbuf_len(state->incoming_packet) - 4); in ssh_packet_read_poll1()
1627 if (len != sshbuf_len(state->incoming_packet)) { in ssh_packet_read_poll1()
1629 len, sshbuf_len(state->incoming_packet)); in ssh_packet_read_poll1()
1687 if (sshbuf_len(state->input) < 4 + 1) in ssh_packet_read_poll2_mux()
1695 if (sshbuf_len(state->input) < need) in ssh_packet_read_poll2_mux()
1747 sshbuf_ptr(state->input), sshbuf_len(state->input)) != 0) in ssh_packet_read_poll2()
1765 if (sshbuf_len(state->input) < block_size) in ssh_packet_read_poll2()
1819 if (sshbuf_len(state->input) < aadlen + need + authlen + maclen) in ssh_packet_read_poll2()
1848 sshbuf_len(state->incoming_packet), in ssh_packet_read_poll2()
1856 sshbuf_len(state->incoming_packet), in ssh_packet_read_poll2()
1891 sshbuf_len(state->incoming_packet))); in ssh_packet_read_poll2()
1902 sshbuf_len(state->incoming_packet))); in ssh_packet_read_poll2()
2056 return sshbuf_len(ssh->state->incoming_packet); in ssh_packet_remaining()
2201 int len = sshbuf_len(state->output); in ssh_packet_write_poll()
2287 return sshbuf_len(ssh->state->output) != 0; in ssh_packet_have_data_to_write()
2296 return sshbuf_len(ssh->state->output) < 16384; in ssh_packet_not_very_much_data_to_write()
2298 return sshbuf_len(ssh->state->output) < 128 * 1024; in ssh_packet_not_very_much_data_to_write()
2667 if (sshbuf_len(b) != 0) { in newkeys_from_blob()
2798 if (sshbuf_len(m)) in ssh_packet_set_state()
2951 if (sshbuf_len(ssh->state->incoming_packet) > 0) in sshpkt_get_end()
2960 *lenp = sshbuf_len(ssh->state->incoming_packet); in sshpkt_ptr()
2990 len = sshbuf_len(state->outgoing_packet); in ssh_packet_send_mux()