Lines Matching refs:src
39 struct scatterlist src[3]; member
60 struct scatterlist *src; member
68 struct scatterlist src[3]; member
168 sg_init_table(pctx->src, 3); in crypto_gcm_init_common()
169 sg_set_buf(pctx->src, pctx->auth_tag, sizeof(pctx->auth_tag)); in crypto_gcm_init_common()
170 sg = scatterwalk_ffwd(pctx->src + 1, req->src, req->assoclen); in crypto_gcm_init_common()
171 if (sg != pctx->src + 1) in crypto_gcm_init_common()
172 sg_chain(pctx->src, 2, sg); in crypto_gcm_init_common()
174 if (req->src != req->dst) { in crypto_gcm_init_common()
192 dst = req->src == req->dst ? pctx->src : pctx->dst; in crypto_gcm_init_crypt()
195 skcipher_request_set_crypt(skreq, pctx->src, dst, in crypto_gcm_init_crypt()
210 struct scatterlist *src, in gcm_hash_update() argument
217 ahash_request_set_crypt(ahreq, src, NULL, len); in gcm_hash_update()
329 gctx->src, gctx->cryptlen, flags) ?: in gcm_hash_assoc_remain_continue()
383 req->src, req->assoclen, flags) ?: in gcm_hash_init_continue()
435 gctx->src = sg_next(req->src == req->dst ? pctx->src : pctx->dst); in gcm_encrypt_continue()
481 scatterwalk_map_and_copy(iauth_tag, req->src, in crypto_gcm_verify()
520 gctx->src = sg_next(pctx->src); in crypto_gcm_decrypt()
772 scatterwalk_map_and_copy(iv + GCM_AES_IV_SIZE, req->src, 0, req->assoclen - 8, 0); in crypto_rfc4106_crypt()
777 sg_init_table(rctx->src, 3); in crypto_rfc4106_crypt()
778 sg_set_buf(rctx->src, iv + GCM_AES_IV_SIZE, req->assoclen - 8); in crypto_rfc4106_crypt()
779 sg = scatterwalk_ffwd(rctx->src + 1, req->src, req->assoclen); in crypto_rfc4106_crypt()
780 if (sg != rctx->src + 1) in crypto_rfc4106_crypt()
781 sg_chain(rctx->src, 2, sg); in crypto_rfc4106_crypt()
783 if (req->src != req->dst) { in crypto_rfc4106_crypt()
794 aead_request_set_crypt(subreq, rctx->src, in crypto_rfc4106_crypt()
795 req->src == req->dst ? rctx->src : rctx->dst, in crypto_rfc4106_crypt()
999 if (req->src != req->dst) { in crypto_rfc4543_crypt()
1011 aead_request_set_crypt(subreq, req->src, req->dst, in crypto_rfc4543_crypt()
1030 skcipher_request_set_crypt(nreq, req->src, req->dst, nbytes, NULL); in crypto_rfc4543_copy_src_to_dst()