Lines Matching refs:padlen
1148 u_char tmp, padlen, pad = 0; in ssh_packet_send2_wrapped() local
1202 padlen = block_size - (len % block_size); in ssh_packet_send2_wrapped()
1203 if (padlen < 4) in ssh_packet_send2_wrapped()
1204 padlen += block_size; in ssh_packet_send2_wrapped()
1212 tmp = (len + padlen) % state->extra_pad; in ssh_packet_send2_wrapped()
1218 __func__, pad, len, padlen, state->extra_pad)); in ssh_packet_send2_wrapped()
1219 tmp = padlen; in ssh_packet_send2_wrapped()
1220 padlen += pad; in ssh_packet_send2_wrapped()
1222 if (padlen < tmp) in ssh_packet_send2_wrapped()
1226 if ((r = sshbuf_reserve(state->outgoing_packet, padlen, &cp)) != 0) in ssh_packet_send2_wrapped()
1230 arc4random_buf(cp, padlen); in ssh_packet_send2_wrapped()
1233 explicit_bzero(cp, padlen); in ssh_packet_send2_wrapped()
1244 cp[4] = padlen; in ssh_packet_send2_wrapped()
1246 len, padlen, aadlen)); in ssh_packet_send2_wrapped()
1716 u_int padlen, need; in ssh_packet_read_poll2() local
1875 padlen = sshbuf_ptr(state->incoming_packet)[4]; in ssh_packet_read_poll2()
1876 DBG(debug("input: padlen %d", padlen)); in ssh_packet_read_poll2()
1877 if (padlen < 4) { in ssh_packet_read_poll2()
1879 "Corrupted padlen %d on input.", padlen)) != 0 || in ssh_packet_read_poll2()
1887 ((r = sshbuf_consume_end(state->incoming_packet, padlen)) != 0)) in ssh_packet_read_poll2()