Lines Matching refs:ivsize

150 		       int dst_nents, dma_addr_t iv_dma, int ivsize,  in caam_unmap()  argument
164 dma_unmap_single(dev, iv_dma, ivsize, iv_dir); in caam_unmap()
175 unsigned int ivsize = crypto_aead_ivsize(aead); in aead_set_sh_desc() local
240 ivsize, ctx->authsize, is_rfc3686, in aead_set_sh_desc()
245 ivsize, ctx->authsize, is_rfc3686, nonce, in aead_set_sh_desc()
266 ivsize, ctx->authsize, alg->caam.geniv, in aead_set_sh_desc()
366 int ivsize = 0; in aead_edesc_alloc() local
446 ivsize = crypto_aead_ivsize(aead); in aead_edesc_alloc()
460 qm_sg_nents = 1 + !!ivsize + mapped_src_nents; in aead_edesc_alloc()
465 1 + !!ivsize + in aead_edesc_alloc()
472 if (unlikely(offsetof(struct aead_edesc, sgt) + qm_sg_bytes + ivsize > in aead_edesc_alloc()
475 qm_sg_nents, ivsize); in aead_edesc_alloc()
482 if (ivsize) { in aead_edesc_alloc()
486 memcpy(iv, req->iv, ivsize); in aead_edesc_alloc()
488 iv_dma = dma_map_single(dev, iv, ivsize, DMA_TO_DEVICE); in aead_edesc_alloc()
503 OP_ALG_ALGSEL_CHACHA20 && ivsize != CHACHAPOLY_IV_SIZE) in aead_edesc_alloc()
508 edesc->assoclen = cpu_to_caam32(req->assoclen - ivsize); in aead_edesc_alloc()
516 iv_dma, ivsize, DMA_TO_DEVICE, 0, 0); in aead_edesc_alloc()
523 if (ivsize) { in aead_edesc_alloc()
524 dma_to_qm_sg_one(sg_table + qm_sg_index, iv_dma, ivsize, 0); in aead_edesc_alloc()
538 iv_dma, ivsize, DMA_TO_DEVICE, 0, 0); in aead_edesc_alloc()
548 in_len = 4 + ivsize + req->assoclen + req->cryptlen; in aead_edesc_alloc()
563 (1 + !!ivsize) * sizeof(*sg_table)); in aead_edesc_alloc()
591 unsigned int ivsize = crypto_aead_ivsize(aead); in chachapoly_set_sh_desc() local
601 cnstr_shdsc_chachapoly(desc, &ctx->cdata, &ctx->adata, ivsize, in chachapoly_set_sh_desc()
610 cnstr_shdsc_chachapoly(desc, &ctx->cdata, &ctx->adata, ivsize, in chachapoly_set_sh_desc()
636 unsigned int ivsize = crypto_aead_ivsize(aead); in chachapoly_setkey() local
637 unsigned int saltlen = CHACHAPOLY_IV_SIZE - ivsize; in chachapoly_setkey()
652 unsigned int ivsize = crypto_aead_ivsize(aead); in gcm_set_sh_desc() local
676 cnstr_shdsc_gcm_encap(desc, &ctx->cdata, ivsize, ctx->authsize, true); in gcm_set_sh_desc()
696 cnstr_shdsc_gcm_decap(desc, &ctx->cdata, ivsize, ctx->authsize, true); in gcm_set_sh_desc()
744 unsigned int ivsize = crypto_aead_ivsize(aead); in rfc4106_set_sh_desc() local
769 cnstr_shdsc_rfc4106_encap(desc, &ctx->cdata, ivsize, ctx->authsize, in rfc4106_set_sh_desc()
789 cnstr_shdsc_rfc4106_decap(desc, &ctx->cdata, ivsize, ctx->authsize, in rfc4106_set_sh_desc()
845 unsigned int ivsize = crypto_aead_ivsize(aead); in rfc4543_set_sh_desc() local
870 cnstr_shdsc_rfc4543_encap(desc, &ctx->cdata, ivsize, ctx->authsize, in rfc4543_set_sh_desc()
890 cnstr_shdsc_rfc4543_decap(desc, &ctx->cdata, ivsize, ctx->authsize, in rfc4543_set_sh_desc()
949 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_setkey() local
963 cnstr_shdsc_skcipher_encap(desc, &ctx->cdata, ivsize, is_rfc3686, in skcipher_setkey()
973 cnstr_shdsc_skcipher_decap(desc, &ctx->cdata, ivsize, is_rfc3686, in skcipher_setkey()
1123 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_edesc_alloc() local
1183 ivsize > CAAM_QI_MEMCACHE_SIZE)) { in skcipher_edesc_alloc()
1185 qm_sg_ents, ivsize); in skcipher_edesc_alloc()
1203 memcpy(iv, req->iv, ivsize); in skcipher_edesc_alloc()
1205 iv_dma = dma_map_single(dev, iv, ivsize, DMA_BIDIRECTIONAL); in skcipher_edesc_alloc()
1219 dma_to_qm_sg_one(sg_table, iv_dma, ivsize, 0); in skcipher_edesc_alloc()
1226 ivsize, 0); in skcipher_edesc_alloc()
1233 iv_dma, ivsize, DMA_BIDIRECTIONAL, 0, 0); in skcipher_edesc_alloc()
1240 dpaa2_fl_set_len(in_fle, req->cryptlen + ivsize); in skcipher_edesc_alloc()
1241 dpaa2_fl_set_len(out_fle, req->cryptlen + ivsize); in skcipher_edesc_alloc()
1262 int ivsize = crypto_aead_ivsize(aead); in aead_unmap() local
1265 edesc->iv_dma, ivsize, DMA_TO_DEVICE, edesc->qm_sg_dma, in aead_unmap()
1274 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_unmap() local
1277 edesc->iv_dma, ivsize, DMA_BIDIRECTIONAL, edesc->qm_sg_dma, in skcipher_unmap()
1398 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_encrypt_done() local
1407 edesc->src_nents > 1 ? 100 : ivsize, 1); in skcipher_encrypt_done()
1421 ivsize); in skcipher_encrypt_done()
1436 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_decrypt_done() local
1445 edesc->src_nents > 1 ? 100 : ivsize, 1); in skcipher_decrypt_done()
1459 ivsize); in skcipher_decrypt_done()
1468 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in xts_skcipher_ivsize() local
1470 return !!get_unaligned((u64 *)(req->iv + (ivsize / 2))); in xts_skcipher_ivsize()
1682 .ivsize = AES_BLOCK_SIZE,
1698 .ivsize = DES3_EDE_BLOCK_SIZE,
1714 .ivsize = DES_BLOCK_SIZE,
1730 .ivsize = AES_BLOCK_SIZE,
1750 .ivsize = CTR_RFC3686_IV_SIZE,
1772 .ivsize = AES_BLOCK_SIZE,
1788 .ivsize = CHACHA_IV_SIZE,
1806 .ivsize = 8,
1825 .ivsize = 8,
1845 .ivsize = 12,
1866 .ivsize = AES_BLOCK_SIZE,
1888 .ivsize = AES_BLOCK_SIZE,
1910 .ivsize = AES_BLOCK_SIZE,
1932 .ivsize = AES_BLOCK_SIZE,
1954 .ivsize = AES_BLOCK_SIZE,
1976 .ivsize = AES_BLOCK_SIZE,
1998 .ivsize = AES_BLOCK_SIZE,
2021 .ivsize = AES_BLOCK_SIZE,
2043 .ivsize = AES_BLOCK_SIZE,
2066 .ivsize = AES_BLOCK_SIZE,
2088 .ivsize = AES_BLOCK_SIZE,
2111 .ivsize = AES_BLOCK_SIZE,
2133 .ivsize = DES3_EDE_BLOCK_SIZE,
2155 .ivsize = DES3_EDE_BLOCK_SIZE,
2178 .ivsize = DES3_EDE_BLOCK_SIZE,
2201 .ivsize = DES3_EDE_BLOCK_SIZE,
2224 .ivsize = DES3_EDE_BLOCK_SIZE,
2247 .ivsize = DES3_EDE_BLOCK_SIZE,
2270 .ivsize = DES3_EDE_BLOCK_SIZE,
2293 .ivsize = DES3_EDE_BLOCK_SIZE,
2316 .ivsize = DES3_EDE_BLOCK_SIZE,
2339 .ivsize = DES3_EDE_BLOCK_SIZE,
2362 .ivsize = DES3_EDE_BLOCK_SIZE,
2385 .ivsize = DES3_EDE_BLOCK_SIZE,
2407 .ivsize = DES_BLOCK_SIZE,
2429 .ivsize = DES_BLOCK_SIZE,
2451 .ivsize = DES_BLOCK_SIZE,
2473 .ivsize = DES_BLOCK_SIZE,
2495 .ivsize = DES_BLOCK_SIZE,
2518 .ivsize = DES_BLOCK_SIZE,
2540 .ivsize = DES_BLOCK_SIZE,
2563 .ivsize = DES_BLOCK_SIZE,
2585 .ivsize = DES_BLOCK_SIZE,
2608 .ivsize = DES_BLOCK_SIZE,
2630 .ivsize = DES_BLOCK_SIZE,
2653 .ivsize = DES_BLOCK_SIZE,
2676 .ivsize = CTR_RFC3686_IV_SIZE,
2700 .ivsize = CTR_RFC3686_IV_SIZE,
2725 .ivsize = CTR_RFC3686_IV_SIZE,
2749 .ivsize = CTR_RFC3686_IV_SIZE,
2774 .ivsize = CTR_RFC3686_IV_SIZE,
2798 .ivsize = CTR_RFC3686_IV_SIZE,
2823 .ivsize = CTR_RFC3686_IV_SIZE,
2847 .ivsize = CTR_RFC3686_IV_SIZE,
2872 .ivsize = CTR_RFC3686_IV_SIZE,
2896 .ivsize = CTR_RFC3686_IV_SIZE,
2920 .ivsize = CHACHAPOLY_IV_SIZE,
2943 .ivsize = 8,
2967 .ivsize = CTR_RFC3686_IV_SIZE,
2991 .ivsize = CTR_RFC3686_IV_SIZE,