Home
last modified time | relevance | path

Searched refs:skreq (Results 1 – 8 of 8) sorted by relevance

/linux-6.3-rc2/drivers/crypto/cavium/nitrox/
A Dnitrox_skcipher.c69 free_src_sglist(skreq); in nitrox_skcipher_callback()
70 free_dst_sglist(skreq); in nitrox_skcipher_callback()
93 scatterwalk_map_and_copy(skreq->iv, skreq->dst, start, ivsize, in nitrox_cbc_cipher_callback()
96 if (skreq->src != skreq->dst) { in nitrox_cbc_cipher_callback()
97 scatterwalk_map_and_copy(skreq->iv, skreq->src, start, in nitrox_cbc_cipher_callback()
221 skreq->cryptlen); in alloc_src_sglist()
242 skreq->cryptlen); in alloc_dst_sglist()
257 creq->flags = skreq->base.flags; in nitrox_skcipher_crypt()
281 free_src_sglist(skreq); in nitrox_skcipher_crypt()
287 skreq); in nitrox_skcipher_crypt()
[all …]
/linux-6.3-rc2/drivers/crypto/hisilicon/sec/
A Dsec_algs.c461 skreq->iv, in sec_skcipher_alg_callback()
468 skreq->iv, in sec_skcipher_alg_callback()
477 crypto_inc(skreq->iv, 16); in sec_skcipher_alg_callback()
532 dma_unmap_sg(dev, skreq->src, sec_req->len_in, in sec_skcipher_alg_callback()
534 if (skreq->src != skreq->dst) in sec_skcipher_alg_callback()
537 skcipher_request_complete(skreq, sec_req->err); in sec_skcipher_alg_callback()
723 bool split = skreq->src != skreq->dst; in sec_alg_skcipher_crypto()
727 sec_req->req_base = &skreq->base; in sec_alg_skcipher_crypto()
730 sec_req->len_in = sg_nents(skreq->src); in sec_alg_skcipher_crypto()
744 sec_req->len_out = sg_nents(skreq->dst); in sec_alg_skcipher_crypto()
[all …]
/linux-6.3-rc2/crypto/
A Dauthencesn.c169 SYNC_SKCIPHER_REQUEST_ON_STACK(skreq, ctx->null); in crypto_authenc_esn_copy()
171 skcipher_request_set_sync_tfm(skreq, ctx->null); in crypto_authenc_esn_copy()
172 skcipher_request_set_callback(skreq, aead_request_flags(req), in crypto_authenc_esn_copy()
176 return crypto_skcipher_encrypt(skreq); in crypto_authenc_esn_copy()
184 struct skcipher_request *skreq = (void *)(areq_ctx->tail + in crypto_authenc_esn_encrypt() local
205 skcipher_request_set_tfm(skreq, enc); in crypto_authenc_esn_encrypt()
210 err = crypto_skcipher_encrypt(skreq); in crypto_authenc_esn_encrypt()
224 struct skcipher_request *skreq = (void *)(areq_ctx->tail + in crypto_authenc_esn_decrypt_tail() local
251 skcipher_request_set_tfm(skreq, ctx->enc); in crypto_authenc_esn_decrypt_tail()
252 skcipher_request_set_callback(skreq, flags, in crypto_authenc_esn_decrypt_tail()
[all …]
A Dauthenc.c180 SYNC_SKCIPHER_REQUEST_ON_STACK(skreq, ctx->null); in crypto_authenc_copy_assoc()
182 skcipher_request_set_sync_tfm(skreq, ctx->null); in crypto_authenc_copy_assoc()
188 return crypto_skcipher_encrypt(skreq); in crypto_authenc_copy_assoc()
200 struct skcipher_request *skreq = (void *)(areq_ctx->tail + in crypto_authenc_encrypt() local
216 skcipher_request_set_tfm(skreq, enc); in crypto_authenc_encrypt()
221 err = crypto_skcipher_encrypt(skreq); in crypto_authenc_encrypt()
237 struct skcipher_request *skreq = (void *)(areq_ctx->tail + in crypto_authenc_decrypt_tail() local
254 skcipher_request_set_tfm(skreq, ctx->enc); in crypto_authenc_decrypt_tail()
255 skcipher_request_set_callback(skreq, flags, in crypto_authenc_decrypt_tail()
257 skcipher_request_set_crypt(skreq, src, dst, in crypto_authenc_decrypt_tail()
[all …]
A Dccm.c49 struct skcipher_request skreq; member
290 struct skcipher_request *skreq = &pctx->skreq; in crypto_ccm_encrypt() local
309 skcipher_request_set_tfm(skreq, ctx->ctr); in crypto_ccm_encrypt()
310 skcipher_request_set_callback(skreq, pctx->flags, in crypto_ccm_encrypt()
312 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_encrypt()
313 err = crypto_skcipher_encrypt(skreq); in crypto_ccm_encrypt()
349 struct skcipher_request *skreq = &pctx->skreq; in crypto_ccm_decrypt() local
373 skcipher_request_set_tfm(skreq, ctx->ctr); in crypto_ccm_decrypt()
374 skcipher_request_set_callback(skreq, pctx->flags, in crypto_ccm_decrypt()
376 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_decrypt()
[all …]
A Dgcm.c73 struct skcipher_request skreq; member
183 struct skcipher_request *skreq = &pctx->u.skreq; in crypto_gcm_init_crypt() local
188 skcipher_request_set_tfm(skreq, ctx->ctr); in crypto_gcm_init_crypt()
189 skcipher_request_set_crypt(skreq, pctx->src, dst, in crypto_gcm_init_crypt()
452 struct skcipher_request *skreq = &pctx->u.skreq; in crypto_gcm_encrypt() local
457 skcipher_request_set_callback(skreq, flags, gcm_encrypt_done, req); in crypto_gcm_encrypt()
459 return crypto_skcipher_encrypt(skreq) ?: in crypto_gcm_encrypt()
491 struct skcipher_request *skreq = &pctx->u.skreq; in gcm_dec_hash_continue() local
495 skcipher_request_set_callback(skreq, flags, gcm_decrypt_done, req); in gcm_dec_hash_continue()
496 return crypto_skcipher_decrypt(skreq) ?: crypto_gcm_verify(req); in gcm_dec_hash_continue()
A Dalgif_aead.c78 SYNC_SKCIPHER_REQUEST_ON_STACK(skreq, null_tfm); in crypto_aead_copy_sgl()
80 skcipher_request_set_sync_tfm(skreq, null_tfm); in crypto_aead_copy_sgl()
81 skcipher_request_set_callback(skreq, CRYPTO_TFM_REQ_MAY_SLEEP, in crypto_aead_copy_sgl()
83 skcipher_request_set_crypt(skreq, src, dst, len, NULL); in crypto_aead_copy_sgl()
85 return crypto_skcipher_encrypt(skreq); in crypto_aead_copy_sgl()
/linux-6.3-rc2/drivers/crypto/marvell/cesa/
A Dcipher.c145 struct skcipher_request *skreq = skcipher_request_cast(req); in mv_cesa_skcipher_process() local
150 return mv_cesa_skcipher_std_process(skreq, status); in mv_cesa_skcipher_process()
157 struct skcipher_request *skreq = skcipher_request_cast(req); in mv_cesa_skcipher_step() local
163 mv_cesa_skcipher_std_step(skreq); in mv_cesa_skcipher_step()
188 struct skcipher_request *skreq = skcipher_request_cast(req); in mv_cesa_skcipher_prepare() local
194 mv_cesa_skcipher_dma_prepare(skreq); in mv_cesa_skcipher_prepare()
196 mv_cesa_skcipher_std_prepare(skreq); in mv_cesa_skcipher_prepare()
204 mv_cesa_skcipher_cleanup(skreq); in mv_cesa_skcipher_req_cleanup()
215 atomic_sub(skreq->cryptlen, &engine->load); in mv_cesa_skcipher_complete()
225 memcpy(skreq->iv, in mv_cesa_skcipher_complete()
[all …]

Completed in 18 milliseconds