Lines Matching refs:assoclen
143 if (req->assoclen) in format_input()
175 unsigned int assoclen = req->assoclen; in crypto_ccm_auth() local
190 if (assoclen) { in crypto_ccm_auth()
191 ilen = format_adata(idata, assoclen); in crypto_ccm_auth()
201 ahash_request_set_crypt(ahreq, sg, NULL, assoclen + ilen + 16); in crypto_ccm_auth()
210 ilen = 16 - (assoclen + ilen) % 16; in crypto_ccm_auth()
236 req->assoclen + req->cryptlen, in crypto_ccm_encrypt_done()
270 sg = scatterwalk_ffwd(pctx->src + 1, req->src, req->assoclen); in crypto_ccm_init_crypt()
277 sg = scatterwalk_ffwd(pctx->dst + 1, req->dst, req->assoclen); in crypto_ccm_init_crypt()
620 scatterwalk_map_and_copy(iv + 16, req->src, 0, req->assoclen - 8, 0); in crypto_rfc4309_crypt()
623 sg_set_buf(rctx->src, iv + 16, req->assoclen - 8); in crypto_rfc4309_crypt()
624 sg = scatterwalk_ffwd(rctx->src + 1, req->src, req->assoclen); in crypto_rfc4309_crypt()
630 sg_set_buf(rctx->dst, iv + 16, req->assoclen - 8); in crypto_rfc4309_crypt()
631 sg = scatterwalk_ffwd(rctx->dst + 1, req->dst, req->assoclen); in crypto_rfc4309_crypt()
642 aead_request_set_ad(subreq, req->assoclen - 8); in crypto_rfc4309_crypt()
649 if (req->assoclen != 16 && req->assoclen != 20) in crypto_rfc4309_encrypt()
659 if (req->assoclen != 16 && req->assoclen != 20) in crypto_rfc4309_decrypt()