Lines Matching refs:assoclen
54 if (req->assoclen) { in qce_aead_done()
71 totallen = req->cryptlen + req->assoclen; in qce_aead_done()
80 totallen = req->cryptlen + req->assoclen - ctx->authsize; in qce_aead_done()
120 unsigned int assoclen = req->assoclen; in qce_aead_prepare_dst_buf() local
124 totallen = rctx->cryptlen + assoclen; in qce_aead_prepare_dst_buf()
141 if (IS_CCM(rctx->flags) && assoclen) { in qce_aead_prepare_dst_buf()
143 msg_sg = scatterwalk_ffwd(__sg, req->dst, assoclen); in qce_aead_prepare_dst_buf()
146 rctx->assoclen); in qce_aead_prepare_dst_buf()
157 totallen = rctx->cryptlen + rctx->assoclen; in qce_aead_prepare_dst_buf()
191 unsigned int assoclen = rctx->assoclen; in qce_aead_ccm_prepare_buf_assoclen() local
201 totallen = cryptlen + req->assoclen; in qce_aead_ccm_prepare_buf_assoclen()
204 msg_sg = scatterwalk_ffwd(__sg, req->src, req->assoclen); in qce_aead_ccm_prepare_buf_assoclen()
206 rctx->adata = kzalloc((ALIGN(assoclen, 16) + MAX_CCM_ADATA_HEADER_LEN) * in qce_aead_ccm_prepare_buf_assoclen()
218 if (assoclen < 0xff00) { in qce_aead_ccm_prepare_buf_assoclen()
220 *(__be16 *)rctx->adata = cpu_to_be16(assoclen); in qce_aead_ccm_prepare_buf_assoclen()
224 *(__be32 *)(rctx->adata + 2) = cpu_to_be32(assoclen); in qce_aead_ccm_prepare_buf_assoclen()
228 if (sg_copy_to_buffer(req->src, sg_nents_for_len(req->src, assoclen), in qce_aead_ccm_prepare_buf_assoclen()
230 assoclen) != assoclen) in qce_aead_ccm_prepare_buf_assoclen()
234 rctx->assoclen = ALIGN(assoclen + adata_header_len, 16); in qce_aead_ccm_prepare_buf_assoclen()
249 sg_init_one(&rctx->adata_sg, rctx->adata, rctx->assoclen); in qce_aead_ccm_prepare_buf_assoclen()
251 rctx->assoclen); in qce_aead_ccm_prepare_buf_assoclen()
278 totallen = cryptlen + rctx->assoclen; in qce_aead_ccm_prepare_buf_assoclen()
310 totallen = rctx->cryptlen + rctx->assoclen; in qce_aead_prepare_buf()
338 if (rctx->assoclen) in qce_aead_ccm_prepare_buf()
397 if (rctx->assoclen) in qce_aead_create_ccm_nonce()
432 rctx->assoclen = req->assoclen - 8; in qce_aead_async_req_handle()
434 rctx->assoclen = req->assoclen; in qce_aead_async_req_handle()
492 if (IS_CCM(rctx->flags) && rctx->assoclen) { in qce_aead_async_req_handle()
534 aead_request_set_ad(&rctx->fallback_req, req->assoclen); in qce_aead_crypt()
549 if (crypto_ipsec_check_assoclen(req->assoclen)) in qce_aead_crypt()