/drivers/crypto/caam/ |
D | caamalg.c | 131 static inline void aead_append_ld_iv(u32 *desc, int ivsize) in aead_append_ld_iv() argument 134 LDST_CLASS_1_CCB | ivsize); in aead_append_ld_iv() 135 append_move(desc, MOVE_SRC_CLASS1CTX | MOVE_DEST_CLASS2INFIFO | ivsize); in aead_append_ld_iv() 341 ctx->authsize + tfm->ivsize); in aead_null_set_sh_desc() 443 append_math_sub_imm_u32(desc, REG2, SEQINLEN, IMM, tfm->ivsize); in aead_set_sh_desc() 451 aead_append_ld_iv(desc, tfm->ivsize); in aead_set_sh_desc() 500 ctx->authsize + tfm->ivsize); in aead_set_sh_desc() 509 aead_append_ld_iv(desc, tfm->ivsize); in aead_set_sh_desc() 553 NFIFOENTRY_PTYPE_RND | (tfm->ivsize << NFIFOENTRY_DLEN_SHIFT); in aead_set_sh_desc() 558 MOVE_DEST_CLASS1CTX | (tfm->ivsize << MOVE_LEN_SHIFT)); in aead_set_sh_desc() [all …]
|
/drivers/crypto/qce/ |
D | ablkcipher.c | 76 rctx->ivsize = crypto_ablkcipher_ivsize(ablkcipher); in qce_ablkcipher_async_req_handle() 266 unsigned int ivsize; member 277 .ivsize = AES_BLOCK_SIZE, 286 .ivsize = AES_BLOCK_SIZE, 295 .ivsize = AES_BLOCK_SIZE, 304 .ivsize = AES_BLOCK_SIZE, 313 .ivsize = 0, 322 .ivsize = DES_BLOCK_SIZE, 331 .ivsize = 0, 340 .ivsize = DES3_EDE_BLOCK_SIZE, [all …]
|
D | common.c | 180 static void qce_xts_swapiv(__be32 *dst, const u8 *src, unsigned int ivsize) in qce_xts_swapiv() argument 185 if (ivsize > QCE_AES_IV_LENGTH) in qce_xts_swapiv() 190 for (i = (QCE_AES_IV_LENGTH - ivsize), j = ivsize - 1; in qce_xts_swapiv() 328 unsigned int ivsize = rctx->ivsize; in qce_setup_regs_ablkcipher() local 364 qce_xts_swapiv(enciv, rctx->iv, ivsize); in qce_setup_regs_ablkcipher() 366 qce_cpu_to_be32p_array(enciv, rctx->iv, ivsize); in qce_setup_regs_ablkcipher()
|
D | cipher.h | 47 unsigned int ivsize; member
|
/drivers/crypto/ |
D | ixp4xx_crypto.c | 870 unsigned ivsize = crypto_ablkcipher_ivsize(tfm); in ablk_perform() local 900 BUG_ON(ivsize && !req->info); in ablk_perform() 901 memcpy(crypt->iv, req->info, ivsize); in ablk_perform() 994 unsigned ivsize = crypto_aead_ivsize(tfm); in aead_perform() local 1032 crypt->auth_len = req->assoclen + ivsize + cryptlen; in aead_perform() 1033 BUG_ON(ivsize && !req->iv); in aead_perform() 1034 memcpy(crypt->iv, req->iv, ivsize); in aead_perform() 1049 sg_set_buf(&req_ctx->ivlist, iv, ivsize); in aead_perform() 1050 buf = chainup_buffers(dev, &req_ctx->ivlist, ivsize, buf, flags, in aead_perform() 1175 unsigned ivsize = crypto_aead_ivsize(crypto_aead_reqtfm(req)); in aead_encrypt() local [all …]
|
D | picoxcell_crypto.c | 327 unsigned ivsize = crypto_aead_ivsize(crypto_aead_reqtfm(areq)); in spacc_aead_make_ddts() local 364 iv_addr = dma_map_single(engine->dev, iv, ivsize, in spacc_aead_make_ddts() 378 ddt_set(src_ddt++, iv_addr, ivsize); in spacc_aead_make_ddts() 381 ddt_set(dst_ddt++, iv_addr, ivsize); in spacc_aead_make_ddts() 411 unsigned ivsize = alg->alg.cra_aead.ivsize; in spacc_aead_free_ddts() local 425 dma_unmap_single(engine->dev, req->giv_pa, ivsize, DMA_BIDIRECTIONAL); in spacc_aead_free_ddts() 608 ctx->cipher_key_len, aead_req->iv, alg->cra_aead.ivsize, in spacc_aead_submit() 689 unsigned ivsize = crypto_aead_ivsize(crypto_aead_reqtfm(req)); in spacc_aead_setup() local 692 dev_req->giv_len = ivsize; in spacc_aead_setup() 741 size_t ivsize = crypto_aead_ivsize(tfm); in spacc_aead_givencrypt() local [all …]
|
D | talitos.c | 953 unsigned int ivsize = crypto_aead_ivsize(aead); in ipsec_esp() local 962 desc->ptr[1].len = cpu_to_be16(areq->assoclen + ivsize); in ipsec_esp() 980 tbl_ptr->len = cpu_to_be16(ivsize); in ipsec_esp() 996 desc->ptr[2].len = cpu_to_be16(ivsize); in ipsec_esp() 999 dma_sync_single_for_device(dev, edesc->iv_dma, ivsize, DMA_TO_DEVICE); in ipsec_esp() 1081 map_single_talitos_ptr(dev, &desc->ptr[6], ivsize, ctx->iv, 0, in ipsec_esp() 1123 unsigned int ivsize, in talitos_edesc_alloc() argument 1140 if (ivsize) in talitos_edesc_alloc() 1141 iv_dma = dma_map_single(dev, iv, ivsize, DMA_TO_DEVICE); in talitos_edesc_alloc() 1197 dma_unmap_single(dev, iv_dma, ivsize, DMA_TO_DEVICE); in talitos_edesc_alloc() [all …]
|
D | atmel-tdes.c | 951 .ivsize = DES_BLOCK_SIZE, 972 .ivsize = DES_BLOCK_SIZE, 993 .ivsize = DES_BLOCK_SIZE, 1014 .ivsize = DES_BLOCK_SIZE, 1035 .ivsize = DES_BLOCK_SIZE, 1056 .ivsize = DES_BLOCK_SIZE, 1097 .ivsize = DES_BLOCK_SIZE, 1118 .ivsize = DES_BLOCK_SIZE, 1139 .ivsize = DES_BLOCK_SIZE, 1160 .ivsize = DES_BLOCK_SIZE, [all …]
|
D | hifn_795x.c | 658 unsigned int ivsize; member 1126 u8 *key, int keylen, u8 *iv, int ivsize, u16 mode) in hifn_setup_crypto_command() argument 1155 if (ivsize) { in hifn_setup_crypto_command() 1156 memcpy(buf_pos, iv, ivsize); in hifn_setup_crypto_command() 1157 buf_pos += ivsize; in hifn_setup_crypto_command() 1255 rctx->iv, rctx->ivsize, md); in hifn_setup_cmd_desc() 1585 if (rctx->iv && !rctx->ivsize && rctx->mode != ACRYPTO_MODE_ECB) in hifn_setup_session() 1637 dev->name, rctx->iv, rctx->ivsize, in hifn_setup_session() 1663 rctx.ivsize = 0; in hifn_test() 2102 unsigned ivsize; in hifn_setup_crypto_req() local [all …]
|
D | atmel-aes.c | 983 .ivsize = AES_BLOCK_SIZE, 1004 .ivsize = AES_BLOCK_SIZE, 1025 .ivsize = AES_BLOCK_SIZE, 1046 .ivsize = AES_BLOCK_SIZE, 1067 .ivsize = AES_BLOCK_SIZE, 1088 .ivsize = AES_BLOCK_SIZE, 1109 .ivsize = AES_BLOCK_SIZE, 1132 .ivsize = AES_BLOCK_SIZE,
|
D | n2_core.c | 1157 .ivsize = DES_BLOCK_SIZE, 1199 .ivsize = DES_BLOCK_SIZE, 1240 .ivsize = AES_BLOCK_SIZE, 1254 .ivsize = AES_BLOCK_SIZE,
|
D | omap-des.c | 822 .ivsize = DES_BLOCK_SIZE, 867 .ivsize = DES_BLOCK_SIZE,
|
D | omap-aes.c | 872 .ivsize = AES_BLOCK_SIZE, 899 .ivsize = AES_BLOCK_SIZE,
|
D | padlock-aes.c | 496 .ivsize = AES_BLOCK_SIZE,
|
D | geode-aes.c | 411 .ivsize = AES_BLOCK_SIZE,
|
D | s5p-sss.c | 633 .ivsize = AES_BLOCK_SIZE,
|
/drivers/crypto/ccp/ |
D | ccp-crypto-aes.c | 266 unsigned int ivsize; member 276 .ivsize = 0, 284 .ivsize = AES_BLOCK_SIZE, 292 .ivsize = AES_BLOCK_SIZE, 300 .ivsize = AES_BLOCK_SIZE, 308 .ivsize = AES_BLOCK_SIZE, 316 .ivsize = CTR_RFC3686_IV_SIZE, 343 alg->cra_ablkcipher.ivsize = def->ivsize; in ccp_register_aes_alg()
|
D | ccp-crypto-aes-xts.c | 257 alg->cra_ablkcipher.ivsize = AES_BLOCK_SIZE; in ccp_register_aes_xts_alg()
|
/drivers/usb/wusbcore/ |
D | crypto.c | 211 size_t ivsize, dst_size; in wusb_ccm_mac() local 236 ivsize = crypto_blkcipher_ivsize(tfm_cbc); in wusb_ccm_mac() 237 memset(iv, 0, ivsize); in wusb_ccm_mac()
|
/drivers/crypto/nx/ |
D | nx-aes-ctr.c | 167 .ivsize = AES_BLOCK_SIZE, 188 .ivsize = CTR_RFC3686_IV_SIZE,
|
D | nx-aes-cbc.c | 153 .ivsize = AES_BLOCK_SIZE,
|
D | nx-aes-gcm.c | 488 .ivsize = AES_BLOCK_SIZE, 509 .ivsize = 8,
|
D | nx-aes-ccm.c | 581 .ivsize = AES_BLOCK_SIZE, 603 .ivsize = 8,
|
/drivers/crypto/qat/qat_common/ |
D | qat_algs.c | 907 .ivsize = AES_BLOCK_SIZE, 929 .ivsize = AES_BLOCK_SIZE, 951 .ivsize = AES_BLOCK_SIZE,
|
/drivers/crypto/ux500/cryp/ |
D | cryp_core.c | 1179 .ivsize = AES_BLOCK_SIZE, 1205 .ivsize = AES_BLOCK_SIZE, 1357 .ivsize = DES3_EDE_BLOCK_SIZE,
|