Lines Matching refs:sg
176 struct scatterlist sg[3]; in crypto_ccm_auth() local
186 sg_init_table(sg, 3); in crypto_ccm_auth()
187 sg_set_buf(&sg[0], odata, 16); in crypto_ccm_auth()
192 sg_set_buf(&sg[1], idata, ilen); in crypto_ccm_auth()
193 sg_chain(sg, 3, req->src); in crypto_ccm_auth()
196 sg_chain(sg, 2, req->src); in crypto_ccm_auth()
201 ahash_request_set_crypt(ahreq, sg, NULL, assoclen + ilen + 16); in crypto_ccm_auth()
213 sg_init_table(sg, 2); in crypto_ccm_auth()
214 sg_set_buf(&sg[0], idata, ilen); in crypto_ccm_auth()
216 sg_chain(sg, 2, plain); in crypto_ccm_auth()
217 plain = sg; in crypto_ccm_auth()
253 struct scatterlist *sg; in crypto_ccm_init_crypt() local
270 sg = scatterwalk_ffwd(pctx->src + 1, req->src, req->assoclen); in crypto_ccm_init_crypt()
271 if (sg != pctx->src + 1) in crypto_ccm_init_crypt()
272 sg_chain(pctx->src, 2, sg); in crypto_ccm_init_crypt()
277 sg = scatterwalk_ffwd(pctx->dst + 1, req->dst, req->assoclen); in crypto_ccm_init_crypt()
278 if (sg != pctx->dst + 1) in crypto_ccm_init_crypt()
279 sg_chain(pctx->dst, 2, sg); in crypto_ccm_init_crypt()
611 struct scatterlist *sg; in crypto_rfc4309_crypt() local
625 sg = scatterwalk_ffwd(rctx->src + 1, req->src, req->assoclen); in crypto_rfc4309_crypt()
626 if (sg != rctx->src + 1) in crypto_rfc4309_crypt()
627 sg_chain(rctx->src, 2, sg); in crypto_rfc4309_crypt()
632 sg = scatterwalk_ffwd(rctx->dst + 1, req->dst, req->assoclen); in crypto_rfc4309_crypt()
633 if (sg != rctx->dst + 1) in crypto_rfc4309_crypt()
634 sg_chain(rctx->dst, 2, sg); in crypto_rfc4309_crypt()