/drivers/crypto/caam/ |
D | caamalg.c | 136 static inline void aead_append_ld_iv(u32 *desc, int ivsize) in aead_append_ld_iv() argument 139 LDST_CLASS_1_CCB | ivsize); in aead_append_ld_iv() 140 append_move(desc, MOVE_SRC_CLASS1CTX | MOVE_DEST_CLASS2INFIFO | ivsize); in aead_append_ld_iv() 257 append_math_sub_imm_u32(desc, REG2, SEQINLEN, IMM, tfm->ivsize); in aead_set_sh_desc() 265 aead_append_ld_iv(desc, tfm->ivsize); in aead_set_sh_desc() 325 ctx->authsize + tfm->ivsize) in aead_set_sh_desc() 334 aead_append_ld_iv(desc, tfm->ivsize); in aead_set_sh_desc() 378 NFIFOENTRY_PTYPE_RND | (tfm->ivsize << NFIFOENTRY_DLEN_SHIFT); in aead_set_sh_desc() 383 MOVE_DEST_CLASS1CTX | (tfm->ivsize << MOVE_LEN_SHIFT)); in aead_set_sh_desc() 388 MOVE_DEST_OUTFIFO | (tfm->ivsize << MOVE_LEN_SHIFT)); in aead_set_sh_desc() [all …]
|
/drivers/crypto/ |
D | ixp4xx_crypto.c | 882 unsigned ivsize = crypto_ablkcipher_ivsize(tfm); in ablk_perform() local 911 BUG_ON(ivsize && !req->info); in ablk_perform() 912 memcpy(crypt->iv, req->info, ivsize); in ablk_perform() 1006 unsigned ivsize = crypto_aead_ivsize(tfm); in aead_perform() local 1043 crypt->auth_len = req->assoclen + ivsize + cryptlen; in aead_perform() 1044 BUG_ON(ivsize && !req->iv); in aead_perform() 1045 memcpy(crypt->iv, req->iv, ivsize); in aead_perform() 1060 sg_set_buf(&req_ctx->ivlist, iv, ivsize); in aead_perform() 1061 buf = chainup_buffers(dev, &req_ctx->ivlist, ivsize, buf, flags, in aead_perform() 1194 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() 624 ctx->cipher_key_len, aead_req->iv, alg->cra_aead.ivsize, in spacc_aead_submit() 705 unsigned ivsize = crypto_aead_ivsize(crypto_aead_reqtfm(req)); in spacc_aead_setup() local 708 dev_req->giv_len = ivsize; in spacc_aead_setup() 757 size_t ivsize = crypto_aead_ivsize(tfm); in spacc_aead_givencrypt() local [all …]
|
D | talitos.c | 960 unsigned int ivsize = crypto_aead_ivsize(aead); in ipsec_esp() local 969 desc->ptr[1].len = cpu_to_be16(areq->assoclen + ivsize); in ipsec_esp() 987 tbl_ptr->len = cpu_to_be16(ivsize); in ipsec_esp() 999 desc->ptr[2].len = cpu_to_be16(ivsize); in ipsec_esp() 1002 dma_sync_single_for_device(dev, edesc->iv_dma, ivsize, DMA_TO_DEVICE); in ipsec_esp() 1084 map_single_talitos_ptr(dev, &desc->ptr[6], ivsize, ctx->iv, 0, in ipsec_esp() 1184 unsigned int ivsize, in talitos_edesc_alloc() argument 1201 iv_dma = dma_map_single(dev, iv, ivsize, DMA_TO_DEVICE); in talitos_edesc_alloc() 1253 dma_unmap_single(dev, iv_dma, ivsize, DMA_TO_DEVICE); in talitos_edesc_alloc() 1279 unsigned int ivsize = crypto_aead_ivsize(authenc); in aead_edesc_alloc() local [all …]
|
D | atmel-tdes.c | 959 .ivsize = DES_BLOCK_SIZE, 980 .ivsize = DES_BLOCK_SIZE, 1001 .ivsize = DES_BLOCK_SIZE, 1022 .ivsize = DES_BLOCK_SIZE, 1043 .ivsize = DES_BLOCK_SIZE, 1064 .ivsize = DES_BLOCK_SIZE, 1105 .ivsize = DES_BLOCK_SIZE, 1126 .ivsize = DES_BLOCK_SIZE, 1147 .ivsize = DES_BLOCK_SIZE, 1168 .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 | 984 .ivsize = AES_BLOCK_SIZE, 1005 .ivsize = AES_BLOCK_SIZE, 1026 .ivsize = AES_BLOCK_SIZE, 1047 .ivsize = AES_BLOCK_SIZE, 1068 .ivsize = AES_BLOCK_SIZE, 1089 .ivsize = AES_BLOCK_SIZE, 1110 .ivsize = AES_BLOCK_SIZE, 1133 .ivsize = AES_BLOCK_SIZE,
|
D | n2_core.c | 1160 .ivsize = DES_BLOCK_SIZE, 1202 .ivsize = DES_BLOCK_SIZE, 1243 .ivsize = AES_BLOCK_SIZE, 1257 .ivsize = AES_BLOCK_SIZE,
|
D | tegra-aes.c | 843 .ivsize = AES_MIN_KEY_SIZE, 859 .ivsize = AES_MIN_KEY_SIZE,
|
D | omap-aes.c | 894 .ivsize = AES_BLOCK_SIZE, 921 .ivsize = AES_BLOCK_SIZE,
|
D | padlock-aes.c | 496 .ivsize = AES_BLOCK_SIZE,
|
D | geode-aes.c | 411 .ivsize = AES_IV_LENGTH,
|
D | s5p-sss.c | 553 .ivsize = AES_BLOCK_SIZE,
|
D | sahara.c | 792 .ivsize = AES_BLOCK_SIZE,
|
D | mv_cesa.c | 968 .ivsize = AES_BLOCK_SIZE,
|
/drivers/usb/wusbcore/ |
D | crypto.c | 211 size_t ivsize, dst_size; in wusb_ccm_mac() local 238 ivsize = crypto_blkcipher_ivsize(tfm_cbc); in wusb_ccm_mac() 239 memset(iv, 0, ivsize); in wusb_ccm_mac()
|
/drivers/crypto/nx/ |
D | nx-aes-ctr.c | 149 .ivsize = AES_BLOCK_SIZE, 170 .ivsize = CTR_RFC3686_IV_SIZE,
|
D | nx-aes-gcm.c | 322 .ivsize = AES_BLOCK_SIZE, 343 .ivsize = 8,
|
D | nx-aes-cbc.c | 136 .ivsize = AES_BLOCK_SIZE,
|
D | nx-aes-ccm.c | 436 .ivsize = AES_BLOCK_SIZE, 458 .ivsize = 8,
|
/drivers/crypto/ux500/cryp/ |
D | cryp_core.c | 1164 .ivsize = AES_BLOCK_SIZE, 1190 .ivsize = AES_BLOCK_SIZE, 1342 .ivsize = DES3_EDE_BLOCK_SIZE,
|
/drivers/crypto/amcc/ |
D | crypto4xx_core.c | 1144 .ivsize = AES_IV_SIZE,
|
/drivers/staging/sep/ |
D | sep_crypto.c | 3807 .ivsize = AES_BLOCK_SIZE, 3848 .ivsize = DES_BLOCK_SIZE,
|