• Home
  • Raw
  • Download

Lines Matching refs:src

36 	struct scatterlist src[3];  member
46 struct scatterlist src[3]; member
201 sg_chain(sg, 3, req->src); in crypto_ccm_auth()
204 sg_chain(sg, 2, req->src); in crypto_ccm_auth()
276 sg_init_table(pctx->src, 3); in crypto_ccm_init_crypt()
277 sg_set_buf(pctx->src, tag, 16); in crypto_ccm_init_crypt()
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()
282 if (req->src != req->dst) { in crypto_ccm_init_crypt()
309 err = crypto_ccm_auth(req, sg_next(pctx->src), cryptlen); in crypto_ccm_encrypt()
313 dst = pctx->src; in crypto_ccm_encrypt()
314 if (req->src != req->dst) in crypto_ccm_encrypt()
320 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_encrypt()
343 dst = sg_next(req->src == req->dst ? pctx->src : pctx->dst); in crypto_ccm_decrypt_done()
373 scatterwalk_map_and_copy(authtag, sg_next(pctx->src), cryptlen, in crypto_ccm_decrypt()
376 dst = pctx->src; in crypto_ccm_decrypt()
377 if (req->src != req->dst) in crypto_ccm_decrypt()
385 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_decrypt()
659 scatterwalk_map_and_copy(iv + 16, req->src, 0, req->assoclen - 8, 0); in crypto_rfc4309_crypt()
661 sg_init_table(rctx->src, 3); 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()
664 if (sg != rctx->src + 1) in crypto_rfc4309_crypt()
665 sg_chain(rctx->src, 2, sg); in crypto_rfc4309_crypt()
667 if (req->src != req->dst) { in crypto_rfc4309_crypt()
678 aead_request_set_crypt(subreq, rctx->src, in crypto_rfc4309_crypt()
679 req->src == req->dst ? rctx->src : rctx->dst, in crypto_rfc4309_crypt()