Lines Matching refs:dst
37 struct scatterlist dst[3]; member
47 struct scatterlist dst[3]; member
243 scatterwalk_map_and_copy(odata, req->dst, in crypto_ccm_encrypt_done()
282 if (req->src != req->dst) { in crypto_ccm_init_crypt()
283 sg_init_table(pctx->dst, 3); in crypto_ccm_init_crypt()
284 sg_set_buf(pctx->dst, tag, 16); 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()
299 struct scatterlist *dst; in crypto_ccm_encrypt() local
313 dst = pctx->src; in crypto_ccm_encrypt()
314 if (req->src != req->dst) in crypto_ccm_encrypt()
315 dst = pctx->dst; in crypto_ccm_encrypt()
320 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_encrypt()
326 scatterwalk_map_and_copy(odata, sg_next(dst), cryptlen, in crypto_ccm_encrypt()
339 struct scatterlist *dst; in crypto_ccm_decrypt_done() local
343 dst = sg_next(req->src == req->dst ? pctx->src : pctx->dst); in crypto_ccm_decrypt_done()
346 err = crypto_ccm_auth(req, dst, cryptlen); in crypto_ccm_decrypt_done()
359 struct scatterlist *dst; in crypto_ccm_decrypt() local
376 dst = pctx->src; in crypto_ccm_decrypt()
377 if (req->src != req->dst) in crypto_ccm_decrypt()
378 dst = pctx->dst; in crypto_ccm_decrypt()
385 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_decrypt()
390 err = crypto_ccm_auth(req, sg_next(dst), cryptlen); in crypto_ccm_decrypt()
667 if (req->src != req->dst) { in crypto_rfc4309_crypt()
668 sg_init_table(rctx->dst, 3); in crypto_rfc4309_crypt()
669 sg_set_buf(rctx->dst, iv + 16, req->assoclen - 8); 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()
679 req->src == req->dst ? rctx->src : rctx->dst, in crypto_rfc4309_crypt()