| /linux/arch/s390/crypto/ |
| H A D | paes_s390.c | 397 struct s390_pecb_req_ctx *req_ctx, in ecb_paes_do_crypt() argument 400 struct ecb_param *param = &req_ctx->param; in ecb_paes_do_crypt() 401 struct skcipher_walk *walk = &req_ctx->walk; in ecb_paes_do_crypt() 405 if (!req_ctx->param_init_done) { in ecb_paes_do_crypt() 418 req_ctx->param_init_done = true; in ecb_paes_do_crypt() 437 k = cpacf_km(ctx->fc | req_ctx->modifier, param, in ecb_paes_do_crypt() 465 struct s390_pecb_req_ctx *req_ctx = skcipher_request_ctx(req); in ecb_paes_crypt() local 468 struct skcipher_walk *walk = &req_ctx->walk; in ecb_paes_crypt() 484 req_ctx->modifier = modifier; in ecb_paes_crypt() 485 req_ctx->param_init_done = false; in ecb_paes_crypt() [all …]
|
| H A D | phmac_s390.c | 417 struct phmac_req_ctx *req_ctx = ahash_request_ctx(req); in phmac_kmac_update() local 418 struct kmac_sha2_ctx *ctx = &req_ctx->kmac_ctx; in phmac_kmac_update() 419 struct hash_walk_helper *hwh = &req_ctx->hwh; in phmac_kmac_update() 531 struct phmac_req_ctx *req_ctx = ahash_request_ctx(req); in phmac_kmac_final() local 532 struct kmac_sha2_ctx *ctx = &req_ctx->kmac_ctx; in phmac_kmac_final() 576 struct phmac_req_ctx *req_ctx = ahash_request_ctx(req); in phmac_init() local 577 struct kmac_sha2_ctx *kmac_ctx = &req_ctx->kmac_ctx; in phmac_init() 582 memset(req_ctx, 0, sizeof(*req_ctx)); in phmac_init() 610 struct phmac_req_ctx *req_ctx = ahash_request_ctx(req); in phmac_update() local 613 struct kmac_sha2_ctx *kmac_ctx = &req_ctx->kmac_ctx; in phmac_update() [all …]
|
| /linux/drivers/crypto/ |
| H A D | talitos.c | 1776 struct talitos_ahash_req_ctx *req_ctx = ahash_request_ctx(areq); in common_nonsnoop_hash_unmap() local 1784 if (edesc->last && req_ctx->last_request) in common_nonsnoop_hash_unmap() 1785 memcpy(areq->result, req_ctx->hw_context, in common_nonsnoop_hash_unmap() 1821 struct talitos_ahash_req_ctx *req_ctx = ahash_request_ctx(areq); in ahash_done() local 1828 if (!req_ctx->last_request && req_ctx->to_hash_later) { in ahash_done() 1830 req_ctx->buf_idx = (req_ctx->buf_idx + 1) & 1; in ahash_done() 1831 req_ctx->nbuf = req_ctx->to_hash_later; in ahash_done() 1853 if (!req_ctx->last_request && req_ctx->to_hash_later) { in ahash_done() 1855 req_ctx->buf_idx = (req_ctx->buf_idx + 1) & 1; in ahash_done() 1856 req_ctx->nbuf = req_ctx->to_hash_later; in ahash_done() [all …]
|
| /linux/arch/x86/crypto/ |
| H A D | aria_aesni_avx2_glue.c | 88 struct aria_avx2_request_ctx *req_ctx = skcipher_request_ctx(req); in aria_avx2_ctr_encrypt() local 104 &req_ctx->keystream[0], in aria_avx2_ctr_encrypt() 115 &req_ctx->keystream[0], in aria_avx2_ctr_encrypt() 124 memcpy(&req_ctx->keystream[0], walk.iv, ARIA_BLOCK_SIZE); in aria_avx2_ctr_encrypt() 127 aria_encrypt(ctx, &req_ctx->keystream[0], in aria_avx2_ctr_encrypt() 128 &req_ctx->keystream[0]); in aria_avx2_ctr_encrypt() 130 crypto_xor_cpy(dst, src, &req_ctx->keystream[0], in aria_avx2_ctr_encrypt() 138 memcpy(&req_ctx->keystream[0], walk.iv, in aria_avx2_ctr_encrypt() 142 aria_encrypt(ctx, &req_ctx->keystream[0], in aria_avx2_ctr_encrypt() 143 &req_ctx->keystream[0]); in aria_avx2_ctr_encrypt() [all …]
|
| H A D | aria_aesni_avx_glue.c | 86 struct aria_avx_request_ctx *req_ctx = skcipher_request_ctx(req); in aria_avx_ctr_encrypt() local 102 &req_ctx->keystream[0], in aria_avx_ctr_encrypt() 111 memcpy(&req_ctx->keystream[0], walk.iv, ARIA_BLOCK_SIZE); in aria_avx_ctr_encrypt() 114 aria_encrypt(ctx, &req_ctx->keystream[0], in aria_avx_ctr_encrypt() 115 &req_ctx->keystream[0]); in aria_avx_ctr_encrypt() 117 crypto_xor_cpy(dst, src, &req_ctx->keystream[0], in aria_avx_ctr_encrypt() 125 memcpy(&req_ctx->keystream[0], walk.iv, in aria_avx_ctr_encrypt() 129 aria_encrypt(ctx, &req_ctx->keystream[0], in aria_avx_ctr_encrypt() 130 &req_ctx->keystream[0]); in aria_avx_ctr_encrypt() 132 crypto_xor_cpy(dst, src, &req_ctx->keystream[0], in aria_avx_ctr_encrypt()
|
| /linux/drivers/crypto/ccree/ |
| H A D | cc_buffer_mgr.c | 343 struct cipher_req_ctx *req_ctx = (struct cipher_req_ctx *)ctx; in cc_unmap_cipher_request() local 345 if (req_ctx->gen_ctx.iv_dma_addr) { in cc_unmap_cipher_request() 347 &req_ctx->gen_ctx.iv_dma_addr, ivsize); in cc_unmap_cipher_request() 348 dma_unmap_single(dev, req_ctx->gen_ctx.iv_dma_addr, in cc_unmap_cipher_request() 352 if (req_ctx->dma_buf_type == CC_DMA_BUF_MLLI && in cc_unmap_cipher_request() 353 req_ctx->mlli_params.mlli_virt_addr) { in cc_unmap_cipher_request() 354 dma_pool_free(req_ctx->mlli_params.curr_pool, in cc_unmap_cipher_request() 355 req_ctx->mlli_params.mlli_virt_addr, in cc_unmap_cipher_request() 356 req_ctx->mlli_params.mlli_dma_addr); in cc_unmap_cipher_request() 360 dma_unmap_sg(dev, src, req_ctx->in_nents, DMA_TO_DEVICE); in cc_unmap_cipher_request() [all …]
|
| /linux/drivers/mtd/nand/ |
| H A D | ecc-sw-bch.c | 234 ret = nand_ecc_init_req_tweaking(&engine_conf->req_ctx, nand); in nand_ecc_sw_bch_init_ctx() 267 nand_ecc_cleanup_req_tweaking(&engine_conf->req_ctx); in nand_ecc_sw_bch_init_ctx() 283 nand_ecc_cleanup_req_tweaking(&engine_conf->req_ctx); in nand_ecc_sw_bch_cleanup_ctx() 312 nand_ecc_tweak_req(&engine_conf->req_ctx, req); in nand_ecc_sw_bch_prepare_io_req() 353 nand_ecc_restore_req(&engine_conf->req_ctx, req); in nand_ecc_sw_bch_finish_io_req() 382 nand_ecc_restore_req(&engine_conf->req_ctx, req); in nand_ecc_sw_bch_finish_io_req()
|
| H A D | ecc-sw-hamming.c | 503 ret = nand_ecc_init_req_tweaking(&engine_conf->req_ctx, nand); in nand_ecc_sw_hamming_init_ctx() 522 nand_ecc_cleanup_req_tweaking(&engine_conf->req_ctx); in nand_ecc_sw_hamming_init_ctx() 537 nand_ecc_cleanup_req_tweaking(&engine_conf->req_ctx); in nand_ecc_sw_hamming_cleanup_ctx() 566 nand_ecc_tweak_req(&engine_conf->req_ctx, req); in nand_ecc_sw_hamming_prepare_io_req() 607 nand_ecc_restore_req(&engine_conf->req_ctx, req); in nand_ecc_sw_hamming_finish_io_req() 636 nand_ecc_restore_req(&engine_conf->req_ctx, req); in nand_ecc_sw_hamming_finish_io_req()
|
| /linux/include/linux/mtd/ |
| H A D | nand-ecc-sw-bch.h | 26 struct nand_ecc_req_tweak_ctx req_ctx; member
|
| H A D | nand-ecc-sw-hamming.h | 25 struct nand_ecc_req_tweak_ctx req_ctx; member
|