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()
655 unsigned int ivsize = crypto_aead_ivsize(aead); in gcm_set_sh_desc() local
679 cnstr_shdsc_gcm_encap(desc, &ctx->cdata, ivsize, ctx->authsize, true); in gcm_set_sh_desc()
699 cnstr_shdsc_gcm_decap(desc, &ctx->cdata, ivsize, ctx->authsize, true); in gcm_set_sh_desc()
747 unsigned int ivsize = crypto_aead_ivsize(aead); in rfc4106_set_sh_desc() local
772 cnstr_shdsc_rfc4106_encap(desc, &ctx->cdata, ivsize, ctx->authsize, in rfc4106_set_sh_desc()
792 cnstr_shdsc_rfc4106_decap(desc, &ctx->cdata, ivsize, ctx->authsize, in rfc4106_set_sh_desc()
848 unsigned int ivsize = crypto_aead_ivsize(aead); in rfc4543_set_sh_desc() local
873 cnstr_shdsc_rfc4543_encap(desc, &ctx->cdata, ivsize, ctx->authsize, in rfc4543_set_sh_desc()
893 cnstr_shdsc_rfc4543_decap(desc, &ctx->cdata, ivsize, ctx->authsize, in rfc4543_set_sh_desc()
952 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_setkey() local
966 cnstr_shdsc_skcipher_encap(desc, &ctx->cdata, ivsize, is_rfc3686, in skcipher_setkey()
976 cnstr_shdsc_skcipher_decap(desc, &ctx->cdata, ivsize, is_rfc3686, in skcipher_setkey()
1126 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_edesc_alloc() local
1186 ivsize > CAAM_QI_MEMCACHE_SIZE)) { in skcipher_edesc_alloc()
1188 qm_sg_ents, ivsize); in skcipher_edesc_alloc()
1206 memcpy(iv, req->iv, ivsize); in skcipher_edesc_alloc()
1208 iv_dma = dma_map_single(dev, iv, ivsize, DMA_BIDIRECTIONAL); in skcipher_edesc_alloc()
1222 dma_to_qm_sg_one(sg_table, iv_dma, ivsize, 0); in skcipher_edesc_alloc()
1229 ivsize, 0); in skcipher_edesc_alloc()
1236 iv_dma, ivsize, DMA_BIDIRECTIONAL, 0, 0); in skcipher_edesc_alloc()
1243 dpaa2_fl_set_len(in_fle, req->cryptlen + ivsize); in skcipher_edesc_alloc()
1244 dpaa2_fl_set_len(out_fle, req->cryptlen + ivsize); in skcipher_edesc_alloc()
1265 int ivsize = crypto_aead_ivsize(aead); in aead_unmap() local
1268 edesc->iv_dma, ivsize, DMA_TO_DEVICE, edesc->qm_sg_dma, in aead_unmap()
1277 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_unmap() local
1280 edesc->iv_dma, ivsize, DMA_BIDIRECTIONAL, edesc->qm_sg_dma, in skcipher_unmap()
1401 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_encrypt_done() local
1410 edesc->src_nents > 1 ? 100 : ivsize, 1); in skcipher_encrypt_done()
1424 ivsize); in skcipher_encrypt_done()
1439 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_decrypt_done() local
1448 edesc->src_nents > 1 ? 100 : ivsize, 1); in skcipher_decrypt_done()
1462 ivsize); in skcipher_decrypt_done()
1471 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in xts_skcipher_ivsize() local
1473 return !!get_unaligned((u64 *)(req->iv + (ivsize / 2))); in xts_skcipher_ivsize()
1687 .ivsize = AES_BLOCK_SIZE,
1703 .ivsize = DES3_EDE_BLOCK_SIZE,
1719 .ivsize = DES_BLOCK_SIZE,
1735 .ivsize = AES_BLOCK_SIZE,
1755 .ivsize = CTR_RFC3686_IV_SIZE,
1777 .ivsize = AES_BLOCK_SIZE,
1793 .ivsize = CHACHA_IV_SIZE,
1811 .ivsize = 8,
1830 .ivsize = 8,
1850 .ivsize = 12,
1871 .ivsize = AES_BLOCK_SIZE,
1893 .ivsize = AES_BLOCK_SIZE,
1915 .ivsize = AES_BLOCK_SIZE,
1937 .ivsize = AES_BLOCK_SIZE,
1959 .ivsize = AES_BLOCK_SIZE,
1981 .ivsize = AES_BLOCK_SIZE,
2003 .ivsize = AES_BLOCK_SIZE,
2026 .ivsize = AES_BLOCK_SIZE,
2048 .ivsize = AES_BLOCK_SIZE,
2071 .ivsize = AES_BLOCK_SIZE,
2093 .ivsize = AES_BLOCK_SIZE,
2116 .ivsize = AES_BLOCK_SIZE,
2138 .ivsize = DES3_EDE_BLOCK_SIZE,
2160 .ivsize = DES3_EDE_BLOCK_SIZE,
2183 .ivsize = DES3_EDE_BLOCK_SIZE,
2206 .ivsize = DES3_EDE_BLOCK_SIZE,
2229 .ivsize = DES3_EDE_BLOCK_SIZE,
2252 .ivsize = DES3_EDE_BLOCK_SIZE,
2275 .ivsize = DES3_EDE_BLOCK_SIZE,
2298 .ivsize = DES3_EDE_BLOCK_SIZE,
2321 .ivsize = DES3_EDE_BLOCK_SIZE,
2344 .ivsize = DES3_EDE_BLOCK_SIZE,
2367 .ivsize = DES3_EDE_BLOCK_SIZE,
2390 .ivsize = DES3_EDE_BLOCK_SIZE,
2412 .ivsize = DES_BLOCK_SIZE,
2434 .ivsize = DES_BLOCK_SIZE,
2456 .ivsize = DES_BLOCK_SIZE,
2478 .ivsize = DES_BLOCK_SIZE,
2500 .ivsize = DES_BLOCK_SIZE,
2523 .ivsize = DES_BLOCK_SIZE,
2545 .ivsize = DES_BLOCK_SIZE,
2568 .ivsize = DES_BLOCK_SIZE,
2590 .ivsize = DES_BLOCK_SIZE,
2613 .ivsize = DES_BLOCK_SIZE,
2635 .ivsize = DES_BLOCK_SIZE,
2658 .ivsize = DES_BLOCK_SIZE,
2681 .ivsize = CTR_RFC3686_IV_SIZE,
2705 .ivsize = CTR_RFC3686_IV_SIZE,
2730 .ivsize = CTR_RFC3686_IV_SIZE,
2754 .ivsize = CTR_RFC3686_IV_SIZE,
2779 .ivsize = CTR_RFC3686_IV_SIZE,
2803 .ivsize = CTR_RFC3686_IV_SIZE,
2828 .ivsize = CTR_RFC3686_IV_SIZE,
2852 .ivsize = CTR_RFC3686_IV_SIZE,
2877 .ivsize = CTR_RFC3686_IV_SIZE,
2901 .ivsize = CTR_RFC3686_IV_SIZE,
2925 .ivsize = CHACHAPOLY_IV_SIZE,
2948 .ivsize = 8,
2972 .ivsize = CTR_RFC3686_IV_SIZE,
2996 .ivsize = CTR_RFC3686_IV_SIZE,