• Home
  • Raw
  • Download

Lines Matching refs:sg

184 	struct scatterlist sg[3];  in crypto_ccm_auth()  local
194 sg_init_table(sg, 3); in crypto_ccm_auth()
195 sg_set_buf(&sg[0], odata, 16); in crypto_ccm_auth()
200 sg_set_buf(&sg[1], idata, ilen); in crypto_ccm_auth()
201 sg_chain(sg, 3, req->src); in crypto_ccm_auth()
204 sg_chain(sg, 2, req->src); in crypto_ccm_auth()
209 ahash_request_set_crypt(ahreq, sg, NULL, assoclen + ilen + 16); in crypto_ccm_auth()
221 sg_init_table(sg, 2); in crypto_ccm_auth()
222 sg_set_buf(&sg[0], idata, ilen); in crypto_ccm_auth()
224 sg_chain(sg, 2, plain); in crypto_ccm_auth()
225 plain = sg; in crypto_ccm_auth()
261 struct scatterlist *sg; in crypto_ccm_init_crypt() local
278 sg = scatterwalk_ffwd(pctx->src + 1, req->src, req->assoclen); in crypto_ccm_init_crypt()
279 if (sg != pctx->src + 1) in crypto_ccm_init_crypt()
280 sg_chain(pctx->src, 2, sg); in crypto_ccm_init_crypt()
285 sg = scatterwalk_ffwd(pctx->dst + 1, req->dst, req->assoclen); in crypto_ccm_init_crypt()
286 if (sg != pctx->dst + 1) in crypto_ccm_init_crypt()
287 sg_chain(pctx->dst, 2, sg); in crypto_ccm_init_crypt()
649 struct scatterlist *sg; in crypto_rfc4309_crypt() local
663 sg = scatterwalk_ffwd(rctx->src + 1, req->src, req->assoclen); in crypto_rfc4309_crypt()
664 if (sg != rctx->src + 1) in crypto_rfc4309_crypt()
665 sg_chain(rctx->src, 2, sg); in crypto_rfc4309_crypt()
670 sg = scatterwalk_ffwd(rctx->dst + 1, req->dst, req->assoclen); in crypto_rfc4309_crypt()
671 if (sg != rctx->dst + 1) in crypto_rfc4309_crypt()
672 sg_chain(rctx->dst, 2, sg); in crypto_rfc4309_crypt()