Lines Matching refs:assoclen
153 if (req->assoclen) in format_input()
185 unsigned int assoclen = req->assoclen; in crypto_ccm_auth() local
200 if (assoclen) { in crypto_ccm_auth()
201 ilen = format_adata(idata, assoclen); in crypto_ccm_auth()
211 ahash_request_set_crypt(ahreq, sg, NULL, assoclen + ilen + 16); in crypto_ccm_auth()
220 ilen = 16 - (assoclen + ilen) % 16; in crypto_ccm_auth()
246 req->assoclen + req->cryptlen, in crypto_ccm_encrypt_done()
280 sg = scatterwalk_ffwd(pctx->src + 1, req->src, req->assoclen); in crypto_ccm_init_crypt()
287 sg = scatterwalk_ffwd(pctx->dst + 1, req->dst, req->assoclen); in crypto_ccm_init_crypt()
681 scatterwalk_map_and_copy(iv + 16, req->src, 0, req->assoclen - 8, 0); in crypto_rfc4309_crypt()
684 sg_set_buf(rctx->src, iv + 16, req->assoclen - 8); in crypto_rfc4309_crypt()
685 sg = scatterwalk_ffwd(rctx->src + 1, req->src, req->assoclen); in crypto_rfc4309_crypt()
691 sg_set_buf(rctx->dst, iv + 16, req->assoclen - 8); in crypto_rfc4309_crypt()
692 sg = scatterwalk_ffwd(rctx->dst + 1, req->dst, req->assoclen); in crypto_rfc4309_crypt()
703 aead_request_set_ad(subreq, req->assoclen - 8); in crypto_rfc4309_crypt()
710 if (req->assoclen != 16 && req->assoclen != 20) in crypto_rfc4309_encrypt()
720 if (req->assoclen != 16 && req->assoclen != 20) in crypto_rfc4309_decrypt()