Home | History | Annotate | Download | only in openssh

Lines Matching refs:padlen

847 	u_char padlen, pad;
894 padlen = block_size - (len % block_size);
895 if (padlen < 4)
896 padlen += block_size;
898 /* will wrap if extra_pad+padlen > 255 */
902 ((len + padlen) % active_state->extra_pad);
903 debug3("packet_send2: adding %d (len %d padlen %d extra_pad %d)",
904 pad, len, padlen, active_state->extra_pad);
905 padlen += pad;
908 cp = buffer_append_space(&active_state->outgoing_packet, padlen);
911 for (i = 0; i < padlen; i++) {
919 memset(cp, 0, padlen);
925 cp[4] = padlen;
926 DBG(debug("send: len %d (includes padlen %d)", packet_length+4, padlen));
1237 u_int padlen, need;
1339 /* get padlen */
1341 padlen = cp[4];
1342 DBG(debug("input: padlen %d", padlen));
1343 if (padlen < 4)
1344 packet_disconnect("Corrupted padlen %d on input.", padlen);
1346 /* skip packet size + padlen, discard padding */
1348 buffer_consume_end(&active_state->incoming_packet, padlen);