Lines Matching defs:block_size
606 data_dump(enc->iv, enc->block_size);
611 enc->iv, enc->block_size, crypt_type);
613 /* memset(enc->iv, 0, enc->block_size);
651 if (enc->block_size >= 16)
652 *max_blocks = (u_int64_t)1 << (enc->block_size * 2);
654 *max_blocks = ((u_int64_t)1 << 30) / enc->block_size;
657 *max_blocks = MIN(*max_blocks, rekey_limit / enc->block_size);
735 int block_size;
742 block_size = enc ? enc->block_size : 8;
774 padlen = block_size - (len % block_size);
776 padlen += block_size;
779 extra_pad = roundup(extra_pad, block_size);
845 p_send.blocks += (packet_length + 4) / block_size;
1130 int maclen, block_size;
1141 block_size = enc ? enc->block_size : 8;
1148 if (buffer_len(&input) < block_size)
1156 cp = buffer_append_space(&incoming_packet, block_size);
1158 block_size);
1165 buffer_consume(&input, block_size);
1167 /* we have a partial packet of block_size bytes */
1168 need = 4 + packet_length - block_size;
1169 DBG(debug("partial packet %d, still need %d, maclen %d", block_size,
1171 if (need % block_size != 0)
1209 p_read.blocks += (packet_length + 4) / block_size;