Lines Matching refs:dst
37 struct scatterlist dst[2]; member
93 struct scatterlist *dst = req->dst; in crypto_authenc_esn_genicv_tail() local
97 scatterwalk_map_and_copy(tmp, dst, 4, 4, 0); in crypto_authenc_esn_genicv_tail()
98 scatterwalk_map_and_copy(tmp + 1, dst, assoclen + cryptlen, 4, 0); in crypto_authenc_esn_genicv_tail()
99 scatterwalk_map_and_copy(tmp, dst, 0, 8, 1); in crypto_authenc_esn_genicv_tail()
101 scatterwalk_map_and_copy(hash, dst, assoclen + cryptlen, authsize, 1); in crypto_authenc_esn_genicv_tail()
125 struct scatterlist *dst = req->dst; in crypto_authenc_esn_genicv() local
132 scatterwalk_map_and_copy(tmp, dst, 0, 8, 0); in crypto_authenc_esn_genicv()
133 scatterwalk_map_and_copy(tmp, dst, 4, 4, 1); in crypto_authenc_esn_genicv()
134 scatterwalk_map_and_copy(tmp + 1, dst, assoclen + cryptlen, 4, 1); in crypto_authenc_esn_genicv()
136 sg_init_table(areq_ctx->dst, 2); in crypto_authenc_esn_genicv()
137 dst = scatterwalk_ffwd(areq_ctx->dst, dst, 4); in crypto_authenc_esn_genicv()
140 ahash_request_set_crypt(ahreq, dst, hash, assoclen + cryptlen); in crypto_authenc_esn_genicv()
169 struct scatterlist *src, *dst; in crypto_authenc_esn_encrypt() local
177 dst = src; in crypto_authenc_esn_encrypt()
179 if (req->src != req->dst) { in crypto_authenc_esn_encrypt()
180 memcpy_sglist(req->dst, req->src, assoclen); in crypto_authenc_esn_encrypt()
181 sg_init_table(areq_ctx->dst, 2); in crypto_authenc_esn_encrypt()
182 dst = scatterwalk_ffwd(areq_ctx->dst, req->dst, assoclen); in crypto_authenc_esn_encrypt()
188 skcipher_request_set_crypt(skreq, src, dst, cryptlen, req->iv); in crypto_authenc_esn_encrypt()
211 struct scatterlist *dst = req->dst; in crypto_authenc_esn_decrypt_tail() local
218 if (src == dst) { in crypto_authenc_esn_decrypt_tail()
220 scatterwalk_map_and_copy(tmp, dst, 4, 4, 0); in crypto_authenc_esn_decrypt_tail()
221 scatterwalk_map_and_copy(tmp + 1, dst, assoclen + cryptlen, 4, 0); in crypto_authenc_esn_decrypt_tail()
222 scatterwalk_map_and_copy(tmp, dst, 0, 8, 1); in crypto_authenc_esn_decrypt_tail()
224 memcpy_sglist(dst, src, assoclen); in crypto_authenc_esn_decrypt_tail()
231 if (src != dst) in crypto_authenc_esn_decrypt_tail()
233 dst = scatterwalk_ffwd(areq_ctx->dst, dst, assoclen); in crypto_authenc_esn_decrypt_tail()
238 skcipher_request_set_crypt(skreq, src, dst, cryptlen, req->iv); in crypto_authenc_esn_decrypt_tail()
264 struct scatterlist *dst = req->dst; in crypto_authenc_esn_decrypt() local
280 if (src == dst) { in crypto_authenc_esn_decrypt()
281 scatterwalk_map_and_copy(tmp, dst, 4, 4, 1); in crypto_authenc_esn_decrypt()
282 scatterwalk_map_and_copy(tmp + 1, dst, assoclen + cryptlen, 4, 1); in crypto_authenc_esn_decrypt()
283 dst = scatterwalk_ffwd(areq_ctx->dst, dst, 4); in crypto_authenc_esn_decrypt()
285 scatterwalk_map_and_copy(tmp, dst, 0, 4, 1); in crypto_authenc_esn_decrypt()
286 scatterwalk_map_and_copy(tmp + 1, dst, assoclen + cryptlen - 4, 4, 1); in crypto_authenc_esn_decrypt()
289 dst = scatterwalk_ffwd(areq_ctx->dst, dst, 4); in crypto_authenc_esn_decrypt()
290 memcpy_sglist(dst, src, assoclen + cryptlen - 8); in crypto_authenc_esn_decrypt()
291 dst = req->dst; in crypto_authenc_esn_decrypt()
295 ahash_request_set_crypt(ahreq, dst, ohash, assoclen + cryptlen); in crypto_authenc_esn_decrypt()