Lines Matching refs:src
38 struct scatterlist src[3]; member
59 struct scatterlist *src; member
67 struct scatterlist src[3]; member
162 sg_init_table(pctx->src, 3); in crypto_gcm_init_common()
163 sg_set_buf(pctx->src, pctx->auth_tag, sizeof(pctx->auth_tag)); in crypto_gcm_init_common()
164 sg = scatterwalk_ffwd(pctx->src + 1, req->src, req->assoclen); in crypto_gcm_init_common()
165 if (sg != pctx->src + 1) in crypto_gcm_init_common()
166 sg_chain(pctx->src, 2, sg); in crypto_gcm_init_common()
168 if (req->src != req->dst) { in crypto_gcm_init_common()
186 dst = req->src == req->dst ? pctx->src : pctx->dst; in crypto_gcm_init_crypt()
189 skcipher_request_set_crypt(skreq, pctx->src, dst, in crypto_gcm_init_crypt()
204 struct scatterlist *src, in gcm_hash_update() argument
211 ahash_request_set_crypt(ahreq, src, NULL, len); in gcm_hash_update()
323 gctx->src, gctx->cryptlen, flags) ?: in gcm_hash_assoc_remain_continue()
377 req->src, req->assoclen, flags) ?: in gcm_hash_init_continue()
429 gctx->src = sg_next(req->src == req->dst ? pctx->src : pctx->dst); in gcm_encrypt_continue()
475 scatterwalk_map_and_copy(iauth_tag, req->src, in crypto_gcm_verify()
514 gctx->src = sg_next(pctx->src); in crypto_gcm_decrypt()
733 scatterwalk_map_and_copy(iv + GCM_AES_IV_SIZE, req->src, 0, req->assoclen - 8, 0); in crypto_rfc4106_crypt()
738 sg_init_table(rctx->src, 3); in crypto_rfc4106_crypt()
739 sg_set_buf(rctx->src, iv + GCM_AES_IV_SIZE, req->assoclen - 8); in crypto_rfc4106_crypt()
740 sg = scatterwalk_ffwd(rctx->src + 1, req->src, req->assoclen); in crypto_rfc4106_crypt()
741 if (sg != rctx->src + 1) in crypto_rfc4106_crypt()
742 sg_chain(rctx->src, 2, sg); in crypto_rfc4106_crypt()
744 if (req->src != req->dst) { in crypto_rfc4106_crypt()
755 aead_request_set_crypt(subreq, rctx->src, in crypto_rfc4106_crypt()
756 req->src == req->dst ? rctx->src : rctx->dst, in crypto_rfc4106_crypt()
939 if (req->src != req->dst) { in crypto_rfc4543_crypt()
951 aead_request_set_crypt(subreq, req->src, req->dst, in crypto_rfc4543_crypt()
970 skcipher_request_set_crypt(nreq, req->src, req->dst, nbytes, NULL); in crypto_rfc4543_copy_src_to_dst()