• Home
  • Raw
  • Download

Lines Matching refs:src

35 	struct scatterlist src[3];  member
45 struct scatterlist src[3]; member
193 sg_chain(sg, 3, req->src); in crypto_ccm_auth()
196 sg_chain(sg, 2, req->src); in crypto_ccm_auth()
268 sg_init_table(pctx->src, 3); in crypto_ccm_init_crypt()
269 sg_set_buf(pctx->src, tag, 16); in crypto_ccm_init_crypt()
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()
274 if (req->src != req->dst) { in crypto_ccm_init_crypt()
301 err = crypto_ccm_auth(req, sg_next(pctx->src), cryptlen); in crypto_ccm_encrypt()
305 dst = pctx->src; in crypto_ccm_encrypt()
306 if (req->src != req->dst) in crypto_ccm_encrypt()
312 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_encrypt()
335 dst = sg_next(req->src == req->dst ? pctx->src : pctx->dst); in crypto_ccm_decrypt_done()
365 scatterwalk_map_and_copy(authtag, sg_next(pctx->src), cryptlen, in crypto_ccm_decrypt()
368 dst = pctx->src; in crypto_ccm_decrypt()
369 if (req->src != req->dst) in crypto_ccm_decrypt()
377 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_decrypt()
621 scatterwalk_map_and_copy(iv + 16, req->src, 0, req->assoclen - 8, 0); in crypto_rfc4309_crypt()
623 sg_init_table(rctx->src, 3); in crypto_rfc4309_crypt()
624 sg_set_buf(rctx->src, iv + 16, req->assoclen - 8); in crypto_rfc4309_crypt()
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()
629 if (req->src != req->dst) { in crypto_rfc4309_crypt()
640 aead_request_set_crypt(subreq, rctx->src, in crypto_rfc4309_crypt()
641 req->src == req->dst ? rctx->src : rctx->dst, in crypto_rfc4309_crypt()