Lines Matching refs:ivsize

152 		       int dst_nents, dma_addr_t iv_dma, int ivsize,  in caam_unmap()  argument
166 dma_unmap_single(dev, iv_dma, ivsize, iv_dir); in caam_unmap()
177 unsigned int ivsize = crypto_aead_ivsize(aead); in aead_set_sh_desc() local
242 ivsize, ctx->authsize, is_rfc3686, in aead_set_sh_desc()
247 ivsize, ctx->authsize, is_rfc3686, nonce, in aead_set_sh_desc()
268 ivsize, ctx->authsize, alg->caam.geniv, in aead_set_sh_desc()
368 int ivsize = 0; in aead_edesc_alloc() local
448 ivsize = crypto_aead_ivsize(aead); in aead_edesc_alloc()
462 qm_sg_nents = 1 + !!ivsize + mapped_src_nents; in aead_edesc_alloc()
467 1 + !!ivsize + in aead_edesc_alloc()
474 if (unlikely(offsetof(struct aead_edesc, sgt) + qm_sg_bytes + ivsize > in aead_edesc_alloc()
477 qm_sg_nents, ivsize); in aead_edesc_alloc()
484 if (ivsize) { in aead_edesc_alloc()
488 memcpy(iv, req->iv, ivsize); in aead_edesc_alloc()
490 iv_dma = dma_map_single(dev, iv, ivsize, DMA_TO_DEVICE); in aead_edesc_alloc()
505 OP_ALG_ALGSEL_CHACHA20 && ivsize != CHACHAPOLY_IV_SIZE) in aead_edesc_alloc()
510 edesc->assoclen = cpu_to_caam32(req->assoclen - ivsize); in aead_edesc_alloc()
518 iv_dma, ivsize, DMA_TO_DEVICE, 0, 0); in aead_edesc_alloc()
525 if (ivsize) { in aead_edesc_alloc()
526 dma_to_qm_sg_one(sg_table + qm_sg_index, iv_dma, ivsize, 0); in aead_edesc_alloc()
540 iv_dma, ivsize, DMA_TO_DEVICE, 0, 0); in aead_edesc_alloc()
550 in_len = 4 + ivsize + req->assoclen + req->cryptlen; in aead_edesc_alloc()
565 (1 + !!ivsize) * sizeof(*sg_table)); in aead_edesc_alloc()
593 unsigned int ivsize = crypto_aead_ivsize(aead); in chachapoly_set_sh_desc() local
603 cnstr_shdsc_chachapoly(desc, &ctx->cdata, &ctx->adata, ivsize, in chachapoly_set_sh_desc()
612 cnstr_shdsc_chachapoly(desc, &ctx->cdata, &ctx->adata, ivsize, in chachapoly_set_sh_desc()
638 unsigned int ivsize = crypto_aead_ivsize(aead); in chachapoly_setkey() local
639 unsigned int saltlen = CHACHAPOLY_IV_SIZE - ivsize; in chachapoly_setkey()
654 unsigned int ivsize = crypto_aead_ivsize(aead); in gcm_set_sh_desc() local
678 cnstr_shdsc_gcm_encap(desc, &ctx->cdata, ivsize, ctx->authsize, true); in gcm_set_sh_desc()
698 cnstr_shdsc_gcm_decap(desc, &ctx->cdata, ivsize, ctx->authsize, true); in gcm_set_sh_desc()
746 unsigned int ivsize = crypto_aead_ivsize(aead); in rfc4106_set_sh_desc() local
771 cnstr_shdsc_rfc4106_encap(desc, &ctx->cdata, ivsize, ctx->authsize, in rfc4106_set_sh_desc()
791 cnstr_shdsc_rfc4106_decap(desc, &ctx->cdata, ivsize, ctx->authsize, in rfc4106_set_sh_desc()
847 unsigned int ivsize = crypto_aead_ivsize(aead); in rfc4543_set_sh_desc() local
872 cnstr_shdsc_rfc4543_encap(desc, &ctx->cdata, ivsize, ctx->authsize, in rfc4543_set_sh_desc()
892 cnstr_shdsc_rfc4543_decap(desc, &ctx->cdata, ivsize, ctx->authsize, in rfc4543_set_sh_desc()
951 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_setkey() local
965 cnstr_shdsc_skcipher_encap(desc, &ctx->cdata, ivsize, is_rfc3686, in skcipher_setkey()
975 cnstr_shdsc_skcipher_decap(desc, &ctx->cdata, ivsize, is_rfc3686, in skcipher_setkey()
1125 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_edesc_alloc() local
1185 ivsize > CAAM_QI_MEMCACHE_SIZE)) { in skcipher_edesc_alloc()
1187 qm_sg_ents, ivsize); in skcipher_edesc_alloc()
1205 memcpy(iv, req->iv, ivsize); in skcipher_edesc_alloc()
1207 iv_dma = dma_map_single(dev, iv, ivsize, DMA_BIDIRECTIONAL); in skcipher_edesc_alloc()
1221 dma_to_qm_sg_one(sg_table, iv_dma, ivsize, 0); in skcipher_edesc_alloc()
1228 ivsize, 0); in skcipher_edesc_alloc()
1235 iv_dma, ivsize, DMA_BIDIRECTIONAL, 0, 0); in skcipher_edesc_alloc()
1242 dpaa2_fl_set_len(in_fle, req->cryptlen + ivsize); in skcipher_edesc_alloc()
1243 dpaa2_fl_set_len(out_fle, req->cryptlen + ivsize); in skcipher_edesc_alloc()
1264 int ivsize = crypto_aead_ivsize(aead); in aead_unmap() local
1267 edesc->iv_dma, ivsize, DMA_TO_DEVICE, edesc->qm_sg_dma, in aead_unmap()
1276 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_unmap() local
1279 edesc->iv_dma, ivsize, DMA_BIDIRECTIONAL, edesc->qm_sg_dma, in skcipher_unmap()
1400 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_encrypt_done() local
1409 edesc->src_nents > 1 ? 100 : ivsize, 1); in skcipher_encrypt_done()
1423 ivsize); in skcipher_encrypt_done()
1438 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_decrypt_done() local
1447 edesc->src_nents > 1 ? 100 : ivsize, 1); in skcipher_decrypt_done()
1461 ivsize); in skcipher_decrypt_done()
1470 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in xts_skcipher_ivsize() local
1472 return !!get_unaligned((u64 *)(req->iv + (ivsize / 2))); in xts_skcipher_ivsize()
1686 .ivsize = AES_BLOCK_SIZE,
1702 .ivsize = DES3_EDE_BLOCK_SIZE,
1718 .ivsize = DES_BLOCK_SIZE,
1734 .ivsize = AES_BLOCK_SIZE,
1754 .ivsize = CTR_RFC3686_IV_SIZE,
1776 .ivsize = AES_BLOCK_SIZE,
1792 .ivsize = CHACHA_IV_SIZE,
1810 .ivsize = 8,
1829 .ivsize = 8,
1849 .ivsize = 12,
1870 .ivsize = AES_BLOCK_SIZE,
1892 .ivsize = AES_BLOCK_SIZE,
1914 .ivsize = AES_BLOCK_SIZE,
1936 .ivsize = AES_BLOCK_SIZE,
1958 .ivsize = AES_BLOCK_SIZE,
1980 .ivsize = AES_BLOCK_SIZE,
2002 .ivsize = AES_BLOCK_SIZE,
2025 .ivsize = AES_BLOCK_SIZE,
2047 .ivsize = AES_BLOCK_SIZE,
2070 .ivsize = AES_BLOCK_SIZE,
2092 .ivsize = AES_BLOCK_SIZE,
2115 .ivsize = AES_BLOCK_SIZE,
2137 .ivsize = DES3_EDE_BLOCK_SIZE,
2159 .ivsize = DES3_EDE_BLOCK_SIZE,
2182 .ivsize = DES3_EDE_BLOCK_SIZE,
2205 .ivsize = DES3_EDE_BLOCK_SIZE,
2228 .ivsize = DES3_EDE_BLOCK_SIZE,
2251 .ivsize = DES3_EDE_BLOCK_SIZE,
2274 .ivsize = DES3_EDE_BLOCK_SIZE,
2297 .ivsize = DES3_EDE_BLOCK_SIZE,
2320 .ivsize = DES3_EDE_BLOCK_SIZE,
2343 .ivsize = DES3_EDE_BLOCK_SIZE,
2366 .ivsize = DES3_EDE_BLOCK_SIZE,
2389 .ivsize = DES3_EDE_BLOCK_SIZE,
2411 .ivsize = DES_BLOCK_SIZE,
2433 .ivsize = DES_BLOCK_SIZE,
2455 .ivsize = DES_BLOCK_SIZE,
2477 .ivsize = DES_BLOCK_SIZE,
2499 .ivsize = DES_BLOCK_SIZE,
2522 .ivsize = DES_BLOCK_SIZE,
2544 .ivsize = DES_BLOCK_SIZE,
2567 .ivsize = DES_BLOCK_SIZE,
2589 .ivsize = DES_BLOCK_SIZE,
2612 .ivsize = DES_BLOCK_SIZE,
2634 .ivsize = DES_BLOCK_SIZE,
2657 .ivsize = DES_BLOCK_SIZE,
2680 .ivsize = CTR_RFC3686_IV_SIZE,
2704 .ivsize = CTR_RFC3686_IV_SIZE,
2729 .ivsize = CTR_RFC3686_IV_SIZE,
2753 .ivsize = CTR_RFC3686_IV_SIZE,
2778 .ivsize = CTR_RFC3686_IV_SIZE,
2802 .ivsize = CTR_RFC3686_IV_SIZE,
2827 .ivsize = CTR_RFC3686_IV_SIZE,
2851 .ivsize = CTR_RFC3686_IV_SIZE,
2876 .ivsize = CTR_RFC3686_IV_SIZE,
2900 .ivsize = CTR_RFC3686_IV_SIZE,
2924 .ivsize = CHACHAPOLY_IV_SIZE,
2947 .ivsize = 8,
2971 .ivsize = CTR_RFC3686_IV_SIZE,
2995 .ivsize = CTR_RFC3686_IV_SIZE,