Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/crypto/cavium/nitrox/
Dnitrox_skcipher.c137 static int alloc_src_sglist(struct skcipher_request *skreq, int ivsize) in alloc_src_sglist() argument
139 struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq); in alloc_src_sglist()
140 int nents = sg_nents(skreq->src) + 1; in alloc_src_sglist()
148 nitrox_creq_copy_iv(nkreq->src, skreq->iv, ivsize); in alloc_src_sglist()
149 nitrox_creq_set_src_sg(nkreq, nents, ivsize, skreq->src, in alloc_src_sglist()
150 skreq->cryptlen); in alloc_src_sglist()
155 static int alloc_dst_sglist(struct skcipher_request *skreq, int ivsize) in alloc_dst_sglist() argument
157 struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq); in alloc_dst_sglist()
158 int nents = sg_nents(skreq->dst) + 3; in alloc_dst_sglist()
170 nitrox_creq_set_dst_sg(nkreq, nents, ivsize, skreq->dst, in alloc_dst_sglist()
[all …]
/Linux-v5.4/drivers/block/
Dskd_main.c361 struct skd_request_context *skreq);
363 struct skd_request_context *skreq);
377 struct skd_request_context *skreq, const char *event);
424 struct skd_request_context *skreq) in skd_prep_zerosize_flush_cdb() argument
426 skreq->flush_cmd = 1; in skd_prep_zerosize_flush_cdb()
487 struct skd_request_context *const skreq = blk_mq_rq_to_pdu(req); in skd_mq_queue_rq() local
498 skreq->retries = 0; in skd_mq_queue_rq()
507 SKD_ASSERT(skreq->state == SKD_REQ_STATE_IDLE); in skd_mq_queue_rq()
513 skreq->id = tag + SKD_ID_RW_REQUEST; in skd_mq_queue_rq()
514 skreq->flush_cmd = 0; in skd_mq_queue_rq()
[all …]
/Linux-v5.4/drivers/crypto/hisilicon/sec/
Dsec_algs.c423 struct skcipher_request *skreq = container_of(req_base, in sec_skcipher_alg_callback() local
426 struct sec_request *sec_req = skcipher_request_ctx(skreq); in sec_skcipher_alg_callback()
430 struct crypto_skcipher *atfm = crypto_skcipher_reqtfm(skreq); in sec_skcipher_alg_callback()
460 skreq->iv, in sec_skcipher_alg_callback()
467 skreq->iv, in sec_skcipher_alg_callback()
476 crypto_inc(skreq->iv, 16); in sec_skcipher_alg_callback()
531 dma_unmap_sg(dev, skreq->src, sec_req->len_in, in sec_skcipher_alg_callback()
533 if (skreq->src != skreq->dst) in sec_skcipher_alg_callback()
534 dma_unmap_sg(dev, skreq->dst, sec_req->len_out, in sec_skcipher_alg_callback()
536 skreq->base.complete(&skreq->base, sec_req->err); in sec_skcipher_alg_callback()
[all …]
/Linux-v5.4/crypto/
Dauthencesn.c181 SYNC_SKCIPHER_REQUEST_ON_STACK(skreq, ctx->null); in crypto_authenc_esn_copy()
183 skcipher_request_set_sync_tfm(skreq, ctx->null); in crypto_authenc_esn_copy()
184 skcipher_request_set_callback(skreq, aead_request_flags(req), in crypto_authenc_esn_copy()
186 skcipher_request_set_crypt(skreq, req->src, req->dst, len, NULL); in crypto_authenc_esn_copy()
188 return crypto_skcipher_encrypt(skreq); in crypto_authenc_esn_copy()
196 struct skcipher_request *skreq = (void *)(areq_ctx->tail + in crypto_authenc_esn_encrypt() local
217 skcipher_request_set_tfm(skreq, enc); in crypto_authenc_esn_encrypt()
218 skcipher_request_set_callback(skreq, aead_request_flags(req), in crypto_authenc_esn_encrypt()
220 skcipher_request_set_crypt(skreq, src, dst, cryptlen, req->iv); in crypto_authenc_esn_encrypt()
222 err = crypto_skcipher_encrypt(skreq); in crypto_authenc_esn_encrypt()
[all …]
Dauthenc.c191 SYNC_SKCIPHER_REQUEST_ON_STACK(skreq, ctx->null); in crypto_authenc_copy_assoc()
193 skcipher_request_set_sync_tfm(skreq, ctx->null); in crypto_authenc_copy_assoc()
194 skcipher_request_set_callback(skreq, aead_request_flags(req), in crypto_authenc_copy_assoc()
196 skcipher_request_set_crypt(skreq, req->src, req->dst, req->assoclen, in crypto_authenc_copy_assoc()
199 return crypto_skcipher_encrypt(skreq); in crypto_authenc_copy_assoc()
211 struct skcipher_request *skreq = (void *)(areq_ctx->tail + in crypto_authenc_encrypt() local
227 skcipher_request_set_tfm(skreq, enc); in crypto_authenc_encrypt()
228 skcipher_request_set_callback(skreq, aead_request_flags(req), in crypto_authenc_encrypt()
230 skcipher_request_set_crypt(skreq, src, dst, cryptlen, req->iv); in crypto_authenc_encrypt()
232 err = crypto_skcipher_encrypt(skreq); in crypto_authenc_encrypt()
[all …]
Dccm.c50 struct skcipher_request skreq; member
298 struct skcipher_request *skreq = &pctx->skreq; in crypto_ccm_encrypt() local
317 skcipher_request_set_tfm(skreq, ctx->ctr); in crypto_ccm_encrypt()
318 skcipher_request_set_callback(skreq, pctx->flags, in crypto_ccm_encrypt()
320 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_encrypt()
321 err = crypto_skcipher_encrypt(skreq); in crypto_ccm_encrypt()
358 struct skcipher_request *skreq = &pctx->skreq; in crypto_ccm_decrypt() local
382 skcipher_request_set_tfm(skreq, ctx->ctr); in crypto_ccm_decrypt()
383 skcipher_request_set_callback(skreq, pctx->flags, in crypto_ccm_decrypt()
385 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_decrypt()
[all …]
Dgcm.c74 struct skcipher_request skreq; member
189 struct skcipher_request *skreq = &pctx->u.skreq; in crypto_gcm_init_crypt() local
194 skcipher_request_set_tfm(skreq, ctx->ctr); in crypto_gcm_init_crypt()
195 skcipher_request_set_crypt(skreq, pctx->src, dst, in crypto_gcm_init_crypt()
460 struct skcipher_request *skreq = &pctx->u.skreq; in crypto_gcm_encrypt() local
465 skcipher_request_set_callback(skreq, flags, gcm_encrypt_done, req); in crypto_gcm_encrypt()
467 return crypto_skcipher_encrypt(skreq) ?: in crypto_gcm_encrypt()
499 struct skcipher_request *skreq = &pctx->u.skreq; in gcm_dec_hash_continue() local
503 skcipher_request_set_callback(skreq, flags, gcm_decrypt_done, req); in gcm_dec_hash_continue()
504 return crypto_skcipher_decrypt(skreq) ?: crypto_gcm_verify(req); in gcm_dec_hash_continue()
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_BACKLOG, 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-v5.4/drivers/crypto/marvell/
Dcipher.c136 struct skcipher_request *skreq = skcipher_request_cast(req); in mv_cesa_skcipher_process() local
137 struct mv_cesa_skcipher_req *creq = skcipher_request_ctx(skreq); in mv_cesa_skcipher_process()
141 return mv_cesa_skcipher_std_process(skreq, status); in mv_cesa_skcipher_process()
148 struct skcipher_request *skreq = skcipher_request_cast(req); in mv_cesa_skcipher_step() local
149 struct mv_cesa_skcipher_req *creq = skcipher_request_ctx(skreq); in mv_cesa_skcipher_step()
154 mv_cesa_skcipher_std_step(skreq); in mv_cesa_skcipher_step()
179 struct skcipher_request *skreq = skcipher_request_cast(req); in mv_cesa_skcipher_prepare() local
180 struct mv_cesa_skcipher_req *creq = skcipher_request_ctx(skreq); in mv_cesa_skcipher_prepare()
184 mv_cesa_skcipher_dma_prepare(skreq); in mv_cesa_skcipher_prepare()
186 mv_cesa_skcipher_std_prepare(skreq); in mv_cesa_skcipher_prepare()
[all …]