Lines Matching refs:dst

37 	struct scatterlist dst[3];  member
47 struct scatterlist dst[3]; member
232 scatterwalk_map_and_copy(odata, req->dst, in crypto_ccm_encrypt_done()
271 if (req->src != req->dst) { in crypto_ccm_init_crypt()
272 sg_init_table(pctx->dst, 3); in crypto_ccm_init_crypt()
273 sg_set_buf(pctx->dst, tag, 16); in crypto_ccm_init_crypt()
274 sg = scatterwalk_ffwd(pctx->dst + 1, req->dst, req->assoclen); in crypto_ccm_init_crypt()
275 if (sg != pctx->dst + 1) in crypto_ccm_init_crypt()
276 sg_chain(pctx->dst, 2, sg); in crypto_ccm_init_crypt()
288 struct scatterlist *dst; in crypto_ccm_encrypt() local
302 dst = pctx->src; in crypto_ccm_encrypt()
303 if (req->src != req->dst) in crypto_ccm_encrypt()
304 dst = pctx->dst; in crypto_ccm_encrypt()
309 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_encrypt()
315 scatterwalk_map_and_copy(odata, sg_next(dst), cryptlen, in crypto_ccm_encrypt()
327 struct scatterlist *dst; in crypto_ccm_decrypt_done() local
331 dst = sg_next(req->src == req->dst ? pctx->src : pctx->dst); in crypto_ccm_decrypt_done()
334 err = crypto_ccm_auth(req, dst, cryptlen); in crypto_ccm_decrypt_done()
347 struct scatterlist *dst; in crypto_ccm_decrypt() local
364 dst = pctx->src; in crypto_ccm_decrypt()
365 if (req->src != req->dst) in crypto_ccm_decrypt()
366 dst = pctx->dst; in crypto_ccm_decrypt()
373 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_decrypt()
378 err = crypto_ccm_auth(req, sg_next(dst), cryptlen); in crypto_ccm_decrypt()
623 if (req->src != req->dst) { in crypto_rfc4309_crypt()
624 sg_init_table(rctx->dst, 3); in crypto_rfc4309_crypt()
625 sg_set_buf(rctx->dst, iv + 16, req->assoclen - 8); in crypto_rfc4309_crypt()
626 sg = scatterwalk_ffwd(rctx->dst + 1, req->dst, req->assoclen); in crypto_rfc4309_crypt()
627 if (sg != rctx->dst + 1) in crypto_rfc4309_crypt()
628 sg_chain(rctx->dst, 2, sg); in crypto_rfc4309_crypt()
635 req->src == req->dst ? rctx->src : rctx->dst, in crypto_rfc4309_crypt()