Lines Matching full:block_size
780 enc->iv, enc->block_size, crypt_type);
782 /* memset(enc->iv, 0, enc->block_size);
799 if (enc->block_size >= 16)
800 *max_blocks = (u_int64_t)1 << (enc->block_size*2);
802 *max_blocks = ((u_int64_t)1 << 30) / enc->block_size;
805 active_state->rekey_limit / enc->block_size);
854 int block_size;
861 block_size = enc ? enc->block_size : 8;
894 padlen = block_size - (len % block_size);
896 padlen += block_size;
900 roundup(active_state->extra_pad, block_size);
954 active_state->p_send.blocks += (packet_length + 4) / block_size;
1239 u_int maclen, block_size;
1253 block_size = enc ? enc->block_size : 8;
1260 if (buffer_len(&active_state->input) < block_size)
1264 block_size);
1266 buffer_ptr(&active_state->input), block_size);
1280 buffer_consume(&active_state->input, block_size);
1282 /* we have a partial packet of block_size bytes */
1283 need = 4 + active_state->packlen - block_size;
1284 DBG(debug("partial packet %d, need %d, maclen %d", block_size,
1286 if (need % block_size != 0) {
1288 need, block_size, need % block_size);
1290 PACKET_MAX_SIZE - block_size);
1336 active_state->p_read.blocks += (active_state->packlen + 4) / block_size;