Home
last modified time | relevance | path

Searched refs:cryp (Results 1 – 9 of 9) sorted by relevance

/drivers/crypto/stm32/
A Dstm32-cryp.c371 ctx->cryp = cryp; in stm32_cryp_find_dev()
373 cryp = ctx->cryp; in stm32_cryp_find_dev()
539 if (is_aes(cryp) && is_ecb(cryp)) in stm32_cryp_get_hw_mode()
542 if (is_aes(cryp) && is_cbc(cryp)) in stm32_cryp_get_hw_mode()
545 if (is_aes(cryp) && is_ctr(cryp)) in stm32_cryp_get_hw_mode()
548 if (is_aes(cryp) && is_gcm(cryp)) in stm32_cryp_get_hw_mode()
551 if (is_aes(cryp) && is_ccm(cryp)) in stm32_cryp_get_hw_mode()
851 if (!err && (!(is_gcm(cryp) || is_ccm(cryp) || is_ecb(cryp)))) in stm32_cryp_finish_req()
1680 cryp = ctx->cryp; in stm32_cryp_prepare_req()
1956 stm32_cryp_write(cryp, cryp->caps->iv1r, cryp->gcm_ctr - 2); in stm32_cryp_irq_write_gcm_padded_data()
[all …]
A DMakefile3 obj-$(CONFIG_CRYPTO_DEV_STM32_CRYP) += stm32-cryp.o
A DKconfig18 tristate "Support for STM32 cryp accelerators"
/drivers/crypto/starfive/
A Djh7110-cryp.c44 cryp = tmp; in starfive_cryp_find_dev()
47 ctx->cryp = cryp; in starfive_cryp_find_dev()
49 cryp = ctx->cryp; in starfive_cryp_find_dev()
54 return cryp; in starfive_cryp_find_dev()
71 cryp->tx = dma_request_chan(cryp->dev, "tx"); in starfive_dma_init()
73 return dev_err_probe(cryp->dev, PTR_ERR(cryp->tx), in starfive_dma_init()
76 cryp->rx = dma_request_chan(cryp->dev, "rx"); in starfive_dma_init()
79 return dev_err_probe(cryp->dev, PTR_ERR(cryp->rx), in starfive_dma_init()
98 cryp = devm_kzalloc(&pdev->dev, sizeof(*cryp), GFP_KERNEL); in starfive_cryp_probe()
99 if (!cryp) in starfive_cryp_probe()
[all …]
A Djh7110-aes.c88 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_aes_aead_hw_start() local
108 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_aes_set_alen() local
116 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_aes_set_mlen() local
133 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_aes_write_iv() local
161 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_aes_write_nonce() local
171 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_aes_write_key() local
199 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_aes_ccm_init() local
314 cryp->total_in, cryp->authsize, 1); in starfive_aes_read_authtag()
316 if (crypto_memneq(cryp->tag_in, cryp->tag_out, cryp->authsize)) in starfive_aes_read_authtag()
663 cryp->total_out = cryp->total_in; in starfive_aes_aead_do_one_req()
[all …]
A Djh7110-hash.c57 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_hash_wait_key_done() local
67 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_hash_hmac_key() local
115 cryp->cfg_in.src_maxburst = cryp->dma_maxburst; in starfive_hash_dma_init()
116 cryp->cfg_in.dst_maxburst = cryp->dma_maxburst; in starfive_hash_dma_init()
117 cryp->cfg_in.dst_addr = cryp->phys_base + STARFIVE_ALG_FIFO_OFFSET; in starfive_hash_dma_init()
119 dmaengine_slave_config(cryp->tx, &cryp->cfg_in); in starfive_hash_dma_init()
192 crypto_finalize_hash_request(cryp->engine, cryp->req.hreq, err); in starfive_hash_done_task()
201 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_hash_one_request() local
248 cryp->err = starfive_hash_wait_hmac_done(cryp); in starfive_hash_one_request()
328 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_hash_digest() local
[all …]
A Djh7110-rsa.c38 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_pka_wait_done() local
74 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_rsa_montgomery_form() local
107 writel(0x1000000, cryp->base + STARFIVE_PKA_CAER_OFFSET); in starfive_rsa_montgomery_form()
171 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_rsa_cpu_start() local
250 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_rsa_enc_core() local
290 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_rsa_enc() local
306 return dev_err_probe(cryp->dev, -EOVERFLOW, in starfive_rsa_enc()
321 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_rsa_dec() local
337 return dev_err_probe(cryp->dev, -EOVERFLOW, in starfive_rsa_dec()
542 ctx->cryp = starfive_cryp_find_dev(ctx); in starfive_rsa_init_tfm()
[all …]
A DMakefile4 jh7110-crypto-objs := jh7110-cryp.o jh7110-hash.o jh7110-rsa.o jh7110-aes.o
A Djh7110-cryp.h162 struct starfive_cryp_dev *cryp; member

Completed in 33 milliseconds