Lines Matching refs:dst
41 struct scatterlist dst[3]; member
52 struct scatterlist dst[3]; member
295 scatterwalk_map_and_copy(odata, req->dst, in crypto_ccm_encrypt_done()
334 if (req->src != req->dst) { in crypto_ccm_init_crypt()
335 sg_init_table(pctx->dst, 3); in crypto_ccm_init_crypt()
336 sg_set_buf(pctx->dst, tag, 16); in crypto_ccm_init_crypt()
337 sg = scatterwalk_ffwd(pctx->dst + 1, req->dst, req->assoclen); in crypto_ccm_init_crypt()
338 if (sg != pctx->dst + 1) in crypto_ccm_init_crypt()
339 sg_chain(pctx->dst, 2, sg); in crypto_ccm_init_crypt()
351 struct scatterlist *dst; in crypto_ccm_encrypt() local
365 dst = pctx->src; in crypto_ccm_encrypt()
366 if (req->src != req->dst) in crypto_ccm_encrypt()
367 dst = pctx->dst; in crypto_ccm_encrypt()
372 ablkcipher_request_set_crypt(abreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_encrypt()
378 scatterwalk_map_and_copy(odata, sg_next(dst), cryptlen, in crypto_ccm_encrypt()
391 struct scatterlist *dst; in crypto_ccm_decrypt_done() local
395 dst = sg_next(req->src == req->dst ? pctx->src : pctx->dst); in crypto_ccm_decrypt_done()
398 err = crypto_ccm_auth(req, dst, cryptlen); in crypto_ccm_decrypt_done()
411 struct scatterlist *dst; in crypto_ccm_decrypt() local
428 dst = pctx->src; in crypto_ccm_decrypt()
429 if (req->src != req->dst) in crypto_ccm_decrypt()
430 dst = pctx->dst; in crypto_ccm_decrypt()
435 ablkcipher_request_set_crypt(abreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_decrypt()
440 err = crypto_ccm_auth(req, sg_next(dst), cryptlen); in crypto_ccm_decrypt()
730 if (req->src != req->dst) { in crypto_rfc4309_crypt()
731 sg_init_table(rctx->dst, 3); in crypto_rfc4309_crypt()
732 sg_set_buf(rctx->dst, iv + 16, req->assoclen - 8); in crypto_rfc4309_crypt()
733 sg = scatterwalk_ffwd(rctx->dst + 1, req->dst, req->assoclen); in crypto_rfc4309_crypt()
734 if (sg != rctx->dst + 1) in crypto_rfc4309_crypt()
735 sg_chain(rctx->dst, 2, sg); in crypto_rfc4309_crypt()
742 req->src == req->dst ? rctx->src : rctx->dst, in crypto_rfc4309_crypt()