Lines Matching defs:ivsize
195 unsigned int ivsize = crypto_aead_ivsize(aead);
265 cnstr_shdsc_aead_encap(desc, &ctx->cdata, &ctx->adata, ivsize,
287 cnstr_shdsc_aead_decap(desc, &ctx->cdata, &ctx->adata, ivsize,
311 cnstr_shdsc_aead_givencap(desc, &ctx->cdata, &ctx->adata, ivsize,
336 unsigned int ivsize = crypto_aead_ivsize(aead);
358 cnstr_shdsc_gcm_encap(desc, &ctx->cdata, ivsize, ctx->authsize, false);
375 cnstr_shdsc_gcm_decap(desc, &ctx->cdata, ivsize, ctx->authsize, false);
401 unsigned int ivsize = crypto_aead_ivsize(aead);
423 cnstr_shdsc_rfc4106_encap(desc, &ctx->cdata, ivsize, ctx->authsize,
441 cnstr_shdsc_rfc4106_decap(desc, &ctx->cdata, ivsize, ctx->authsize,
469 unsigned int ivsize = crypto_aead_ivsize(aead);
491 cnstr_shdsc_rfc4543_encap(desc, &ctx->cdata, ivsize, ctx->authsize,
509 cnstr_shdsc_rfc4543_decap(desc, &ctx->cdata, ivsize, ctx->authsize,
535 unsigned int ivsize = crypto_aead_ivsize(aead);
542 cnstr_shdsc_chachapoly(desc, &ctx->cdata, &ctx->adata, ivsize,
548 cnstr_shdsc_chachapoly(desc, &ctx->cdata, &ctx->adata, ivsize,
572 unsigned int ivsize = crypto_aead_ivsize(aead);
573 unsigned int saltlen = CHACHAPOLY_IV_SIZE - ivsize;
747 unsigned int ivsize = crypto_skcipher_ivsize(skcipher);
760 cnstr_shdsc_skcipher_encap(desc, &ctx->cdata, ivsize, is_rfc3686,
767 cnstr_shdsc_skcipher_decap(desc, &ctx->cdata, ivsize, is_rfc3686,
939 dma_addr_t iv_dma, int ivsize, dma_addr_t sec4_sg_dma,
952 dma_unmap_single(dev, iv_dma, ivsize, DMA_BIDIRECTIONAL);
971 int ivsize = crypto_skcipher_ivsize(skcipher);
975 edesc->iv_dma, ivsize,
1026 int ivsize = crypto_skcipher_ivsize(skcipher);
1044 if (ivsize && !ecode) {
1045 memcpy(req->iv, skcipher_edesc_iv(edesc), ivsize);
1049 ivsize, 1);
1138 unsigned int ivsize = crypto_aead_ivsize(aead);
1140 bool generic_gcm = (ivsize == GCM_AES_IV_SIZE);
1158 append_data(desc, req->iv, ivsize);
1167 unsigned int ivsize = crypto_aead_ivsize(aead);
1174 if (ivsize != CHACHAPOLY_IV_SIZE) {
1182 assoclen -= ivsize;
1191 append_load_as_imm(desc, req->iv, ivsize, LDST_CLASS_1_CCB |
1204 unsigned int ivsize = crypto_aead_ivsize(aead);
1239 if (ivsize && ((is_rfc3686 && encrypt) || !alg->caam.geniv))
1240 append_load_as_imm(desc, req->iv, ivsize,
1256 int ivsize = crypto_skcipher_ivsize(skcipher);
1264 DUMP_PREFIX_ADDRESS, 16, 4, req->iv, ivsize, 1);
1278 if (ivsize || edesc->mapped_src_nents > 1) {
1280 sec4_sg_index = edesc->mapped_src_nents + !!ivsize;
1286 append_seq_in_ptr(desc, src_dma, req->cryptlen + ivsize, in_options);
1289 dst_dma = src_dma + !!ivsize * sizeof(struct sec4_sg_entry);
1291 } else if (!ivsize && edesc->mapped_dst_nents == 1) {
1299 append_seq_out_ptr(desc, dst_dma, req->cryptlen + ivsize, out_options);
1625 int ivsize = crypto_skcipher_ivsize(skcipher);
1668 if (!ivsize && mapped_src_nents == 1)
1671 sec4_sg_ents = mapped_src_nents + !!ivsize;
1686 if (ivsize || mapped_dst_nents > 1) {
1688 sec4_sg_ents = !!ivsize + pad_sg_nents(sec4_sg_ents);
1691 !!ivsize);
1705 aligned_size += ALIGN(ivsize, dma_get_cache_alignment());
1724 if (ivsize) {
1726 memcpy(iv, req->iv, ivsize);
1728 iv_dma = dma_map_single(jrdev, iv, ivsize, DMA_BIDIRECTIONAL);
1737 dma_to_sec4_sg_one(edesc->sec4_sg, iv_dma, ivsize, 0);
1741 !!ivsize, 0);
1743 if (req->src != req->dst && (ivsize || mapped_dst_nents > 1))
1747 if (ivsize)
1749 mapped_dst_nents, iv_dma, ivsize, 0);
1751 if (ivsize || mapped_dst_nents > 1)
1753 mapped_dst_nents - 1 + !!ivsize);
1762 dst_nents, iv_dma, ivsize, 0, 0);
1805 unsigned int ivsize = crypto_skcipher_ivsize(skcipher);
1807 return !!get_unaligned((u64 *)(req->iv + (ivsize / 2)));
1900 .ivsize = AES_BLOCK_SIZE,
1919 .ivsize = DES3_EDE_BLOCK_SIZE,
1938 .ivsize = DES_BLOCK_SIZE,
1957 .ivsize = AES_BLOCK_SIZE,
1980 .ivsize = CTR_RFC3686_IV_SIZE,
2005 .ivsize = AES_BLOCK_SIZE,
2080 .ivsize = GCM_RFC4106_IV_SIZE,
2102 .ivsize = GCM_RFC4543_IV_SIZE,
2125 .ivsize = GCM_AES_IV_SIZE,
2150 .ivsize = NULL_IV_SIZE,
2174 .ivsize = NULL_IV_SIZE,
2198 .ivsize = NULL_IV_SIZE,
2222 .ivsize = NULL_IV_SIZE,
2246 .ivsize = NULL_IV_SIZE,
2270 .ivsize = NULL_IV_SIZE,
2293 .ivsize = AES_BLOCK_SIZE,
2318 .ivsize = AES_BLOCK_SIZE,
2343 .ivsize = AES_BLOCK_SIZE,
2368 .ivsize = AES_BLOCK_SIZE,
2393 .ivsize = AES_BLOCK_SIZE,
2418 .ivsize = AES_BLOCK_SIZE,
2443 .ivsize = AES_BLOCK_SIZE,
2468 .ivsize = AES_BLOCK_SIZE,
2493 .ivsize = AES_BLOCK_SIZE,
2518 .ivsize = AES_BLOCK_SIZE,
2543 .ivsize = AES_BLOCK_SIZE,
2568 .ivsize = AES_BLOCK_SIZE,
2593 .ivsize = DES3_EDE_BLOCK_SIZE,
2618 .ivsize = DES3_EDE_BLOCK_SIZE,
2644 .ivsize = DES3_EDE_BLOCK_SIZE,
2670 .ivsize = DES3_EDE_BLOCK_SIZE,
2696 .ivsize = DES3_EDE_BLOCK_SIZE,
2722 .ivsize = DES3_EDE_BLOCK_SIZE,
2748 .ivsize = DES3_EDE_BLOCK_SIZE,
2774 .ivsize = DES3_EDE_BLOCK_SIZE,
2800 .ivsize = DES3_EDE_BLOCK_SIZE,
2826 .ivsize = DES3_EDE_BLOCK_SIZE,
2852 .ivsize = DES3_EDE_BLOCK_SIZE,
2878 .ivsize = DES3_EDE_BLOCK_SIZE,
2903 .ivsize = DES_BLOCK_SIZE,
2928 .ivsize = DES_BLOCK_SIZE,
2953 .ivsize = DES_BLOCK_SIZE,
2978 .ivsize = DES_BLOCK_SIZE,
3003 .ivsize = DES_BLOCK_SIZE,
3028 .ivsize = DES_BLOCK_SIZE,
3053 .ivsize = DES_BLOCK_SIZE,
3078 .ivsize = DES_BLOCK_SIZE,
3103 .ivsize = DES_BLOCK_SIZE,
3128 .ivsize = DES_BLOCK_SIZE,
3153 .ivsize = DES_BLOCK_SIZE,
3178 .ivsize = DES_BLOCK_SIZE,
3204 .ivsize = CTR_RFC3686_IV_SIZE,
3231 .ivsize = CTR_RFC3686_IV_SIZE,
3259 .ivsize = CTR_RFC3686_IV_SIZE,
3286 .ivsize = CTR_RFC3686_IV_SIZE,
3314 .ivsize = CTR_RFC3686_IV_SIZE,
3341 .ivsize = CTR_RFC3686_IV_SIZE,
3369 .ivsize = CTR_RFC3686_IV_SIZE,
3396 .ivsize = CTR_RFC3686_IV_SIZE,
3424 .ivsize = CTR_RFC3686_IV_SIZE,
3451 .ivsize = CTR_RFC3686_IV_SIZE,
3479 .ivsize = CTR_RFC3686_IV_SIZE,
3506 .ivsize = CTR_RFC3686_IV_SIZE,
3533 .ivsize = CHACHAPOLY_IV_SIZE,
3559 .ivsize = 8,