Home
last modified time | relevance | path

Searched refs:rctx (Results 1 – 25 of 85) sorted by relevance

1234

/openbmc/linux/drivers/crypto/aspeed/
H A Daspeed-hace-hash.c122 length = rctx->total + rctx->bufcnt; in aspeed_ahash_dma_prepare()
132 rctx->bufcnt, rctx->src_sg, in aspeed_ahash_dma_prepare()
174 remain = (rctx->total + rctx->bufcnt) % rctx->block_size; in aspeed_ahash_dma_prepare_sg()
366 memcpy(rctx->buffer + rctx->block_size, rctx->digest, rctx->digsize); in aspeed_ahash_hmac_resume()
368 rctx->bufcnt = rctx->block_size + rctx->digsize; in aspeed_ahash_hmac_resume()
369 rctx->digcnt[0] = rctx->block_size + rctx->digsize; in aspeed_ahash_hmac_resume()
372 memcpy(rctx->digest, rctx->sha_iv, rctx->ivsize); in aspeed_ahash_hmac_resume()
475 rctx->bufcnt = rctx->total - rctx->offset; in aspeed_ahash_update_resume_sg()
596 rctx->digcnt[0] += rctx->total; in aspeed_sham_update()
600 if (rctx->bufcnt + rctx->total < rctx->block_size) { in aspeed_sham_update()
[all …]
/openbmc/linux/drivers/crypto/qce/
H A Daead.c174 rctx->dst_sg = rctx->dst_tbl.sgl; in qce_aead_prepare_dst_buf()
249 sg_init_one(&rctx->adata_sg, rctx->adata, rctx->assoclen); in qce_aead_ccm_prepare_buf_assoclen()
277 rctx->src_sg = rctx->src_tbl.sgl; in qce_aead_ccm_prepare_buf_assoclen()
291 rctx->dst_nents = rctx->src_nents; in qce_aead_ccm_prepare_buf_assoclen()
292 rctx->dst_sg = rctx->src_sg; in qce_aead_ccm_prepare_buf_assoclen()
324 rctx->src_sg = rctx->dst_sg; in qce_aead_prepare_buf()
354 rctx->dst_nents = rctx->src_nents; in qce_aead_ccm_prepare_buf()
355 rctx->dst_sg = rctx->src_sg; in qce_aead_ccm_prepare_buf()
367 if (!rctx || !rctx->iv) in qce_aead_create_ccm_nonce()
396 memcpy(&rctx->ccm_nonce[0], rctx->iv, rctx->ivsize); in qce_aead_create_ccm_nonce()
[all …]
H A Dsha.c139 memset(rctx, 0, sizeof(*rctx)); in qce_ahash_init()
143 memcpy(rctx->digest, std_iv, sizeof(rctx->digest)); in qce_ahash_init()
153 memcpy(export_state->pending_buf, rctx->buf, rctx->buflen); in qce_ahash_export()
170 memset(rctx, 0, sizeof(*rctx)); in qce_ahash_import()
177 memcpy(rctx->buf, import_state->pending_buf, rctx->buflen); in qce_ahash_import()
202 scatterwalk_map_and_copy(rctx->buf + rctx->buflen, req->src, in qce_ahash_update()
216 if (rctx->buflen) in qce_ahash_update()
217 memcpy(rctx->tmpbuf, rctx->buf, rctx->buflen); in qce_ahash_update()
265 sg_set_buf(rctx->sg, rctx->tmpbuf, rctx->buflen); in qce_ahash_update()
294 memcpy(rctx->tmpbuf, rctx->buf, rctx->buflen); in qce_ahash_final()
[all …]
H A Dskcipher.c50 dma_unmap_sg(qce->dev, rctx->src_sg, rctx->src_nents, dir_src); in qce_skcipher_done()
51 dma_unmap_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_skcipher_done()
59 memcpy(rctx->iv, result_buf->encr_cntr_iv, rctx->ivsize); in qce_skcipher_done()
77 rctx->iv = req->iv; in qce_skcipher_async_req_handle()
89 rctx->dst_nents = rctx->src_nents; in qce_skcipher_async_req_handle()
104 ret = sg_alloc_table(&rctx->dst_tbl, rctx->dst_nents, gfp); in qce_skcipher_async_req_handle()
116 sg = qce_sgtable_add(&rctx->dst_tbl, &rctx->result_sg, in qce_skcipher_async_req_handle()
124 rctx->dst_sg = rctx->dst_tbl.sgl; in qce_skcipher_async_req_handle()
140 rctx->src_sg = rctx->dst_sg; in qce_skcipher_async_req_handle()
164 dma_unmap_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_skcipher_async_req_handle()
[all …]
H A Dcommon.c175 auth_cfg = qce_auth_cfg(rctx->flags, rctx->authklen, digestsize); in qce_setup_regs_ahash()
178 if (IS_SHA_HMAC(rctx->flags) || IS_CMAC(rctx->flags)) { in qce_setup_regs_ahash()
181 qce_cpu_to_be32p_array(mackey, rctx->authkey, rctx->authklen); in qce_setup_regs_ahash()
189 if (rctx->first_blk) in qce_setup_regs_ahash()
194 iv_words = (IS_SHA1(rctx->flags) || IS_SHA1_HMAC(rctx->flags)) ? 5 : 8; in qce_setup_regs_ahash()
197 if (rctx->first_blk) in qce_setup_regs_ahash()
205 if (rctx->last_blk) in qce_setup_regs_ahash()
210 if (rctx->first_blk) in qce_setup_regs_ahash()
514 totallen = rctx->cryptlen + rctx->assoclen; in qce_setup_regs_aead()
517 if (IS_CCM(rctx->flags) && IS_DECRYPT(rctx->flags)) in qce_setup_regs_aead()
[all …]
/openbmc/linux/drivers/crypto/intel/keembay/
H A Dkeembay-ocs-hcu-core.c117 return rctx->sg_data_total + rctx->buf_cnt; in kmb_get_total_data()
125 if (rctx->sg_data_total > (sizeof(rctx->buffer) - rctx->buf_cnt)) { in flush_sg_to_ocs_buffer()
139 if (rctx->sg_data_offset == rctx->sg->length) { in flush_sg_to_ocs_buffer()
140 rctx->sg = sg_next(rctx->sg); in flush_sg_to_ocs_buffer()
153 rctx->sg, rctx->sg_data_offset, in flush_sg_to_ocs_buffer()
283 rctx->buf_dma_count = rctx->buf_cnt; in kmb_ocs_dma_prepare()
406 rctx->buf_cnt = rctx->blk_sz; in prepare_ipad()
572 memset(rctx, 0, sizeof(*rctx)); in kmb_ocs_hcu_init()
644 if (rctx->sg_data_total <= (sizeof(rctx->buffer) - rctx->buf_cnt)) in kmb_ocs_hcu_update()
732 memcpy(out, rctx, sizeof(*rctx)); in kmb_ocs_hcu_export()
[all …]
H A Dkeembay-ocs-aes-core.c243 memset(rctx, 0, sizeof(*rctx)); in ocs_aes_init_rctx()
418 if (rctx->cts_swap && rctx->instruction == OCS_DECRYPT) in kmb_ocs_sk_prepare_inplace()
433 rctx->dst_dma_count, &rctx->dst_dll, in kmb_ocs_sk_prepare_inplace()
442 rctx->src_dll.dma_addr = rctx->dst_dll.dma_addr; in kmb_ocs_sk_prepare_inplace()
468 rctx->src_dma_count, &rctx->src_dll, in kmb_ocs_sk_prepare_notinplace()
483 rctx->dst_dma_count, &rctx->dst_dll, in kmb_ocs_sk_prepare_notinplace()
535 rctx->cts_swap = (rctx->mode == OCS_MODE_CTS && in kmb_ocs_sk_run()
550 rctx->dst_dll.dma_addr, rctx->src_dll.dma_addr, in kmb_ocs_sk_run()
809 rctx->dst_dma_count, &rctx->dst_dll, in kmb_ocs_aead_dma_prepare()
823 rctx->src_dll.dma_addr = rctx->dst_dll.dma_addr; in kmb_ocs_aead_dma_prepare()
[all …]
/openbmc/linux/drivers/crypto/ccp/
H A Dccp-crypto-aes-cmac.c38 scatterwalk_map_and_copy(rctx->buf, rctx->src, in ccp_aes_cmac_complete()
40 rctx->buf_count = rctx->hash_rem; in ccp_aes_cmac_complete()
90 rctx->hash_cnt = len - rctx->hash_rem; in ccp_do_cmac_update()
102 sg_init_one(&rctx->iv_sg, rctx->iv, sizeof(rctx->iv)); in ccp_do_cmac_update()
116 sg_init_one(&rctx->buf_sg, rctx->buf, rctx->buf_count); in ccp_do_cmac_update()
137 memset(rctx->pad, 0, sizeof(rctx->pad)); in ccp_do_cmac_update()
156 memset(&rctx->cmd, 0, sizeof(rctx->cmd)); in ccp_do_cmac_update()
164 rctx->cmd.u.aes.iv = &rctx->iv_sg; in ccp_do_cmac_update()
167 rctx->cmd.u.aes.src_len = rctx->hash_cnt; in ccp_do_cmac_update()
187 memset(rctx, 0, sizeof(*rctx)); in ccp_aes_cmac_init()
[all …]
H A Dccp-crypto-sha.c43 rctx->buf_count = rctx->hash_rem; in ccp_sha_complete()
87 rctx->hash_cnt = len - rctx->hash_rem; in ccp_do_sha_update()
95 sg_init_one(&rctx->ctx_sg, rctx->ctx, sizeof(rctx->ctx)); in ccp_do_sha_update()
109 sg_init_one(&rctx->buf_sg, rctx->buf, rctx->buf_count); in ccp_do_sha_update()
124 sg_init_one(&rctx->buf_sg, rctx->buf, rctx->buf_count); in ccp_do_sha_update()
136 rctx->cmd.u.sha.type = rctx->type; in ccp_do_sha_update()
137 rctx->cmd.u.sha.ctx = &rctx->ctx_sg; in ccp_do_sha_update()
166 rctx->cmd.u.sha.first = rctx->first; in ccp_do_sha_update()
167 rctx->cmd.u.sha.final = rctx->final; in ccp_do_sha_update()
192 memset(rctx, 0, sizeof(*rctx)); in ccp_sha_init()
[all …]
H A Dccp-crypto-aes-xts.c70 memcpy(req->iv, rctx->iv, AES_BLOCK_SIZE); in ccp_aes_xts_complete()
165 sg_init_one(&rctx->iv_sg, rctx->iv, AES_BLOCK_SIZE); in ccp_aes_xts_crypt()
167 memset(&rctx->cmd, 0, sizeof(rctx->cmd)); in ccp_aes_xts_crypt()
168 INIT_LIST_HEAD(&rctx->cmd.entry); in ccp_aes_xts_crypt()
170 rctx->cmd.u.xts.type = CCP_AES_TYPE_128; in ccp_aes_xts_crypt()
173 rctx->cmd.u.xts.unit_size = unit_size; in ccp_aes_xts_crypt()
176 rctx->cmd.u.xts.iv = &rctx->iv_sg; in ccp_aes_xts_crypt()
177 rctx->cmd.u.xts.iv_len = AES_BLOCK_SIZE; in ccp_aes_xts_crypt()
178 rctx->cmd.u.xts.src = req->src; in ccp_aes_xts_crypt()
179 rctx->cmd.u.xts.src_len = req->cryptlen; in ccp_aes_xts_crypt()
[all …]
H A Dccp-crypto-aes-galois.c107 rctx->iv[i + GCM_AES_IV_SIZE] = 0; in ccp_aes_gcm_crypt()
108 rctx->iv[AES_BLOCK_SIZE - 1] = 1; in ccp_aes_gcm_crypt()
111 iv_sg = &rctx->iv_sg; in ccp_aes_gcm_crypt()
116 memset(&rctx->cmd, 0, sizeof(rctx->cmd)); in ccp_aes_gcm_crypt()
117 INIT_LIST_HEAD(&rctx->cmd.entry); in ccp_aes_gcm_crypt()
118 rctx->cmd.engine = CCP_ENGINE_AES; in ccp_aes_gcm_crypt()
122 rctx->cmd.u.aes.action = encrypt; in ccp_aes_gcm_crypt()
125 rctx->cmd.u.aes.iv = iv_sg; in ccp_aes_gcm_crypt()
126 rctx->cmd.u.aes.iv_len = iv_len; in ccp_aes_gcm_crypt()
127 rctx->cmd.u.aes.src = req->src; in ccp_aes_gcm_crypt()
[all …]
H A Dccp-crypto-des3.c82 iv_sg = &rctx->iv_sg; in ccp_des3_crypt()
84 sg_init_one(iv_sg, rctx->iv, iv_len); in ccp_des3_crypt()
87 memset(&rctx->cmd, 0, sizeof(rctx->cmd)); in ccp_des3_crypt()
88 INIT_LIST_HEAD(&rctx->cmd.entry); in ccp_des3_crypt()
89 rctx->cmd.engine = CCP_ENGINE_DES3; in ccp_des3_crypt()
90 rctx->cmd.u.des3.type = ctx->u.des3.type; in ccp_des3_crypt()
92 rctx->cmd.u.des3.action = (encrypt) in ccp_des3_crypt()
97 rctx->cmd.u.des3.iv = iv_sg; in ccp_des3_crypt()
98 rctx->cmd.u.des3.iv_len = iv_len; in ccp_des3_crypt()
99 rctx->cmd.u.des3.src = req->src; in ccp_des3_crypt()
[all …]
H A Dccp-crypto-aes.c87 iv_sg = &rctx->iv_sg; in ccp_aes_crypt()
92 memset(&rctx->cmd, 0, sizeof(rctx->cmd)); in ccp_aes_crypt()
97 rctx->cmd.u.aes.action = in ccp_aes_crypt()
101 rctx->cmd.u.aes.iv = iv_sg; in ccp_aes_crypt()
102 rctx->cmd.u.aes.iv_len = iv_len; in ccp_aes_crypt()
103 rctx->cmd.u.aes.src = req->src; in ccp_aes_crypt()
105 rctx->cmd.u.aes.dst = req->dst; in ccp_aes_crypt()
139 req->iv = rctx->rfc3686_info; in ccp_aes_rfc3686_complete()
166 iv = rctx->rfc3686_iv; in ccp_aes_rfc3686_crypt()
176 rctx->rfc3686_info = req->iv; in ccp_aes_rfc3686_crypt()
[all …]
/openbmc/linux/drivers/crypto/cavium/nitrox/
H A Dnitrox_aead.c166 creq->gph.param1 = cpu_to_be16(rctx->cryptlen + rctx->assoclen); in nitrox_set_creq()
167 creq->gph.param2 = cpu_to_be16(rctx->ivsize + rctx->assoclen); in nitrox_set_creq()
175 ret = alloc_src_sglist(&rctx->nkreq, rctx->src, rctx->iv, rctx->ivsize, in nitrox_set_creq()
180 ret = alloc_dst_sglist(&rctx->nkreq, rctx->dst, rctx->ivsize, in nitrox_set_creq()
230 rctx->dstlen = rctx->srclen + aead->authsize; in nitrox_aes_gcm_enc()
235 rctx->src = areq->src; in nitrox_aes_gcm_enc()
236 rctx->dst = areq->dst; in nitrox_aes_gcm_enc()
264 rctx->dstlen = rctx->srclen - aead->authsize; in nitrox_aes_gcm_dec()
405 sg_set_buf(rctx->src, rctx->assoc, assoclen); in nitrox_rfc4106_set_aead_rctx_sglist()
412 sg_set_buf(rctx->dst, rctx->assoc, assoclen); in nitrox_rfc4106_set_aead_rctx_sglist()
[all …]
/openbmc/linux/drivers/crypto/starfive/
H A Djh7110-rsa.c92 struct starfive_cryp_request_ctx *rctx = ctx->rctx; in starfive_rsa_montgomery_form() local
99 rctx->csr.pka.v = 0; in starfive_rsa_montgomery_form()
107 rctx->csr.pka.v = 0; in starfive_rsa_montgomery_form()
130 rctx->csr.pka.v = 0; in starfive_rsa_montgomery_form()
193 struct starfive_cryp_request_ctx *rctx = ctx->rctx; in starfive_rsa_cpu_start() local
274 struct starfive_cryp_request_ctx *rctx = ctx->rctx; in starfive_rsa_enc_core() local
285 rctx->total = sg_copy_to_buffer(rctx->in_sg, sg_nents(rctx->in_sg), in starfive_rsa_enc_core()
286 rctx->rsa_data + shift, rctx->total); in starfive_rsa_enc_core()
301 sg_copy_buffer(rctx->out_sg, sg_nents(rctx->out_sg), in starfive_rsa_enc_core()
336 ctx->rctx = rctx; in starfive_rsa_enc()
[all …]
H A Djh7110-hash.c59 struct starfive_cryp_request_ctx *rctx = ctx->rctx; in starfive_hash_hmac_key() local
90 struct starfive_cryp_request_ctx *rctx = ctx->rctx; in starfive_hash_start() local
96 dma_unmap_sg(cryp->dev, rctx->in_sg, rctx->in_sg_len, DMA_TO_DEVICE); in starfive_hash_start()
115 struct starfive_cryp_request_ctx *rctx = ctx->rctx; in starfive_hash_xmit_dma() local
122 if (!rctx->total) { in starfive_hash_xmit_dma()
139 ret = dma_map_sg(cryp->dev, rctx->in_sg, rctx->in_sg_len, DMA_TO_DEVICE); in starfive_hash_xmit_dma()
170 struct starfive_cryp_request_ctx *rctx = ctx->rctx; in starfive_hash_xmit() local
174 rctx->csr.hash.v = 0; in starfive_hash_xmit()
369 rctx->in_sg_len = sg_nents_for_len(rctx->in_sg, rctx->total); in starfive_hash_digest()
370 ctx->rctx = rctx; in starfive_hash_digest()
[all …]
/openbmc/linux/drivers/crypto/allwinner/sun8i-ss/
H A Dsun8i-ss-hash.c302 int flow = rctx->flow; in sun8i_ss_run_hash_task()
316 v |= rctx->method; in sun8i_ss_run_hash_task()
332 rctx->t_src[i].len, rctx->t_dst[i].len, in sun8i_ss_run_hash_task()
333 rctx->method, rctx->t_src[i].addr, rctx->t_dst[i].addr); in sun8i_ss_run_hash_task()
423 rctx->flow = e; in sun8i_ss_hash_digest()
528 rctx->t_dst[i].len = 0; in sun8i_ss_hash_run()
591 rctx->t_src[k + 1].addr = rctx->t_src[k].addr; in sun8i_ss_hash_run()
592 rctx->t_src[k + 1].len = rctx->t_src[k].len; in sun8i_ss_hash_run()
593 rctx->t_dst[k + 1].addr = rctx->t_dst[k].addr; in sun8i_ss_hash_run()
594 rctx->t_dst[k + 1].len = rctx->t_dst[k].len; in sun8i_ss_hash_run()
[all …]
/openbmc/linux/drivers/crypto/rockchip/
H A Drk3288_crypto_ahash.c58 rctx->fallback_req.nbytes = areq->nbytes; in rk_ahash_digest_fb()
59 rctx->fallback_req.src = areq->src; in rk_ahash_digest_fb()
60 rctx->fallback_req.result = areq->result; in rk_ahash_digest_fb()
143 rctx->fallback_req.src = req->src; in rk_ahash_update()
173 rctx->fallback_req.src = req->src; in rk_ahash_finup()
219 rctx->dev = dev; in rk_ahash_digest()
244 rctx->nrsg = ret; in rk_hash_prepare()
279 rctx->mode = 0; in rk_hash_run()
286 rctx->mode = RK_CRYPTO_HASH_SHA1; in rk_hash_run()
289 rctx->mode = RK_CRYPTO_HASH_SHA256; in rk_hash_run()
[all …]
H A Drk3288_crypto_skcipher.c84 if (rctx->mode & RK_CRYPTO_DEC) in rk_cipher_fallback()
103 rctx->dev = rkc; in rk_cipher_handle_req()
159 rctx->mode = RK_CRYPTO_AES_ECB_MODE; in rk_aes_ecb_encrypt()
175 rctx->mode = RK_CRYPTO_AES_CBC_MODE; in rk_aes_cbc_encrypt()
191 rctx->mode = 0; in rk_des_ecb_encrypt()
199 rctx->mode = RK_CRYPTO_DEC; in rk_des_ecb_decrypt()
223 rctx->mode = RK_CRYPTO_TDES_SELECT; in rk_des3_ede_ecb_encrypt()
326 if (rctx->mode & RK_CRYPTO_DEC) { in rk_cipher_run()
342 if (rctx->mode & RK_CRYPTO_DEC) { in rk_cipher_run()
392 if (rctx->mode & RK_CRYPTO_DEC) { in rk_cipher_run()
[all …]
/openbmc/linux/drivers/crypto/bcm/
H A Dcipher.c344 rctx->total_sent = rctx->src_sent; in handle_skcipher_req()
347 rctx->src_nents = spu_sg_count(rctx->src_sg, rctx->src_skip, chunksize); in handle_skcipher_req()
348 rctx->dst_nents = spu_sg_count(rctx->dst_sg, rctx->dst_skip, chunksize); in handle_skcipher_req()
695 rctx->total_todo, rctx->total_sent); in handle_ahash_req()
768 rctx->src_nents = spu_sg_count(rctx->src_sg, rctx->src_skip, in handle_ahash_req()
786 if ((rctx->total_sent == rctx->total_todo) && rctx->is_final) in handle_ahash_req()
1012 if (rctx->is_final && (rctx->total_sent == rctx->total_todo)) in handle_ahash_resp()
2645 rctx->dst_sg = rctx->src_sg; in aead_enqueue()
2646 rctx->dst_skip = rctx->src_skip; in aead_enqueue()
2679 rctx->src_sg, rctx->src_skip); in aead_enqueue()
[all …]
/openbmc/linux/crypto/
H A Dchacha20poly1305.c98 u8 tag[sizeof(rctx->tag)]; in poly_verify_tag()
114 sizeof(rctx->tag), 1); in poly_copy_tag()
131 if (rctx->cryptlen == 0) in chacha_decrypt()
145 rctx->cryptlen, creq->iv); in chacha_decrypt()
318 sg_init_one(preq->src, rctx->key, sizeof(rctx->key)); in poly_setkey()
368 rctx->assoclen = req->assoclen; in poly_genkey()
371 if (rctx->assoclen < 8) in poly_genkey()
373 rctx->assoclen -= 8; in poly_genkey()
376 memset(rctx->key, 0, sizeof(rctx->key)); in poly_genkey()
377 sg_init_one(creq->src, rctx->key, sizeof(rctx->key)); in poly_genkey()
[all …]
/openbmc/linux/drivers/crypto/
H A Dsahara.c765 if (rctx->last) in sahara_sha_init_hdr()
905 scatterwalk_map_and_copy(rctx->buf + rctx->buf_cnt, req->src, in sahara_sha_prepare_request()
914 memcpy(rctx->rembuf, rctx->buf, rctx->buf_cnt); in sahara_sha_prepare_request()
929 sg_set_buf(rctx->in_sg_chain, rctx->rembuf, rctx->buf_cnt); in sahara_sha_prepare_request()
931 rctx->in_sg = rctx->in_sg_chain; in sahara_sha_prepare_request()
934 rctx->in_sg = rctx->in_sg_chain; in sahara_sha_prepare_request()
935 sg_init_one(rctx->in_sg, rctx->rembuf, rctx->buf_cnt); in sahara_sha_prepare_request()
996 memcpy(rctx->context, dev->context_base, rctx->context_size); in sahara_sha_process()
999 memcpy(req->result, rctx->context, rctx->digest_size); in sahara_sha_process()
1077 memset(rctx, 0, sizeof(*rctx)); in sahara_sha_init()
[all …]
/openbmc/linux/drivers/crypto/allwinner/sun8i-ce/
H A Dsun8i-ce-hash.c119 rctx->fallback_req.result = areq->result; in sun8i_ce_hash_final()
144 rctx->fallback_req.nbytes = areq->nbytes; in sun8i_ce_hash_update()
145 rctx->fallback_req.src = areq->src; in sun8i_ce_hash_update()
160 rctx->fallback_req.nbytes = areq->nbytes; in sun8i_ce_hash_finup()
161 rctx->fallback_req.src = areq->src; in sun8i_ce_hash_finup()
162 rctx->fallback_req.result = areq->result; in sun8i_ce_hash_finup()
188 rctx->fallback_req.nbytes = areq->nbytes; in sun8i_ce_hash_digest_fb()
189 rctx->fallback_req.src = areq->src; in sun8i_ce_hash_digest_fb()
190 rctx->fallback_req.result = areq->result; in sun8i_ce_hash_digest_fb()
266 rctx->flow = e; in sun8i_ce_hash_digest()
[all …]
H A Dsun8i-ce-cipher.c153 flow = rctx->flow; in sun8i_ce_cipher_prepare()
197 rctx->ivlen = ivsize; in sun8i_ce_cipher_prepare()
204 rctx->addr_iv = dma_map_single(ce->dev, chan->bounce_iv, rctx->ivlen, in sun8i_ce_cipher_prepare()
268 rctx->nr_sgs = nr_sgs; in sun8i_ce_cipher_prepare()
283 if (rctx->addr_iv) in sun8i_ce_cipher_prepare()
284 dma_unmap_single(ce->dev, rctx->addr_iv, rctx->ivlen, DMA_TO_DEVICE); in sun8i_ce_cipher_prepare()
317 flow = rctx->flow; in sun8i_ce_cipher_unprepare()
332 dma_unmap_single(ce->dev, rctx->addr_iv, rctx->ivlen, DMA_TO_DEVICE); in sun8i_ce_cipher_unprepare()
356 flow = rctx->flow; in sun8i_ce_cipher_run()
388 rctx->flow = e; in sun8i_ce_skdecrypt()
[all …]
/openbmc/linux/drivers/crypto/gemini/
H A Dsl3516-ce-cipher.c187 rctx->t_src[i].len = todo; in sl3516_ce_cipher()
209 rctx->t_dst[i].len = todo; in sl3516_ce_cipher()
230 rctx->tqflag |= TQ1_CIPHER; in sl3516_ce_cipher()
236 rctx->h = &ecb->cipher; in sl3516_ce_cipher()
238 rctx->tqflag |= TQ4_KEY0; in sl3516_ce_cipher()
239 rctx->tqflag |= TQ5_KEY4; in sl3516_ce_cipher()
240 rctx->tqflag |= TQ6_KEY6; in sl3516_ce_cipher()
245 rctx->nr_sgs = nr_sgs; in sl3516_ce_cipher()
246 rctx->nr_sgd = nr_sgd; in sl3516_ce_cipher()
286 rctx->op_dir = CE_DECRYPTION; in sl3516_ce_skdecrypt()
[all …]

1234