Lines Matching refs:assoclen
151 if (req->assoclen) in format_input()
183 unsigned int assoclen = req->assoclen; in crypto_ccm_auth() local
198 if (assoclen) { in crypto_ccm_auth()
199 ilen = format_adata(idata, assoclen); in crypto_ccm_auth()
209 ahash_request_set_crypt(ahreq, sg, NULL, assoclen + ilen + 16); in crypto_ccm_auth()
218 ilen = 16 - (assoclen + ilen) % 16; in crypto_ccm_auth()
244 req->assoclen + req->cryptlen, in crypto_ccm_encrypt_done()
278 sg = scatterwalk_ffwd(pctx->src + 1, req->src, req->assoclen); in crypto_ccm_init_crypt()
285 sg = scatterwalk_ffwd(pctx->dst + 1, req->dst, req->assoclen); in crypto_ccm_init_crypt()
659 scatterwalk_map_and_copy(iv + 16, req->src, 0, req->assoclen - 8, 0); in crypto_rfc4309_crypt()
662 sg_set_buf(rctx->src, iv + 16, req->assoclen - 8); in crypto_rfc4309_crypt()
663 sg = scatterwalk_ffwd(rctx->src + 1, req->src, req->assoclen); in crypto_rfc4309_crypt()
669 sg_set_buf(rctx->dst, iv + 16, req->assoclen - 8); in crypto_rfc4309_crypt()
670 sg = scatterwalk_ffwd(rctx->dst + 1, req->dst, req->assoclen); in crypto_rfc4309_crypt()
681 aead_request_set_ad(subreq, req->assoclen - 8); in crypto_rfc4309_crypt()
688 if (req->assoclen != 16 && req->assoclen != 20) in crypto_rfc4309_encrypt()
698 if (req->assoclen != 16 && req->assoclen != 20) in crypto_rfc4309_decrypt()