Lines Matching refs:ivsize

186 	unsigned int ivsize = crypto_aead_ivsize(aead);
256 cnstr_shdsc_aead_encap(desc, &ctx->cdata, &ctx->adata, ivsize,
278 cnstr_shdsc_aead_decap(desc, &ctx->cdata, &ctx->adata, ivsize,
302 cnstr_shdsc_aead_givencap(desc, &ctx->cdata, &ctx->adata, ivsize,
327 unsigned int ivsize = crypto_aead_ivsize(aead);
349 cnstr_shdsc_gcm_encap(desc, &ctx->cdata, ivsize, ctx->authsize, false);
366 cnstr_shdsc_gcm_decap(desc, &ctx->cdata, ivsize, ctx->authsize, false);
392 unsigned int ivsize = crypto_aead_ivsize(aead);
414 cnstr_shdsc_rfc4106_encap(desc, &ctx->cdata, ivsize, ctx->authsize,
432 cnstr_shdsc_rfc4106_decap(desc, &ctx->cdata, ivsize, ctx->authsize,
460 unsigned int ivsize = crypto_aead_ivsize(aead);
482 cnstr_shdsc_rfc4543_encap(desc, &ctx->cdata, ivsize, ctx->authsize,
500 cnstr_shdsc_rfc4543_decap(desc, &ctx->cdata, ivsize, ctx->authsize,
526 unsigned int ivsize = crypto_aead_ivsize(aead);
533 cnstr_shdsc_chachapoly(desc, &ctx->cdata, &ctx->adata, ivsize,
539 cnstr_shdsc_chachapoly(desc, &ctx->cdata, &ctx->adata, ivsize,
563 unsigned int ivsize = crypto_aead_ivsize(aead);
564 unsigned int saltlen = CHACHAPOLY_IV_SIZE - ivsize;
738 unsigned int ivsize = crypto_skcipher_ivsize(skcipher);
751 cnstr_shdsc_skcipher_encap(desc, &ctx->cdata, ivsize, is_rfc3686,
758 cnstr_shdsc_skcipher_decap(desc, &ctx->cdata, ivsize, is_rfc3686,
930 dma_addr_t iv_dma, int ivsize, dma_addr_t sec4_sg_dma,
943 dma_unmap_single(dev, iv_dma, ivsize, DMA_BIDIRECTIONAL);
962 int ivsize = crypto_skcipher_ivsize(skcipher);
966 edesc->iv_dma, ivsize,
1010 int ivsize = crypto_skcipher_ivsize(skcipher);
1028 if (ivsize && !ecode) {
1030 ivsize);
1034 ivsize, 1);
1123 unsigned int ivsize = crypto_aead_ivsize(aead);
1125 bool generic_gcm = (ivsize == GCM_AES_IV_SIZE);
1143 append_data(desc, req->iv, ivsize);
1152 unsigned int ivsize = crypto_aead_ivsize(aead);
1159 if (ivsize != CHACHAPOLY_IV_SIZE) {
1167 assoclen -= ivsize;
1176 append_load_as_imm(desc, req->iv, ivsize, LDST_CLASS_1_CCB |
1188 unsigned int ivsize = crypto_aead_ivsize(aead);
1223 if (ivsize && ((is_rfc3686 && encrypt) || !alg->caam.geniv))
1224 append_load_as_imm(desc, req->iv, ivsize,
1240 int ivsize = crypto_skcipher_ivsize(skcipher);
1248 DUMP_PREFIX_ADDRESS, 16, 4, req->iv, ivsize, 1);
1262 if (ivsize || edesc->mapped_src_nents > 1) {
1264 sec4_sg_index = edesc->mapped_src_nents + !!ivsize;
1270 append_seq_in_ptr(desc, src_dma, req->cryptlen + ivsize, in_options);
1273 dst_dma = src_dma + !!ivsize * sizeof(struct sec4_sg_entry);
1275 } else if (!ivsize && edesc->mapped_dst_nents == 1) {
1283 append_seq_out_ptr(desc, dst_dma, req->cryptlen + ivsize, out_options);
1607 int ivsize = crypto_skcipher_ivsize(skcipher);
1649 if (!ivsize && mapped_src_nents == 1)
1652 sec4_sg_ents = mapped_src_nents + !!ivsize;
1667 if (ivsize || mapped_dst_nents > 1) {
1669 sec4_sg_ents = !!ivsize + pad_sg_nents(sec4_sg_ents);
1672 !!ivsize);
1682 edesc = kzalloc(sizeof(*edesc) + desc_bytes + sec4_sg_bytes + ivsize,
1701 if (ivsize) {
1703 memcpy(iv, req->iv, ivsize);
1705 iv_dma = dma_map_single(jrdev, iv, ivsize, DMA_BIDIRECTIONAL);
1714 dma_to_sec4_sg_one(edesc->sec4_sg, iv_dma, ivsize, 0);
1718 !!ivsize, 0);
1720 if (req->src != req->dst && (ivsize || mapped_dst_nents > 1))
1724 if (ivsize)
1726 mapped_dst_nents, iv_dma, ivsize, 0);
1728 if (ivsize || mapped_dst_nents > 1)
1730 mapped_dst_nents - 1 + !!ivsize);
1739 dst_nents, iv_dma, ivsize, 0, 0);
1779 unsigned int ivsize = crypto_skcipher_ivsize(skcipher);
1781 return !!get_unaligned((u64 *)(req->iv + (ivsize / 2)));
1874 .ivsize = AES_BLOCK_SIZE,
1890 .ivsize = DES3_EDE_BLOCK_SIZE,
1906 .ivsize = DES_BLOCK_SIZE,
1922 .ivsize = AES_BLOCK_SIZE,
1942 .ivsize = CTR_RFC3686_IV_SIZE,
1964 .ivsize = AES_BLOCK_SIZE,
2027 .ivsize = GCM_RFC4106_IV_SIZE,
2046 .ivsize = GCM_RFC4543_IV_SIZE,
2066 .ivsize = GCM_AES_IV_SIZE,
2088 .ivsize = NULL_IV_SIZE,
2109 .ivsize = NULL_IV_SIZE,
2130 .ivsize = NULL_IV_SIZE,
2151 .ivsize = NULL_IV_SIZE,
2172 .ivsize = NULL_IV_SIZE,
2193 .ivsize = NULL_IV_SIZE,
2213 .ivsize = AES_BLOCK_SIZE,
2235 .ivsize = AES_BLOCK_SIZE,
2257 .ivsize = AES_BLOCK_SIZE,
2279 .ivsize = AES_BLOCK_SIZE,
2301 .ivsize = AES_BLOCK_SIZE,
2323 .ivsize = AES_BLOCK_SIZE,
2345 .ivsize = AES_BLOCK_SIZE,
2367 .ivsize = AES_BLOCK_SIZE,
2389 .ivsize = AES_BLOCK_SIZE,
2411 .ivsize = AES_BLOCK_SIZE,
2433 .ivsize = AES_BLOCK_SIZE,
2455 .ivsize = AES_BLOCK_SIZE,
2477 .ivsize = DES3_EDE_BLOCK_SIZE,
2499 .ivsize = DES3_EDE_BLOCK_SIZE,
2522 .ivsize = DES3_EDE_BLOCK_SIZE,
2545 .ivsize = DES3_EDE_BLOCK_SIZE,
2568 .ivsize = DES3_EDE_BLOCK_SIZE,
2591 .ivsize = DES3_EDE_BLOCK_SIZE,
2614 .ivsize = DES3_EDE_BLOCK_SIZE,
2637 .ivsize = DES3_EDE_BLOCK_SIZE,
2660 .ivsize = DES3_EDE_BLOCK_SIZE,
2683 .ivsize = DES3_EDE_BLOCK_SIZE,
2706 .ivsize = DES3_EDE_BLOCK_SIZE,
2729 .ivsize = DES3_EDE_BLOCK_SIZE,
2751 .ivsize = DES_BLOCK_SIZE,
2773 .ivsize = DES_BLOCK_SIZE,
2795 .ivsize = DES_BLOCK_SIZE,
2817 .ivsize = DES_BLOCK_SIZE,
2839 .ivsize = DES_BLOCK_SIZE,
2861 .ivsize = DES_BLOCK_SIZE,
2883 .ivsize = DES_BLOCK_SIZE,
2905 .ivsize = DES_BLOCK_SIZE,
2927 .ivsize = DES_BLOCK_SIZE,
2949 .ivsize = DES_BLOCK_SIZE,
2971 .ivsize = DES_BLOCK_SIZE,
2993 .ivsize = DES_BLOCK_SIZE,
3016 .ivsize = CTR_RFC3686_IV_SIZE,
3040 .ivsize = CTR_RFC3686_IV_SIZE,
3065 .ivsize = CTR_RFC3686_IV_SIZE,
3089 .ivsize = CTR_RFC3686_IV_SIZE,
3114 .ivsize = CTR_RFC3686_IV_SIZE,
3138 .ivsize = CTR_RFC3686_IV_SIZE,
3163 .ivsize = CTR_RFC3686_IV_SIZE,
3187 .ivsize = CTR_RFC3686_IV_SIZE,
3212 .ivsize = CTR_RFC3686_IV_SIZE,
3236 .ivsize = CTR_RFC3686_IV_SIZE,
3261 .ivsize = CTR_RFC3686_IV_SIZE,
3285 .ivsize = CTR_RFC3686_IV_SIZE,
3309 .ivsize = CHACHAPOLY_IV_SIZE,
3332 .ivsize = 8,