/linux-master/crypto/ |
H A D | rsa-pkcs1pad.c | 201 struct pkcs1pad_request *req_ctx = akcipher_request_ctx(req); local 209 len = req_ctx->child_req.dst_len; 231 kfree(req_ctx->in_buf); 253 struct pkcs1pad_request *req_ctx = akcipher_request_ctx(req); local 268 req_ctx->in_buf = kmalloc(ctx->key_size - 1 - req->src_len, 270 if (!req_ctx->in_buf) 274 req_ctx->in_buf[0] = 0x02; 276 req_ctx->in_buf[i] = get_random_u32_inclusive(1, 255); 277 req_ctx->in_buf[ps_end] = 0x00; 279 pkcs1pad_sg_set_buf(req_ctx 301 struct pkcs1pad_request *req_ctx = akcipher_request_ctx(req); local 368 struct pkcs1pad_request *req_ctx = akcipher_request_ctx(req); local 401 struct pkcs1pad_request *req_ctx = akcipher_request_ctx(req); local 458 struct pkcs1pad_request *req_ctx = akcipher_request_ctx(req); local 555 struct pkcs1pad_request *req_ctx = akcipher_request_ctx(req); local [all...] |
/linux-master/drivers/crypto/axis/ |
H A D | artpec6_crypto.c | 1090 struct artpec6_crypto_request_context *req_ctx = NULL; local 1094 req_ctx = skcipher_request_ctx(req); 1100 req_ctx->decrypt = 0; 1115 ret = artpec6_crypto_common_init(&req_ctx->common, 1124 artpec6_crypto_common_destroy(&req_ctx->common); 1128 return artpec6_crypto_submit(&req_ctx->common); 1136 struct artpec6_crypto_request_context *req_ctx = NULL; local 1139 req_ctx = skcipher_request_ctx(req); 1145 req_ctx->decrypt = 1; 1161 ret = artpec6_crypto_common_init(&req_ctx 1265 struct artpec6_crypto_aead_req_ctx *req_ctx = aead_request_ctx(req); local 1286 struct artpec6_crypto_aead_req_ctx *req_ctx = aead_request_ctx(req); local 1311 struct artpec6_hash_request_context *req_ctx = ahash_request_ctx(areq); local 1670 struct artpec6_crypto_request_context *req_ctx = NULL; local 1837 struct artpec6_crypto_aead_req_ctx *req_ctx = aead_request_ctx(areq); local 2191 struct artpec6_crypto_aead_req_ctx *req_ctx = aead_request_ctx(areq); local 2266 struct artpec6_hash_request_context *req_ctx = ahash_request_ctx(req); local 2297 struct artpec6_hash_request_context *req_ctx = ahash_request_ctx(req); local 2330 struct artpec6_hash_request_context *req_ctx = ahash_request_ctx(req); local 2339 struct artpec6_hash_request_context *req_ctx = ahash_request_ctx(req); local 2353 struct artpec6_hash_request_context *req_ctx = ahash_request_ctx(req); local 2369 struct artpec6_hash_request_context *req_ctx = ahash_request_ctx(req); local 2384 struct artpec6_hash_request_context *req_ctx = ahash_request_ctx(req); local [all...] |
/linux-master/arch/x86/crypto/ |
H A D | aria_gfni_avx512_glue.c | 77 struct aria_avx512_request_ctx *req_ctx = skcipher_request_ctx(req); local 93 &req_ctx->keystream[0], 104 &req_ctx->keystream[0], 115 &req_ctx->keystream[0], 124 memcpy(&req_ctx->keystream[0], walk.iv, 128 aria_encrypt(ctx, &req_ctx->keystream[0], 129 &req_ctx->keystream[0]); 131 crypto_xor_cpy(dst, src, &req_ctx->keystream[0], 139 memcpy(&req_ctx->keystream[0], walk.iv, 143 aria_encrypt(ctx, &req_ctx [all...] |
H A D | aria_aesni_avx2_glue.c | 90 struct aria_avx2_request_ctx *req_ctx = skcipher_request_ctx(req); local 106 &req_ctx->keystream[0], 117 &req_ctx->keystream[0], 126 memcpy(&req_ctx->keystream[0], walk.iv, ARIA_BLOCK_SIZE); 129 aria_encrypt(ctx, &req_ctx->keystream[0], 130 &req_ctx->keystream[0]); 132 crypto_xor_cpy(dst, src, &req_ctx->keystream[0], 140 memcpy(&req_ctx->keystream[0], walk.iv, 144 aria_encrypt(ctx, &req_ctx->keystream[0], 145 &req_ctx [all...] |
H A D | aria_aesni_avx_glue.c | 88 struct aria_avx_request_ctx *req_ctx = skcipher_request_ctx(req); local 104 &req_ctx->keystream[0], 113 memcpy(&req_ctx->keystream[0], walk.iv, ARIA_BLOCK_SIZE); 116 aria_encrypt(ctx, &req_ctx->keystream[0], 117 &req_ctx->keystream[0]); 119 crypto_xor_cpy(dst, src, &req_ctx->keystream[0], 127 memcpy(&req_ctx->keystream[0], walk.iv, 131 aria_encrypt(ctx, &req_ctx->keystream[0], 132 &req_ctx->keystream[0]); 134 crypto_xor_cpy(dst, src, &req_ctx [all...] |
/linux-master/drivers/crypto/ccree/ |
H A D | cc_cipher.c | 511 struct cipher_req_ctx *req_ctx, 519 int direction = req_ctx->gen_ctx.op_type; 520 dma_addr_t iv_dma_addr = req_ctx->gen_ctx.iv_dma_addr; 567 struct cipher_req_ctx *req_ctx, 576 int direction = req_ctx->gen_ctx.op_type; 577 dma_addr_t iv_dma_addr = req_ctx->gen_ctx.iv_dma_addr; 611 struct cipher_req_ctx *req_ctx, 620 int direction = req_ctx->gen_ctx.op_type; 623 dma_addr_t iv_dma_addr = req_ctx->gen_ctx.iv_dma_addr; 689 struct cipher_req_ctx *req_ctx, 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 688 cc_setup_key_desc(struct crypto_tfm *tfm, struct cipher_req_ctx *req_ctx, unsigned int nbytes, struct cc_hw_desc desc[], unsigned int *seq_size) argument 770 cc_setup_mlli_desc(struct crypto_tfm *tfm, struct cipher_req_ctx *req_ctx, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes, void *areq, struct cc_hw_desc desc[], unsigned int *seq_size) argument 797 cc_setup_flow_desc(struct crypto_tfm *tfm, struct cipher_req_ctx *req_ctx, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes, struct cc_hw_desc desc[], unsigned int *seq_size) argument 863 struct cipher_req_ctx *req_ctx = skcipher_request_ctx(req); local 882 struct cipher_req_ctx *req_ctx = skcipher_request_ctx(req); local 992 struct cipher_req_ctx *req_ctx = skcipher_request_ctx(req); local 1001 struct cipher_req_ctx *req_ctx = skcipher_request_ctx(req); local [all...] |
H A D | cc_aead.c | 876 struct aead_req_ctx *req_ctx = aead_request_ctx_dma(req); local 880 int direct = req_ctx->gen_ctx.op_type; 887 set_dout_dlli(&desc[idx], req_ctx->icv_dma_addr, ctx->authsize, 903 set_dout_dlli(&desc[idx], req_ctx->mac_buf_dma_addr, 926 struct aead_req_ctx *req_ctx = aead_request_ctx_dma(req); local 927 unsigned int hw_iv_size = req_ctx->hw_iv_size; 929 int direct = req_ctx->gen_ctx.op_type; 935 set_din_type(&desc[idx], DMA_DLLI, req_ctx->gen_ctx.iv_dma_addr, 968 struct aead_req_ctx *req_ctx = aead_request_ctx_dma(req); local 969 int direct = req_ctx 1161 struct aead_req_ctx *req_ctx = aead_request_ctx_dma(req); local 1215 struct aead_req_ctx *req_ctx = aead_request_ctx_dma(req); local 1268 struct aead_req_ctx *req_ctx = aead_request_ctx_dma(req); local 1414 struct aead_req_ctx *req_ctx = aead_request_ctx_dma(req); local 1536 struct aead_req_ctx *req_ctx = aead_request_ctx_dma(req); local 1618 struct aead_req_ctx *req_ctx = aead_request_ctx_dma(req); local 1696 struct aead_req_ctx *req_ctx = aead_request_ctx_dma(req); local 1733 struct aead_req_ctx *req_ctx = aead_request_ctx_dma(req); local 1795 struct aead_req_ctx *req_ctx = aead_request_ctx_dma(req); local 1833 struct aead_req_ctx *req_ctx = aead_request_ctx_dma(req); local [all...] |
H A D | cc_buffer_mgr.c | 343 struct cipher_req_ctx *req_ctx = (struct cipher_req_ctx *)ctx; local 345 if (req_ctx->gen_ctx.iv_dma_addr) { 347 &req_ctx->gen_ctx.iv_dma_addr, ivsize); 348 dma_unmap_single(dev, req_ctx->gen_ctx.iv_dma_addr, 352 if (req_ctx->dma_buf_type == CC_DMA_BUF_MLLI && 353 req_ctx->mlli_params.mlli_virt_addr) { 354 dma_pool_free(req_ctx->mlli_params.curr_pool, 355 req_ctx->mlli_params.mlli_virt_addr, 356 req_ctx->mlli_params.mlli_dma_addr); 360 dma_unmap_sg(dev, src, req_ctx 375 struct cipher_req_ctx *req_ctx = (struct cipher_req_ctx *)ctx; local [all...] |
/linux-master/drivers/crypto/ |
H A D | talitos.c | 1704 struct talitos_ahash_req_ctx *req_ctx = ahash_request_ctx(areq); local 1716 if (req_ctx->last) 1717 memcpy(areq->result, req_ctx->hw_context, 1720 if (req_ctx->psrc) 1721 talitos_sg_unmap(dev, edesc, req_ctx->psrc, NULL, 0, 0); 1731 if (is_sec1 && req_ctx->nbuf) 1751 struct talitos_ahash_req_ctx *req_ctx = ahash_request_ctx(areq); local 1753 if (!req_ctx->last && req_ctx->to_hash_later) { 1755 req_ctx 1794 struct talitos_ahash_req_ctx *req_ctx = ahash_request_ctx(areq); local 1917 struct talitos_ahash_req_ctx *req_ctx = ahash_request_ctx(areq); local 1933 struct talitos_ahash_req_ctx *req_ctx = ahash_request_ctx(areq); local 1960 struct talitos_ahash_req_ctx *req_ctx = ahash_request_ctx(areq); local 1985 struct talitos_ahash_req_ctx *req_ctx = ahash_request_ctx(areq); local 2095 struct talitos_ahash_req_ctx *req_ctx = ahash_request_ctx(areq); local 2104 struct talitos_ahash_req_ctx *req_ctx = ahash_request_ctx(areq); local 2113 struct talitos_ahash_req_ctx *req_ctx = ahash_request_ctx(areq); local 2134 struct talitos_ahash_req_ctx *req_ctx = ahash_request_ctx(areq); local 2159 struct talitos_ahash_req_ctx *req_ctx = ahash_request_ctx(areq); local [all...] |
H A D | mxs-dcp.c | 118 struct dcp_sha_req_ctx req_ctx; member in struct:dcp_export_state 823 memcpy(rctx, &export->req_ctx, sizeof(struct dcp_sha_req_ctx)); 836 memcpy(&export->req_ctx, rctx_state, sizeof(struct dcp_sha_req_ctx));
|
/linux-master/drivers/crypto/caam/ |
H A D | caampkc.c | 52 struct caam_rsa_req_ctx *req_ctx = akcipher_request_ctx(req); local 55 dma_unmap_sg(dev, req_ctx->fixup_src, edesc->src_nents, DMA_TO_DEVICE); 126 struct caam_rsa_req_ctx *req_ctx = akcipher_request_ctx(req); local 135 edesc = req_ctx->edesc; 160 struct caam_rsa_req_ctx *req_ctx = akcipher_request_ctx(req); local 168 edesc = req_ctx->edesc; 255 struct caam_rsa_req_ctx *req_ctx = akcipher_request_ctx(req); local 277 req_ctx->fixup_src = scatterwalk_ffwd(req_ctx->src, req->src, 279 req_ctx 380 struct caam_rsa_req_ctx *req_ctx = akcipher_request_ctx(req); local 408 struct caam_rsa_req_ctx *req_ctx = akcipher_request_ctx(req); local 479 struct caam_rsa_req_ctx *req_ctx = akcipher_request_ctx(req); local 544 struct caam_rsa_req_ctx *req_ctx = akcipher_request_ctx(req); local 633 struct caam_rsa_req_ctx *req_ctx = akcipher_request_ctx(req); local 676 struct caam_rsa_req_ctx *req_ctx = akcipher_request_ctx(req); local [all...] |
H A D | caamalg_qi2.c | 355 struct caam_request *req_ctx = aead_request_ctx_dma(req); local 356 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; 357 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; 552 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); 1115 struct caam_request *req_ctx = skcipher_request_ctx_dma(req); local 1116 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; 1117 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; 1241 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx 1289 struct caam_request *req_ctx = to_caam_req(areq); local 1310 struct caam_request *req_ctx = to_caam_req(areq); local 1396 struct caam_request *req_ctx = to_caam_req(areq); local 1434 struct caam_request *req_ctx = to_caam_req(areq); local 3217 struct caam_request *req_ctx; local 3534 struct caam_request *req_ctx = &state->caam_req; local 3653 struct caam_request *req_ctx = &state->caam_req; local 3724 struct caam_request *req_ctx = &state->caam_req; local 3818 struct caam_request *req_ctx = &state->caam_req; local 3913 struct caam_request *req_ctx = &state->caam_req; local 3986 struct caam_request *req_ctx = &state->caam_req; local 4107 struct caam_request *req_ctx = &state->caam_req; local 4203 struct caam_request *req_ctx = &state->caam_req; local [all...] |
/linux-master/include/linux/mtd/ |
H A D | nand-ecc-sw-bch.h | 16 * @req_ctx: Save request context and tweak the original request to fit the 26 struct nand_ecc_req_tweak_ctx req_ctx; member in struct:nand_ecc_sw_bch_conf
|
H A D | nand-ecc-sw-hamming.h | 17 * @req_ctx: Save request context and tweak the original request to fit the 25 struct nand_ecc_req_tweak_ctx req_ctx; member in struct:nand_ecc_sw_hamming_conf
|
/linux-master/drivers/crypto/chelsio/ |
H A D | chcr_algo.c | 1563 struct chcr_ahash_req_ctx *req_ctx = ahash_request_ctx(req); local 1577 unsigned int rx_channel_id = req_ctx->rxqidx / ctx->rxq_perchan; 1581 req_ctx->hctx_wr.imm = (transhdr_len + param->bfr_len + 1583 nents = sg_nents_xlen(req_ctx->hctx_wr.srcsg, param->sg_len, 1584 CHCR_SRC_SG_SIZE, req_ctx->hctx_wr.src_ofst); 1586 transhdr_len += req_ctx->hctx_wr.imm ? roundup(param->bfr_len + 1611 memcpy(chcr_req->key_ctx.key, req_ctx->partial_hash, 1629 req_ctx->hctx_wr.dma_addr = 1630 dma_map_single(&u_ctx->lldi.pdev->dev, req_ctx->reqbfr, 1633 req_ctx 1658 struct chcr_ahash_req_ctx *req_ctx = ahash_request_ctx(req); local 1760 struct chcr_ahash_req_ctx *req_ctx = ahash_request_ctx(req); local 1830 struct chcr_ahash_req_ctx *req_ctx = ahash_request_ctx(req); local 1928 struct chcr_ahash_req_ctx *req_ctx = ahash_request_ctx(req); local 2173 struct chcr_ahash_req_ctx *req_ctx = ahash_request_ctx(areq); local 2187 struct chcr_ahash_req_ctx *req_ctx = ahash_request_ctx(areq); local 2301 struct chcr_ahash_req_ctx *req_ctx = ahash_request_ctx(areq); local 2323 struct chcr_ahash_req_ctx *req_ctx = ahash_request_ctx(areq); local 2811 struct chcr_ahash_req_ctx *req_ctx = ahash_request_ctx(req); local 2827 struct chcr_ahash_req_ctx *req_ctx = ahash_request_ctx(req); local [all...] |
/linux-master/drivers/crypto/intel/ixp4xx/ |
H A D | ixp4xx_crypto.c | 354 struct aead_ctx *req_ctx = aead_request_ctx(req); local 359 if (req_ctx->encrypt) { 360 scatterwalk_map_and_copy(req_ctx->hmac_virt, req->dst, 363 dma_pool_free(buffer_pool, req_ctx->hmac_virt, crypt->icv_rev_aes); 380 struct aead_ctx *req_ctx = aead_request_ctx(req); local 382 free_buf_chain(dev, req_ctx->src, crypt->src_buf); 383 free_buf_chain(dev, req_ctx->dst, crypt->dst_buf); 384 if (req_ctx->hmac_virt) 392 struct ablk_ctx *req_ctx = skcipher_request_ctx(req); local 399 if (req_ctx 982 struct ablk_ctx *req_ctx = skcipher_request_ctx(req); local 1099 struct aead_ctx *req_ctx = aead_request_ctx(req); local [all...] |
/linux-master/drivers/mtd/nand/ |
H A D | ecc-sw-bch.c | 234 ret = nand_ecc_init_req_tweaking(&engine_conf->req_ctx, nand); 267 nand_ecc_cleanup_req_tweaking(&engine_conf->req_ctx); 283 nand_ecc_cleanup_req_tweaking(&engine_conf->req_ctx); 312 nand_ecc_tweak_req(&engine_conf->req_ctx, req); 353 nand_ecc_restore_req(&engine_conf->req_ctx, req); 382 nand_ecc_restore_req(&engine_conf->req_ctx, req);
|
H A D | ecc-mxic.c | 107 struct nand_ecc_req_tweak_ctx req_ctx; member in struct:mxic_ecc_ctx 309 ctx->req_ctx.oob_buffer_size = nanddev_per_page_oobsize(nand) + 311 ret = nand_ecc_init_req_tweaking(&ctx->req_ctx, nand); 355 nand_ecc_cleanup_req_tweaking(&ctx->req_ctx); 417 nand_ecc_cleanup_req_tweaking(&ctx->req_ctx); 563 nand_ecc_tweak_req(&ctx->req_ctx, req); 623 nand_ecc_restore_req(&ctx->req_ctx, req); 654 nand_ecc_restore_req(&ctx->req_ctx, req); 662 nand_ecc_restore_req(&ctx->req_ctx, req); 678 nand_ecc_tweak_req(&ctx->req_ctx, re [all...] |
H A D | ecc-sw-hamming.c | 503 ret = nand_ecc_init_req_tweaking(&engine_conf->req_ctx, nand); 522 nand_ecc_cleanup_req_tweaking(&engine_conf->req_ctx); 537 nand_ecc_cleanup_req_tweaking(&engine_conf->req_ctx); 566 nand_ecc_tweak_req(&engine_conf->req_ctx, req); 607 nand_ecc_restore_req(&engine_conf->req_ctx, req); 636 nand_ecc_restore_req(&engine_conf->req_ctx, req);
|