Home
last modified time | relevance | path

Searched refs:areq (Results 1 – 25 of 69) sorted by relevance

123

/OK3568_Linux_fs/kernel/drivers/crypto/allwinner/sun4i-ss/
H A Dsun4i-ss-cipher.c15 static int noinline_for_stack sun4i_ss_opti_poll(struct skcipher_request *areq) in sun4i_ss_opti_poll() argument
17 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_opti_poll()
21 struct sun4i_cipher_req_ctx *ctx = skcipher_request_ctx(areq); in sun4i_ss_opti_poll()
31 unsigned int ileft = areq->cryptlen; in sun4i_ss_opti_poll()
32 unsigned int oleft = areq->cryptlen; in sun4i_ss_opti_poll()
40 if (!areq->cryptlen) in sun4i_ss_opti_poll()
43 if (!areq->src || !areq->dst) { in sun4i_ss_opti_poll()
48 if (areq->iv && ivsize > 0 && mode & SS_DECRYPTION) { in sun4i_ss_opti_poll()
52 scatterwalk_map_and_copy(backup_iv, areq->src, areq->cryptlen - ivsize, ivsize, 0); in sun4i_ss_opti_poll()
60 if (areq->iv) { in sun4i_ss_opti_poll()
[all …]
H A Dsun4i-ss-hash.c47 int sun4i_hash_init(struct ahash_request *areq) in sun4i_hash_init() argument
49 struct sun4i_req_ctx *op = ahash_request_ctx(areq); in sun4i_hash_init()
50 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun4i_hash_init()
62 int sun4i_hash_export_md5(struct ahash_request *areq, void *out) in sun4i_hash_export_md5() argument
64 struct sun4i_req_ctx *op = ahash_request_ctx(areq); in sun4i_hash_export_md5()
85 int sun4i_hash_import_md5(struct ahash_request *areq, const void *in) in sun4i_hash_import_md5() argument
87 struct sun4i_req_ctx *op = ahash_request_ctx(areq); in sun4i_hash_import_md5()
91 sun4i_hash_init(areq); in sun4i_hash_import_md5()
104 int sun4i_hash_export_sha1(struct ahash_request *areq, void *out) in sun4i_hash_export_sha1() argument
106 struct sun4i_req_ctx *op = ahash_request_ctx(areq); in sun4i_hash_export_sha1()
[all …]
H A Dsun4i-ss.h194 int sun4i_hash_init(struct ahash_request *areq);
195 int sun4i_hash_update(struct ahash_request *areq);
196 int sun4i_hash_final(struct ahash_request *areq);
197 int sun4i_hash_finup(struct ahash_request *areq);
198 int sun4i_hash_digest(struct ahash_request *areq);
199 int sun4i_hash_export_md5(struct ahash_request *areq, void *out);
200 int sun4i_hash_import_md5(struct ahash_request *areq, const void *in);
201 int sun4i_hash_export_sha1(struct ahash_request *areq, void *out);
202 int sun4i_hash_import_sha1(struct ahash_request *areq, const void *in);
204 int sun4i_ss_cbc_aes_encrypt(struct skcipher_request *areq);
[all …]
/OK3568_Linux_fs/kernel/drivers/crypto/allwinner/sun8i-ce/
H A Dsun8i-ce-cipher.c24 static int sun8i_ce_cipher_need_fallback(struct skcipher_request *areq) in sun8i_ce_cipher_need_fallback() argument
26 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ce_cipher_need_fallback()
29 if (sg_nents(areq->src) > MAX_SG || sg_nents(areq->dst) > MAX_SG) in sun8i_ce_cipher_need_fallback()
32 if (areq->cryptlen < crypto_skcipher_ivsize(tfm)) in sun8i_ce_cipher_need_fallback()
35 if (areq->cryptlen == 0 || areq->cryptlen % 16) in sun8i_ce_cipher_need_fallback()
38 sg = areq->src; in sun8i_ce_cipher_need_fallback()
44 sg = areq->dst; in sun8i_ce_cipher_need_fallback()
53 static int sun8i_ce_cipher_fallback(struct skcipher_request *areq) in sun8i_ce_cipher_fallback() argument
55 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun8i_ce_cipher_fallback()
57 struct sun8i_cipher_req_ctx *rctx = skcipher_request_ctx(areq); in sun8i_ce_cipher_fallback()
[all …]
H A Dsun8i-ce-hash.c73 int sun8i_ce_hash_init(struct ahash_request *areq) in sun8i_ce_hash_init() argument
75 struct sun8i_ce_hash_reqctx *rctx = ahash_request_ctx(areq); in sun8i_ce_hash_init()
76 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_init()
82 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ce_hash_init()
87 int sun8i_ce_hash_export(struct ahash_request *areq, void *out) in sun8i_ce_hash_export() argument
89 struct sun8i_ce_hash_reqctx *rctx = ahash_request_ctx(areq); in sun8i_ce_hash_export()
90 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_export()
94 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ce_hash_export()
99 int sun8i_ce_hash_import(struct ahash_request *areq, const void *in) in sun8i_ce_hash_import() argument
101 struct sun8i_ce_hash_reqctx *rctx = ahash_request_ctx(areq); in sun8i_ce_hash_import()
[all …]
H A Dsun8i-ce.h341 int sun8i_ce_enqueue(struct crypto_async_request *areq, u32 type);
349 int sun8i_ce_skdecrypt(struct skcipher_request *areq);
350 int sun8i_ce_skencrypt(struct skcipher_request *areq);
358 int sun8i_ce_hash_init(struct ahash_request *areq);
359 int sun8i_ce_hash_export(struct ahash_request *areq, void *out);
360 int sun8i_ce_hash_import(struct ahash_request *areq, const void *in);
361 int sun8i_ce_hash(struct ahash_request *areq);
362 int sun8i_ce_hash_final(struct ahash_request *areq);
363 int sun8i_ce_hash_update(struct ahash_request *areq);
364 int sun8i_ce_hash_finup(struct ahash_request *areq);
[all …]
/OK3568_Linux_fs/kernel/drivers/crypto/amlogic/
H A Damlogic-gxl-cipher.c25 static bool meson_cipher_need_fallback(struct skcipher_request *areq) in meson_cipher_need_fallback() argument
27 struct scatterlist *src_sg = areq->src; in meson_cipher_need_fallback()
28 struct scatterlist *dst_sg = areq->dst; in meson_cipher_need_fallback()
30 if (areq->cryptlen == 0) in meson_cipher_need_fallback()
58 static int meson_cipher_do_fallback(struct skcipher_request *areq) in meson_cipher_do_fallback() argument
60 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in meson_cipher_do_fallback()
62 struct meson_cipher_req_ctx *rctx = skcipher_request_ctx(areq); in meson_cipher_do_fallback()
72 skcipher_request_set_callback(&rctx->fallback_req, areq->base.flags, in meson_cipher_do_fallback()
73 areq->base.complete, areq->base.data); in meson_cipher_do_fallback()
74 skcipher_request_set_crypt(&rctx->fallback_req, areq->src, areq->dst, in meson_cipher_do_fallback()
[all …]
/OK3568_Linux_fs/kernel/drivers/crypto/allwinner/sun8i-ss/
H A Dsun8i-ss-cipher.c23 static bool sun8i_ss_need_fallback(struct skcipher_request *areq) in sun8i_ss_need_fallback() argument
25 struct scatterlist *in_sg = areq->src; in sun8i_ss_need_fallback()
26 struct scatterlist *out_sg = areq->dst; in sun8i_ss_need_fallback()
29 if (areq->cryptlen == 0 || areq->cryptlen % 16) in sun8i_ss_need_fallback()
32 if (sg_nents(areq->src) > 8 || sg_nents(areq->dst) > 8) in sun8i_ss_need_fallback()
35 sg = areq->src; in sun8i_ss_need_fallback()
45 sg = areq->dst; in sun8i_ss_need_fallback()
57 in_sg = areq->src; in sun8i_ss_need_fallback()
58 out_sg = areq->dst; in sun8i_ss_need_fallback()
70 static int sun8i_ss_cipher_fallback(struct skcipher_request *areq) in sun8i_ss_cipher_fallback() argument
[all …]
H A Dsun8i-ss-hash.c73 int sun8i_ss_hash_init(struct ahash_request *areq) in sun8i_ss_hash_init() argument
75 struct sun8i_ss_hash_reqctx *rctx = ahash_request_ctx(areq); in sun8i_ss_hash_init()
76 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ss_hash_init()
82 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ss_hash_init()
87 int sun8i_ss_hash_export(struct ahash_request *areq, void *out) in sun8i_ss_hash_export() argument
89 struct sun8i_ss_hash_reqctx *rctx = ahash_request_ctx(areq); in sun8i_ss_hash_export()
90 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ss_hash_export()
94 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ss_hash_export()
99 int sun8i_ss_hash_import(struct ahash_request *areq, const void *in) in sun8i_ss_hash_import() argument
101 struct sun8i_ss_hash_reqctx *rctx = ahash_request_ctx(areq); in sun8i_ss_hash_import()
[all …]
H A Dsun8i-ss.h286 int sun8i_ss_enqueue(struct crypto_async_request *areq, u32 type);
294 int sun8i_ss_skdecrypt(struct skcipher_request *areq);
295 int sun8i_ss_skencrypt(struct skcipher_request *areq);
308 int sun8i_ss_hash_init(struct ahash_request *areq);
309 int sun8i_ss_hash_export(struct ahash_request *areq, void *out);
310 int sun8i_ss_hash_import(struct ahash_request *areq, const void *in);
311 int sun8i_ss_hash_final(struct ahash_request *areq);
312 int sun8i_ss_hash_update(struct ahash_request *areq);
313 int sun8i_ss_hash_finup(struct ahash_request *areq);
314 int sun8i_ss_hash_digest(struct ahash_request *areq);
/OK3568_Linux_fs/kernel/drivers/crypto/cavium/nitrox/
H A Dnitrox_aead.c193 struct aead_request *areq = arg; in nitrox_aead_callback() local
194 struct nitrox_aead_rctx *rctx = aead_request_ctx(areq); in nitrox_aead_callback()
203 areq->base.complete(&areq->base, err); in nitrox_aead_callback()
214 static int nitrox_aes_gcm_enc(struct aead_request *areq) in nitrox_aes_gcm_enc() argument
216 struct crypto_aead *aead = crypto_aead_reqtfm(areq); in nitrox_aes_gcm_enc()
218 struct nitrox_aead_rctx *rctx = aead_request_ctx(areq); in nitrox_aes_gcm_enc()
223 if (!nitrox_aes_gcm_assoclen_supported(areq->assoclen)) in nitrox_aes_gcm_enc()
226 memcpy(fctx->crypto.iv, areq->iv, GCM_AES_SALT_SIZE); in nitrox_aes_gcm_enc()
228 rctx->cryptlen = areq->cryptlen; in nitrox_aes_gcm_enc()
229 rctx->assoclen = areq->assoclen; in nitrox_aes_gcm_enc()
[all …]
/OK3568_Linux_fs/kernel/drivers/crypto/inside-secure/
H A Dsafexcel_hash.c223 static int safexcel_ahash_enqueue(struct ahash_request *areq);
231 struct ahash_request *areq = ahash_request_cast(async); in safexcel_handle_req_result() local
232 struct crypto_ahash *ahash = crypto_ahash_reqtfm(areq); in safexcel_handle_req_result()
233 struct safexcel_ahash_req *sreq = ahash_request_ctx(areq); in safexcel_handle_req_result()
251 dma_unmap_sg(priv->dev, areq->src, sreq->nents, DMA_TO_DEVICE); in safexcel_handle_req_result()
284 areq->nbytes = 0; in safexcel_handle_req_result()
285 safexcel_ahash_enqueue(areq); in safexcel_handle_req_result()
294 *(__le32 *)areq->result = ~sreq->state[0]; in safexcel_handle_req_result()
296 memcpy(areq->result, sreq->state, in safexcel_handle_req_result()
313 struct ahash_request *areq = ahash_request_cast(async); in safexcel_ahash_send_req() local
[all …]
/OK3568_Linux_fs/kernel/crypto/
H A Dalgif_skcipher.c60 struct af_alg_async_req *areq; in _skcipher_recvmsg() local
71 areq = af_alg_alloc_areq(sk, sizeof(struct af_alg_async_req) + in _skcipher_recvmsg()
73 if (IS_ERR(areq)) in _skcipher_recvmsg()
74 return PTR_ERR(areq); in _skcipher_recvmsg()
77 err = af_alg_get_rsgl(sk, msg, flags, areq, ctx->used, &len); in _skcipher_recvmsg()
92 areq->tsgl_entries = af_alg_count_tsgl(sk, len, 0); in _skcipher_recvmsg()
93 if (!areq->tsgl_entries) in _skcipher_recvmsg()
94 areq->tsgl_entries = 1; in _skcipher_recvmsg()
95 areq->tsgl = sock_kmalloc(sk, array_size(sizeof(*areq->tsgl), in _skcipher_recvmsg()
96 areq->tsgl_entries), in _skcipher_recvmsg()
[all …]
H A Dalgif_aead.c100 struct af_alg_async_req *areq; in _aead_recvmsg() local
153 areq = af_alg_alloc_areq(sk, sizeof(struct af_alg_async_req) + in _aead_recvmsg()
155 if (IS_ERR(areq)) in _aead_recvmsg()
156 return PTR_ERR(areq); in _aead_recvmsg()
159 err = af_alg_get_rsgl(sk, msg, flags, areq, outlen, &usedpages); in _aead_recvmsg()
213 rsgl_src = areq->first_rsgl.sgl.sg; in _aead_recvmsg()
227 areq->first_rsgl.sgl.sg, processed); in _aead_recvmsg()
245 areq->first_rsgl.sgl.sg, outlen); in _aead_recvmsg()
250 areq->tsgl_entries = af_alg_count_tsgl(sk, processed, in _aead_recvmsg()
252 if (!areq->tsgl_entries) in _aead_recvmsg()
[all …]
H A Daf_alg.c662 static void af_alg_free_areq_sgls(struct af_alg_async_req *areq) in af_alg_free_areq_sgls() argument
664 struct sock *sk = areq->sk; in af_alg_free_areq_sgls()
672 list_for_each_entry_safe(rsgl, tmp, &areq->rsgl_list, list) { in af_alg_free_areq_sgls()
676 if (rsgl != &areq->first_rsgl) in af_alg_free_areq_sgls()
680 tsgl = areq->tsgl; in af_alg_free_areq_sgls()
682 for_each_sg(tsgl, sg, areq->tsgl_entries, i) { in af_alg_free_areq_sgls()
688 sock_kfree_s(sk, tsgl, areq->tsgl_entries * sizeof(*tsgl)); in af_alg_free_areq_sgls()
1039 void af_alg_free_resources(struct af_alg_async_req *areq) in af_alg_free_resources() argument
1041 struct sock *sk = areq->sk; in af_alg_free_resources()
1043 af_alg_free_areq_sgls(areq); in af_alg_free_resources()
[all …]
H A Dchacha20poly1305.c118 static void chacha_decrypt_done(struct crypto_async_request *areq, int err) in chacha_decrypt_done() argument
120 async_done_continue(areq->data, err, poly_verify_tag); in chacha_decrypt_done()
164 static void poly_tail_done(struct crypto_async_request *areq, int err) in poly_tail_done() argument
166 async_done_continue(areq->data, err, poly_tail_continue); in poly_tail_done()
194 static void poly_cipherpad_done(struct crypto_async_request *areq, int err) in poly_cipherpad_done() argument
196 async_done_continue(areq->data, err, poly_tail); in poly_cipherpad_done()
223 static void poly_cipher_done(struct crypto_async_request *areq, int err) in poly_cipher_done() argument
225 async_done_continue(areq->data, err, poly_cipherpad); in poly_cipher_done()
253 static void poly_adpad_done(struct crypto_async_request *areq, int err) in poly_adpad_done() argument
255 async_done_continue(areq->data, err, poly_cipher); in poly_adpad_done()
[all …]
H A Dahash.c287 struct ahash_request *areq = req->data; in ahash_op_unaligned_done() local
290 ahash_notify_einprogress(areq); in ahash_op_unaligned_done()
304 ahash_restore_req(areq, err); in ahash_op_unaligned_done()
307 areq->base.complete(&areq->base, err); in ahash_op_unaligned_done()
387 struct ahash_request *areq = req->data; in ahash_def_finup_done2() local
392 ahash_restore_req(areq, err); in ahash_def_finup_done2()
394 areq->base.complete(&areq->base, err); in ahash_def_finup_done2()
415 struct ahash_request *areq = req->data; in ahash_def_finup_done1() local
418 ahash_notify_einprogress(areq); in ahash_def_finup_done1()
422 areq->base.flags &= ~CRYPTO_TFM_REQ_MAY_SLEEP; in ahash_def_finup_done1()
[all …]
/OK3568_Linux_fs/kernel/drivers/crypto/
H A Dtalitos.c988 struct aead_request *areq, bool encrypt) in ipsec_esp_unmap() argument
990 struct crypto_aead *aead = crypto_aead_reqtfm(areq); in ipsec_esp_unmap()
994 unsigned int cryptlen = areq->cryptlen - (encrypt ? 0 : authsize); in ipsec_esp_unmap()
1003 talitos_sg_unmap(dev, edesc, areq->src, areq->dst, in ipsec_esp_unmap()
1004 cryptlen + authsize, areq->assoclen); in ipsec_esp_unmap()
1013 sg_pcopy_to_buffer(areq->dst, dst_nents, ctx->iv, ivsize, in ipsec_esp_unmap()
1014 areq->assoclen + cryptlen - ivsize); in ipsec_esp_unmap()
1025 struct aead_request *areq = context; in ipsec_esp_encrypt_done() local
1026 struct crypto_aead *authenc = crypto_aead_reqtfm(areq); in ipsec_esp_encrypt_done()
1032 ipsec_esp_unmap(dev, edesc, areq, true); in ipsec_esp_encrypt_done()
[all …]
H A Datmel-i2c.h163 void (*cbk)(struct atmel_i2c_work_data *work_data, void *areq,
165 void *areq; member
174 void *areq, int status),
175 void *areq);
H A Dpicoxcell_crypto.c311 static int spacc_aead_make_ddts(struct aead_request *areq) in spacc_aead_make_ddts() argument
313 struct crypto_aead *aead = crypto_aead_reqtfm(areq); in spacc_aead_make_ddts()
314 struct spacc_req *req = aead_request_ctx(areq); in spacc_aead_make_ddts()
322 total = areq->assoclen + areq->cryptlen; in spacc_aead_make_ddts()
326 src_nents = sg_nents_for_len(areq->src, total); in spacc_aead_make_ddts()
335 if (areq->src != areq->dst) { in spacc_aead_make_ddts()
336 dst_nents = sg_nents_for_len(areq->dst, total); in spacc_aead_make_ddts()
357 src_ents = dma_map_sg(engine->dev, areq->src, src_nents, in spacc_aead_make_ddts()
362 dst_ents = dma_map_sg(engine->dev, areq->dst, dst_nents, in spacc_aead_make_ddts()
366 dma_unmap_sg(engine->dev, areq->src, src_nents, in spacc_aead_make_ddts()
[all …]
/OK3568_Linux_fs/kernel/drivers/crypto/stm32/
H A Dstm32-cryp.c139 struct aead_request *areq; member
356 return is_encrypt(cryp) ? cryp->areq->cryptlen : in stm32_cryp_get_input_text_len()
357 cryp->areq->cryptlen - cryp->authsize; in stm32_cryp_get_input_text_len()
366 memcpy(iv, cryp->areq->iv, 12); in stm32_cryp_gcm_init()
381 if (cryp->areq->assoclen) { in stm32_cryp_gcm_init()
432 u32 alen = cryp->areq->assoclen; in stm32_cryp_write_ccm_first_header()
473 memcpy(iv, cryp->areq->iv, AES_BLOCK_SIZE); in stm32_cryp_ccm_init()
483 if (cryp->areq->assoclen) in stm32_cryp_ccm_init()
514 if (cryp->areq->assoclen) { in stm32_cryp_ccm_init()
630 crypto_finalize_aead_request(cryp->engine, cryp->areq, err); in stm32_cryp_finish_req()
[all …]
/OK3568_Linux_fs/kernel/drivers/crypto/xilinx/
H A Dzynqmp-aes-gcm.c207 struct aead_request *areq = in zynqmp_handle_aes_req() local
211 struct zynqmp_aead_req_ctx *rq_ctx = aead_request_ctx(areq); in zynqmp_handle_aes_req()
216 need_fallback = zynqmp_fallback_check(tfm_ctx, areq); in zynqmp_handle_aes_req()
221 aead_request_set_callback(subreq, areq->base.flags, in zynqmp_handle_aes_req()
223 aead_request_set_crypt(subreq, areq->src, areq->dst, in zynqmp_handle_aes_req()
224 areq->cryptlen, areq->iv); in zynqmp_handle_aes_req()
225 aead_request_set_ad(subreq, areq->assoclen); in zynqmp_handle_aes_req()
231 err = zynqmp_aes_aead_cipher(areq); in zynqmp_handle_aes_req()
234 crypto_finalize_aead_request(engine, areq, err); in zynqmp_handle_aes_req()
/OK3568_Linux_fs/kernel/drivers/crypto/axis/
H A Dartpec6_crypto.c359 static int artpec6_crypto_prepare_aead(struct aead_request *areq);
360 static int artpec6_crypto_prepare_crypto(struct skcipher_request *areq);
361 static int artpec6_crypto_prepare_hash(struct ahash_request *areq);
1307 static int artpec6_crypto_prepare_hash(struct ahash_request *areq) in artpec6_crypto_prepare_hash() argument
1309 struct artpec6_hashalg_context *ctx = crypto_tfm_ctx(areq->base.tfm); in artpec6_crypto_prepare_hash()
1310 struct artpec6_hash_request_context *req_ctx = ahash_request_ctx(areq); in artpec6_crypto_prepare_hash()
1311 size_t digestsize = crypto_ahash_digestsize(crypto_ahash_reqtfm(areq)); in artpec6_crypto_prepare_hash()
1314 crypto_ahash_tfm(crypto_ahash_reqtfm(areq))); in artpec6_crypto_prepare_hash()
1400 size_t total_bytes = areq->nbytes + req_ctx->partial_bytes; in artpec6_crypto_prepare_hash()
1426 artpec6_crypto_walk_init(&walk, areq->src); in artpec6_crypto_prepare_hash()
[all …]
/OK3568_Linux_fs/kernel/drivers/crypto/marvell/octeontx/
H A Dotx_cptvf_reqmgr.c91 pentry->areq = NULL; in free_pentry()
312 gfp = (req->areq->flags & CRYPTO_TFM_REQ_MAY_SLEEP) ? GFP_KERNEL : in process_request()
356 pentry->areq = req->areq; in process_request()
513 struct crypto_async_request *areq; in process_pending_queue() local
574 areq = resume_pentry->areq; in process_pending_queue()
583 callback(-EINPROGRESS, areq, cpt_info); in process_pending_queue()
589 areq = pentry->areq; in process_pending_queue()
602 callback(res_code, areq, cpt_info); in process_pending_queue()
/OK3568_Linux_fs/kernel/drivers/crypto/qat/qat_common/
H A Dqat_algs.c805 struct aead_request *areq = qat_req->aead_req; in qat_aead_alg_callback() local
812 areq->base.complete(&areq->base, res); in qat_aead_alg_callback()
845 static int qat_alg_aead_dec(struct aead_request *areq) in qat_alg_aead_dec() argument
847 struct crypto_aead *aead_tfm = crypto_aead_reqtfm(areq); in qat_alg_aead_dec()
850 struct qat_crypto_request *qat_req = aead_request_ctx(areq); in qat_alg_aead_dec()
858 cipher_len = areq->cryptlen - digst_size; in qat_alg_aead_dec()
862 ret = qat_alg_sgl_to_bufl(ctx->inst, areq->src, areq->dst, qat_req); in qat_alg_aead_dec()
869 qat_req->aead_req = areq; in qat_alg_aead_dec()
876 cipher_param->cipher_offset = areq->assoclen; in qat_alg_aead_dec()
877 memcpy(cipher_param->u.cipher_IV_array, areq->iv, AES_BLOCK_SIZE); in qat_alg_aead_dec()
[all …]

123