/linux-master/crypto/ |
H A D | echainiv.c | 34 unsigned int ivsize = crypto_aead_ivsize(geniv); local 37 if (req->cryptlen < ivsize) 65 memcpy(&nseqno, info + ivsize - 8, 8); 67 memset(info, 0, ivsize); 69 scatterwalk_map_and_copy(info, req->dst, req->assoclen, ivsize, 1); 74 memcpy(&a, ctx->salt + ivsize - 8, 8); 79 memcpy(info + ivsize - 8, &a, 8); 80 } while ((ivsize -= 8)); 92 unsigned int ivsize = crypto_aead_ivsize(geniv); local 94 if (req->cryptlen < ivsize) [all...] |
H A D | seqiv.c | 55 unsigned int ivsize = 8; local 58 if (req->cryptlen < ivsize) 84 info = kmemdup(req->iv, ivsize, req->base.flags & 96 req->cryptlen - ivsize, info); 97 aead_request_set_ad(subreq, req->assoclen + ivsize); 99 crypto_xor(info, ctx->salt, ivsize); 100 scatterwalk_map_and_copy(info, req->dst, req->assoclen, ivsize, 1); 115 unsigned int ivsize = 8; local 117 if (req->cryptlen < ivsize + crypto_aead_authsize(geniv)) 127 req->cryptlen - ivsize, re [all...] |
H A D | geniv.c | 47 unsigned int ivsize; local 69 ivsize = crypto_aead_alg_ivsize(alg); 73 if (ivsize < sizeof(u64)) 94 inst->alg.ivsize = ivsize;
|
H A D | essiv.c | 206 int ivsize = crypto_aead_ivsize(tfm); local 207 int ssize = req->assoclen - ivsize; 218 memcpy(iv, req->iv, ivsize); 238 sg_set_buf(rctx->sg + 1, iv, ivsize); 415 int ivsize) 430 if (ivsize != alg->cra_blocksize) 457 int ivsize; local 495 ivsize = skcipher_alg->ivsize; 519 ivsize 413 essiv_supported_algorithms(const char *essiv_cipher_name, struct shash_alg *hash_alg, int ivsize) argument [all...] |
H A D | chacha_generic.c | 80 .ivsize = CHACHA_IV_SIZE, 95 .ivsize = XCHACHA_IV_SIZE, 110 .ivsize = XCHACHA_IV_SIZE,
|
/linux-master/drivers/crypto/caam/ |
H A D | caamalg_desc.h | 58 struct alginfo *adata, unsigned int ivsize, 64 struct alginfo *adata, unsigned int ivsize, 70 struct alginfo *adata, unsigned int ivsize, 76 unsigned int ivsize, unsigned int icvsize, 80 unsigned int ivsize, unsigned int icvsize, 84 unsigned int ivsize, unsigned int icvsize, 88 unsigned int ivsize, unsigned int icvsize, 92 unsigned int ivsize, unsigned int icvsize, 96 unsigned int ivsize, unsigned int icvsize, 100 struct alginfo *adata, unsigned int ivsize, [all...] |
H A D | caamalg_qi.c | 90 unsigned int ivsize = crypto_aead_ivsize(aead); local 150 ivsize, ctx->authsize, is_rfc3686, nonce, 165 ivsize, ctx->authsize, alg->caam.geniv, 183 ivsize, ctx->authsize, is_rfc3686, nonce, 308 unsigned int ivsize = crypto_aead_ivsize(aead); local 327 cnstr_shdsc_gcm_encap(ctx->sh_desc_enc, &ctx->cdata, ivsize, 342 cnstr_shdsc_gcm_decap(ctx->sh_desc_dec, &ctx->cdata, ivsize, 411 unsigned int ivsize = crypto_aead_ivsize(aead); local 431 cnstr_shdsc_rfc4106_encap(ctx->sh_desc_enc, &ctx->cdata, ivsize, 445 cnstr_shdsc_rfc4106_decap(ctx->sh_desc_dec, &ctx->cdata, ivsize, 519 unsigned int ivsize = crypto_aead_ivsize(aead); local 630 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); local 872 caam_unmap(struct device *dev, struct scatterlist *src, struct scatterlist *dst, int src_nents, int dst_nents, dma_addr_t iv_dma, int ivsize, enum dma_data_direction iv_dir, dma_addr_t qm_sg_dma, int qm_sg_bytes) argument 898 int ivsize = crypto_aead_ivsize(aead); local 910 int ivsize = crypto_skcipher_ivsize(skcipher); local 955 int ivsize = 0; local 1223 int ivsize = crypto_skcipher_ivsize(skcipher); local 1266 int ivsize = crypto_skcipher_ivsize(skcipher); local 1415 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); local [all...] |
H A D | caamalg_desc.c | 280 * @ivsize: initialization vector size 289 struct alginfo *adata, unsigned int ivsize, 315 append_seq_load(desc, ivsize, LDST_CLASS_1_CCB | 374 * @ivsize: initialization vector size 384 struct alginfo *adata, unsigned int ivsize, 411 append_seq_load(desc, ivsize, LDST_CLASS_1_CCB | 421 ivsize); 429 ivsize); 443 append_seq_load(desc, ivsize, LDST_CLASS_1_CCB | 447 (ctx1_iv_off << MOVE_OFFSET_SHIFT) | ivsize); 288 cnstr_shdsc_aead_encap(u32 * const desc, struct alginfo *cdata, struct alginfo *adata, unsigned int ivsize, unsigned int icvsize, const bool is_rfc3686, u32 *nonce, const u32 ctx1_iv_off, const bool is_qi, int era) argument 383 cnstr_shdsc_aead_decap(u32 * const desc, struct alginfo *cdata, struct alginfo *adata, unsigned int ivsize, unsigned int icvsize, const bool geniv, const bool is_rfc3686, u32 *nonce, const u32 ctx1_iv_off, const bool is_qi, int era) argument 500 cnstr_shdsc_aead_givencap(u32 * const desc, struct alginfo *cdata, struct alginfo *adata, unsigned int ivsize, unsigned int icvsize, const bool is_rfc3686, u32 *nonce, const u32 ctx1_iv_off, const bool is_qi, int era) argument 634 cnstr_shdsc_gcm_encap(u32 * const desc, struct alginfo *cdata, unsigned int ivsize, unsigned int icvsize, const bool is_qi) argument 761 cnstr_shdsc_gcm_decap(u32 * const desc, struct alginfo *cdata, unsigned int ivsize, unsigned int icvsize, const bool is_qi) argument 861 cnstr_shdsc_rfc4106_encap(u32 * const desc, struct alginfo *cdata, unsigned int ivsize, unsigned int icvsize, const bool is_qi) argument 968 cnstr_shdsc_rfc4106_decap(u32 * const desc, struct alginfo *cdata, unsigned int ivsize, unsigned int icvsize, const bool is_qi) argument 1063 cnstr_shdsc_rfc4543_encap(u32 * const desc, struct alginfo *cdata, unsigned int ivsize, unsigned int icvsize, const bool is_qi) argument 1146 cnstr_shdsc_rfc4543_decap(u32 * const desc, struct alginfo *cdata, unsigned int ivsize, unsigned int icvsize, const bool is_qi) argument 1240 cnstr_shdsc_chachapoly(u32 * const desc, struct alginfo *cdata, struct alginfo *adata, unsigned int ivsize, unsigned int icvsize, const bool encap, const bool is_qi) argument 1378 cnstr_shdsc_skcipher_encap(u32 * const desc, struct alginfo *cdata, unsigned int ivsize, const bool is_rfc3686, const u32 ctx1_iv_off) argument 1454 cnstr_shdsc_skcipher_decap(u32 * const desc, struct alginfo *cdata, unsigned int ivsize, const bool is_rfc3686, const u32 ctx1_iv_off) argument [all...] |
H A D | caamalg.c | 195 unsigned int ivsize = crypto_aead_ivsize(aead); local 265 cnstr_shdsc_aead_encap(desc, &ctx->cdata, &ctx->adata, ivsize, 287 cnstr_shdsc_aead_decap(desc, &ctx->cdata, &ctx->adata, ivsize, 311 cnstr_shdsc_aead_givencap(desc, &ctx->cdata, &ctx->adata, ivsize, 336 unsigned int ivsize = crypto_aead_ivsize(aead); local 358 cnstr_shdsc_gcm_encap(desc, &ctx->cdata, ivsize, ctx->authsize, false); 375 cnstr_shdsc_gcm_decap(desc, &ctx->cdata, ivsize, ctx->authsize, false); 401 unsigned int ivsize = crypto_aead_ivsize(aead); local 423 cnstr_shdsc_rfc4106_encap(desc, &ctx->cdata, ivsize, ctx->authsize, 441 cnstr_shdsc_rfc4106_decap(desc, &ctx->cdata, ivsize, ct 469 unsigned int ivsize = crypto_aead_ivsize(aead); local 535 unsigned int ivsize = crypto_aead_ivsize(aead); local 572 unsigned int ivsize = crypto_aead_ivsize(aead); local 747 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); local 936 caam_unmap(struct device *dev, struct scatterlist *src, struct scatterlist *dst, int src_nents, int dst_nents, dma_addr_t iv_dma, int ivsize, dma_addr_t sec4_sg_dma, int sec4_sg_bytes) argument 971 int ivsize = crypto_skcipher_ivsize(skcipher); local 1026 int ivsize = crypto_skcipher_ivsize(skcipher); local 1138 unsigned int ivsize = crypto_aead_ivsize(aead); local 1167 unsigned int ivsize = crypto_aead_ivsize(aead); local 1204 unsigned int ivsize = crypto_aead_ivsize(aead); local 1256 int ivsize = crypto_skcipher_ivsize(skcipher); local 1625 int ivsize = crypto_skcipher_ivsize(skcipher); local 1805 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); local [all...] |
H A D | caamalg_qi2.c | 152 int dst_nents, dma_addr_t iv_dma, int ivsize, 166 dma_unmap_single(dev, iv_dma, ivsize, iv_dir); 177 unsigned int ivsize = crypto_aead_ivsize(aead); local 242 ivsize, ctx->authsize, is_rfc3686, 247 ivsize, ctx->authsize, is_rfc3686, nonce, 268 ivsize, ctx->authsize, alg->caam.geniv, 368 int ivsize = 0; local 448 ivsize = crypto_aead_ivsize(aead); 462 qm_sg_nents = 1 + !!ivsize + mapped_src_nents; 467 1 + !!ivsize 150 caam_unmap(struct device *dev, struct scatterlist *src, struct scatterlist *dst, int src_nents, int dst_nents, dma_addr_t iv_dma, int ivsize, enum dma_data_direction iv_dir, dma_addr_t qm_sg_dma, int qm_sg_bytes) argument 593 unsigned int ivsize = crypto_aead_ivsize(aead); local 638 unsigned int ivsize = crypto_aead_ivsize(aead); local 655 unsigned int ivsize = crypto_aead_ivsize(aead); local 747 unsigned int ivsize = crypto_aead_ivsize(aead); local 848 unsigned int ivsize = crypto_aead_ivsize(aead); local 952 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); local 1126 int ivsize = crypto_skcipher_ivsize(skcipher); local 1265 int ivsize = crypto_aead_ivsize(aead); local 1277 int ivsize = crypto_skcipher_ivsize(skcipher); local 1401 int ivsize = crypto_skcipher_ivsize(skcipher); local 1439 int ivsize = crypto_skcipher_ivsize(skcipher); local 1471 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); local [all...] |
/linux-master/drivers/crypto/cavium/nitrox/ |
H A D | nitrox_skcipher.c | 84 int ivsize = crypto_skcipher_ivsize(cipher); local 85 unsigned int start = skreq->cryptlen - ivsize; 93 scatterwalk_map_and_copy(skreq->iv, skreq->dst, start, ivsize, 98 ivsize, 0); 100 memcpy(skreq->iv, nkreq->iv_out, ivsize); 208 static int alloc_src_sglist(struct skcipher_request *skreq, int ivsize) argument 215 ret = alloc_src_req_buf(nkreq, nents, ivsize); 219 nitrox_creq_copy_iv(nkreq->src, skreq->iv, ivsize); 220 nitrox_creq_set_src_sg(nkreq, nents, ivsize, skreq->src, 226 static int alloc_dst_sglist(struct skcipher_request *skreq, int ivsize) argument 252 int ivsize = crypto_skcipher_ivsize(cipher); local 294 int ivsize = crypto_skcipher_ivsize(cipher); local [all...] |
H A D | nitrox_aead.c | 94 struct scatterlist *src, char *iv, int ivsize, 106 ret = alloc_src_req_buf(nkreq, nents, ivsize); 110 nitrox_creq_copy_iv(nkreq->src, iv, ivsize); 111 nitrox_creq_set_src_sg(nkreq, nents, ivsize, src, buflen); 117 struct scatterlist *dst, int ivsize, int buflen) 136 nitrox_creq_set_dst_sg(nkreq, nents, ivsize, dst, buflen); 167 creq->gph.param2 = cpu_to_be16(rctx->ivsize + rctx->assoclen); 169 param3.auth_offset = rctx->ivsize; 175 ret = alloc_src_sglist(&rctx->nkreq, rctx->src, rctx->iv, rctx->ivsize, 180 ret = alloc_dst_sglist(&rctx->nkreq, rctx->dst, rctx->ivsize, 93 alloc_src_sglist(struct nitrox_kcrypt_request *nkreq, struct scatterlist *src, char *iv, int ivsize, int buflen) argument 116 alloc_dst_sglist(struct nitrox_kcrypt_request *nkreq, struct scatterlist *dst, int ivsize, int buflen) argument [all...] |
H A D | nitrox_req.h | 227 * @ivsize: IV data length 241 int ivsize; member in struct:nitrox_aead_rctx 621 int nents, int ivsize) 625 nkreq->src = alloc_req_buf(nents, ivsize, creq->gfp); 637 static inline struct scatterlist *nitrox_creq_src_sg(char *iv, int ivsize) argument 639 return (struct scatterlist *)(iv + ivsize); 643 int nents, int ivsize, 650 creq->src = nitrox_creq_src_sg(iv, ivsize); 661 sg = create_single_sg(sg, iv, ivsize); 701 int nents, int ivsize, 620 alloc_src_req_buf(struct nitrox_kcrypt_request *nkreq, int nents, int ivsize) argument 642 nitrox_creq_set_src_sg(struct nitrox_kcrypt_request *nkreq, int nents, int ivsize, struct scatterlist *src, int buflen) argument 700 nitrox_creq_set_dst_sg(struct nitrox_kcrypt_request *nkreq, int nents, int ivsize, struct scatterlist *dst, int buflen) argument [all...] |
/linux-master/drivers/crypto/qce/ |
H A D | cipher.h | 24 * @ivsize: IV size 37 unsigned int ivsize; member in struct:qce_cipher_reqctx
|
H A D | aead.h | 29 unsigned int ivsize; member in struct:qce_aead_reqctx
|
H A D | skcipher.c | 59 memcpy(rctx->iv, result_buf->encr_cntr_iv, rctx->ivsize); 78 rctx->ivsize = crypto_skcipher_ivsize(skcipher); 355 unsigned int ivsize; member in struct:qce_skcipher_def 366 .ivsize = 0, 375 .ivsize = AES_BLOCK_SIZE, 385 .ivsize = AES_BLOCK_SIZE, 394 .ivsize = AES_BLOCK_SIZE, 403 .ivsize = 0, 412 .ivsize = DES_BLOCK_SIZE, 421 .ivsize [all...] |
/linux-master/drivers/crypto/rockchip/ |
H A D | rk3288_crypto_skcipher.c | 306 int ivsize = crypto_skcipher_ivsize(tfm); local 324 ivsize = crypto_skcipher_ivsize(tfm); 327 offset = areq->cryptlen - ivsize; 329 offset, ivsize, 0); 344 offset = sgs->length - ivsize; 345 scatterwalk_map_and_copy(biv, sgs, offset, ivsize, 0); 367 if (ivsize) { 368 if (ivsize == DES_BLOCK_SIZE) 369 memcpy_toio(rkc->reg + RK_CRYPTO_TDES_IV_0, ivtouse, ivsize); 371 memcpy_toio(rkc->reg + RK_CRYPTO_AES_IV_0, ivtouse, ivsize); [all...] |
/linux-master/drivers/crypto/ccree/ |
H A D | cc_buffer_mgr.h | 45 unsigned int ivsize, unsigned int nbytes, 49 void cc_unmap_cipher_request(struct device *dev, void *ctx, unsigned int ivsize,
|
H A D | cc_cipher.c | 512 unsigned int ivsize, struct cc_hw_desc desc[], 534 set_dout_dlli(&desc[*seq_size], iv_dma_addr, ivsize, NS_BIT, 1); 568 unsigned int ivsize, unsigned int nbytes, 588 set_din_type(&desc[*seq_size], DMA_DLLI, iv_dma_addr, ivsize, 612 unsigned int ivsize, unsigned int nbytes, 865 unsigned int ivsize = crypto_skcipher_ivsize(sk_tfm); local 869 cc_unmap_cipher_request(dev, req_ctx, ivsize, src, dst); 870 memcpy(req->iv, req_ctx->iv, ivsize); 883 unsigned int ivsize = crypto_skcipher_ivsize(sk_tfm); local 927 req_ctx->iv = kmemdup(iv, ivsize, flag 510 cc_setup_readiv_desc(struct crypto_tfm *tfm, struct cipher_req_ctx *req_ctx, unsigned int ivsize, struct cc_hw_desc desc[], unsigned int *seq_size) argument 566 cc_setup_state_desc(struct crypto_tfm *tfm, struct cipher_req_ctx *req_ctx, unsigned int ivsize, unsigned int nbytes, struct cc_hw_desc desc[], unsigned int *seq_size) argument 610 cc_setup_xex_state_desc(struct crypto_tfm *tfm, struct cipher_req_ctx *req_ctx, unsigned int ivsize, unsigned int nbytes, struct cc_hw_desc desc[], unsigned int *seq_size) argument [all...] |
/linux-master/drivers/crypto/allwinner/sun8i-ss/ |
H A D | sun8i-ss-cipher.c | 129 unsigned int ivsize = crypto_skcipher_ivsize(tfm); local 135 rctx->ivlen = ivsize; 137 offset = areq->cryptlen - ivsize; 139 ivsize, 0); 149 memcpy(sf->iv[0], areq->iv, ivsize); 150 a = dma_map_single(ss->dev, sf->iv[i], ivsize, DMA_TO_DEVICE); 152 memzero_explicit(sf->iv[i], ivsize); 165 offset = sg->length - ivsize; 166 scatterwalk_map_and_copy(sf->iv[i], sg, offset, ivsize, 0); 176 dma_unmap_single(ss->dev, rctx->p_iv[i], ivsize, DMA_TO_DEVIC 193 unsigned int todo, len, offset, ivsize; local [all...] |
/linux-master/drivers/crypto/allwinner/sun8i-ce/ |
H A D | sun8i-ce-cipher.c | 132 unsigned int todo, len, offset, ivsize; local 195 ivsize = crypto_skcipher_ivsize(tfm); 197 rctx->ivlen = ivsize; 199 offset = areq->cryptlen - ivsize; 201 offset, ivsize, 0); 203 memcpy(chan->bounce_iv, areq->iv, ivsize); 282 if (areq->iv && ivsize > 0) { 285 offset = areq->cryptlen - ivsize; 287 memcpy(areq->iv, chan->backup_iv, ivsize); 288 memzero_explicit(chan->backup_iv, ivsize); 312 unsigned int ivsize, offset; local [all...] |
/linux-master/drivers/crypto/amlogic/ |
H A D | amlogic-gxl-cipher.c | 99 unsigned int keyivlen, ivsize, offset, tloffset; local 129 ivsize = crypto_skcipher_ivsize(tfm); 130 if (areq->iv && ivsize > 0) { 131 if (ivsize > areq->cryptlen) { 132 dev_err(mc->dev, "invalid ivsize=%d vs len=%d\n", ivsize, areq->cryptlen); 136 memcpy(bkeyiv + 32, areq->iv, ivsize); 139 backup_iv = kzalloc(ivsize, GFP_KERNEL); 144 offset = areq->cryptlen - ivsize; 146 ivsize, [all...] |
/linux-master/block/ |
H A D | blk-crypto.c | 26 .ivsize = 16, 32 .ivsize = 16, 38 .ivsize = 32, 44 .ivsize = 16, 82 BUG_ON(blk_crypto_modes[i].ivsize > BLK_CRYPTO_MAX_IV_SIZE); 344 if (dun_bytes == 0 || dun_bytes > mode->ivsize)
|
/linux-master/drivers/crypto/ccp/ |
H A D | ccp-crypto-aes.c | 246 unsigned int ivsize; member in struct:ccp_aes_def 257 .ivsize = 0, 266 .ivsize = AES_BLOCK_SIZE, 275 .ivsize = AES_BLOCK_SIZE, 284 .ivsize = CTR_RFC3686_IV_SIZE, 311 alg->ivsize = def->ivsize;
|
H A D | ccp-crypto-des3.c | 152 unsigned int ivsize; member in struct:ccp_des3_def 163 .ivsize = 0, 172 .ivsize = DES3_EDE_BLOCK_SIZE, 199 alg->ivsize = def->ivsize;
|