iv_size
u32 iv_size = req->ctx->c_ctx.ivsize;
sz = sg_pcopy_to_buffer(sgl, sg_nents(sgl), iv, iv_size,
cryptlen - iv_size);
if (unlikely(sz != iv_size))
sz = (cryptlen + iv_size - 1) / iv_size;
ctr_iv_inc(iv, iv_size, sz);
sec_min_key_size, sec_max_key_size, blk_size, iv_size)\
.ivsize = iv_size,\
ctx_exit, blk_size, iv_size, max_authsize)\
.ivsize = iv_size,\
int iv_size = crypto_skcipher_ivsize(tfm);
if (!req->iv || iv_size != AES_BLOCK_SIZE)
if (!req->iv || iv_size != AES_BLOCK_SIZE)
if (!req->iv || iv_size != AES_BLOCK_SIZE)
int iv_size = crypto_skcipher_ivsize(tfm);
req->cryptlen - iv_size, iv_size, 0);
int iv_size = crypto_skcipher_ivsize(tfm);
req->cryptlen, req->iv, iv_size);
req->cryptlen - iv_size,
iv_size, 0);
memcpy(req->iv, rctx->last_ct_blk, iv_size);
req->cryptlen - iv_size,
iv_size, 0);
int iv_size = crypto_aead_ivsize(tfm);
if (iv_size != GCM_AES_IV_SIZE)
if (iv_size != AES_BLOCK_SIZE)
const u8 *iv, u32 iv_size,
if (!iv || iv_size != AES_BLOCK_SIZE)
if (!iv || iv_size != AES_BLOCK_SIZE)
if (!iv || iv_size != AES_BLOCK_SIZE)
if (!iv || iv_size != GCM_AES_IV_SIZE)
if (!iv || iv_size != AES_BLOCK_SIZE)
u32 iv_size)
rc = ocs_aes_validate_inputs(src_dma_list, src_size, iv, iv_size, 0, 0,
u32 iv_size);
u8 iv_size;
cfg.iv_size = 0;
cfg.iv_size = crypto_aead_ivsize(authenc);
if (cfg->iv_size)
auth_offset += cfg->iv_size;
if (cfg->iv_size) {
upd_info->enc_iv.size = cfg->iv_size;
SA_CMDL_HEADER_SIZE_BYTES + cfg->iv_size;
(SA_CTX_ENC_AUX2_OFFSET | (cfg->iv_size >> 3));
total += SA_CMDL_HEADER_SIZE_BYTES + cfg->iv_size;
cfg.iv_size = crypto_skcipher_ivsize(tfm);
uint32_t iv_size = 32;
rptr += iv_size * offset;
return iv_of_dmreq(cc, dmreq) + cc->iv_size;
u8 *ptr = iv_of_dmreq(cc, dmreq) + cc->iv_size + cc->iv_size;
u8 *ptr = iv_of_dmreq(cc, dmreq) + cc->iv_size +
cc->iv_size + sizeof(uint64_t);
BUG_ON(cc->integrity_iv_size && cc->integrity_iv_size != cc->iv_size);
sg_set_buf(&dmreq->sg_in[1], org_iv, cc->iv_size);
sg_set_buf(&dmreq->sg_out[1], org_iv, cc->iv_size);
memcpy(org_iv, tag_iv, cc->iv_size);
memcpy(tag_iv, org_iv, cc->iv_size);
memcpy(iv, org_iv, cc->iv_size);
aead_request_set_ad(req, sizeof(uint64_t) + cc->iv_size);
memcpy(iv, org_iv, cc->iv_size);
unsigned int iv_size;
cc->iv_size = crypto_aead_ivsize(any_tfm_aead(cc));
cc->iv_size = crypto_skcipher_ivsize(any_tfm(cc));
if (cc->iv_size)
cc->iv_size = max(cc->iv_size,
cc->key_extra_size = cc->iv_size + TCW_WHITENING_SIZE;
cc->integrity_iv_size = cc->iv_size;
cc->iv_size = crypto_aead_ivsize(any_tfm_aead(cc));
cc->iv_size = crypto_skcipher_ivsize(any_tfm(cc));
iv_size_padding + cc->iv_size +
cc->iv_size +
memset(iv, 0, cc->iv_size);
memset(iv, 0, cc->iv_size);
memset(iv, 0, cc->iv_size);
*(__be64 *)&iv[cc->iv_size - sizeof(u64)] = cpu_to_be64(dmreq->iv_sector);
memset(iv, 0, cc->iv_size);
memset(iv, 0, cc->iv_size - sizeof(u64)); /* rest is cleared below */
put_unaligned(val, (__be64 *)(iv + cc->iv_size - sizeof(u64)));
memset(iv, 0, cc->iv_size);
memcpy(iv, ctx.state.h, cc->iv_size);
memset(iv, 0, cc->iv_size);
crypto_xor(dst + sg->offset, iv, cc->iv_size);
if (cc->key_size <= (cc->iv_size + TCW_WHITENING_SIZE)) {
tcw->iv_seed = kzalloc(cc->iv_size, GFP_KERNEL);
int key_offset = cc->key_size - cc->iv_size - TCW_WHITENING_SIZE;
memcpy(tcw->iv_seed, &cc->key[key_offset], cc->iv_size);
memcpy(tcw->whitening, &cc->key[key_offset + cc->iv_size],
memset(tcw->iv_seed, 0, cc->iv_size);
if (cc->iv_size > 8)
cc->iv_size - 8);
get_random_bytes(iv, cc->iv_size);
if (crypto_skcipher_blocksize(any_tfm(cc)) != cc->iv_size) {
req = kmalloc(reqsize + cc->iv_size, GFP_NOIO);
memset(buf, 0, cc->iv_size);
sg_init_one(&src, page_address(ZERO_PAGE(0)), cc->iv_size);
sg_init_one(&dst, iv, cc->iv_size);
skcipher_request_set_crypt(req, &src, &dst, cc->iv_size, buf);
cipher_start = TLS_HEADER_SIZE + tx_info->iv_size + 1;
(!tls_rec_offset ? TLS_HEADER_SIZE + tx_info->iv_size : 0);
memcpy(pos + tx_info->salt_size, &iv_record, tx_info->iv_size);
*(__be32 *)(pos + tx_info->salt_size + tx_info->iv_size) =
(TLS_HEADER_SIZE + tx_info->iv_size)) / AES_BLOCK_LEN) : 0));
if (tls_rec_offset + data_len <= (TLS_HEADER_SIZE + tx_info->iv_size)) {
if (tls_rec_offset < (TLS_HEADER_SIZE + tx_info->iv_size)) {
(TLS_HEADER_SIZE + tx_info->iv_size))
tx_info->iv_size = TLS_CIPHER_AES_GCM_128_IV_SIZE;
u32 iv_size;
size = iv_size(bits);
cio_dma_free(iv->vector, iv_size(iv->bits));
unsigned int iv_size = crypto_aead_ivsize(tfm);
len = iv_size;
*req = (struct aead_request *)PTR_ALIGN(*iv + iv_size,
u16 iv_size;
unsigned int iv_size, req_size;
iv_size = crypto_aead_ivsize(tfm);
len += iv_size;
*req = (struct aead_request *)PTR_ALIGN(*iv + iv_size,
prot->iv_size);
size_t pkt_len, iv_size = prot->iv_size;
pkt_len += iv_size;
ctx->tx.iv + prot->salt_size, iv_size);
prot->iv_size + prot->salt_size);
prot->iv_size);
cipher_overhead += prot->iv_size;
prot->iv_size = cipher_desc->iv;
prot->iv_size + prot->salt_size);