Lines Matching full:block_size
984 /* explicit_bzero(enc->iv, enc->block_size);
1005 if (enc->block_size >= 16)
1006 *max_blocks = (u_int64_t)1 << (enc->block_size*2);
1008 *max_blocks = ((u_int64_t)1 << 30) / enc->block_size;
1011 state->rekey_limit / enc->block_size);
1067 int r, block_size;
1077 block_size = enc ? enc->block_size : 8;
1114 padlen = block_size - (len % block_size);
1116 padlen += block_size;
1120 roundup(state->extra_pad, block_size);
1189 state->p_send.blocks += len / block_size;
1548 u_int maclen, aadlen = 0, authlen = 0, block_size;
1568 block_size = enc ? enc->block_size : 8;
1592 if (sshbuf_len(state->input) < block_size)
1595 if ((r = sshbuf_reserve(state->incoming_packet, block_size,
1600 block_size, 0, 0)) != 0)
1615 if ((r = sshbuf_consume(state->input, block_size)) != 0)
1626 * have a partial packet of block_size bytes
1628 need = 4 + state->packlen - block_size;
1631 " aadlen %d", block_size, need, maclen, authlen, aadlen));
1632 if (need % block_size != 0) {
1634 need, block_size, need % block_size);
1636 state->packlen, PACKET_MAX_SIZE - block_size);
1698 state->p_read.blocks += (state->packlen + 4) / block_size;
2417 (r = sshbuf_put_u32(b, enc->block_size)) != 0 ||
2532 (r = sshbuf_get_u32(b, &enc->block_size)) != 0 ||