Lines Matching refs:sg
73 struct scatterlist sg; member
88 struct scatterlist sg; member
124 struct scatterlist sg[1]; in crypto_gcm_setkey() member
144 sg_init_one(data->sg, &data->hash, sizeof(data->hash)); in crypto_gcm_setkey()
150 ablkcipher_request_set_crypt(&data->req, data->sg, data->sg, in crypto_gcm_setkey()
199 struct scatterlist *sg; in crypto_gcm_init_common() local
207 sg = scatterwalk_ffwd(pctx->src + 1, req->src, req->assoclen); in crypto_gcm_init_common()
208 if (sg != pctx->src + 1) in crypto_gcm_init_common()
209 sg_chain(pctx->src, 2, sg); in crypto_gcm_init_common()
214 sg = scatterwalk_ffwd(pctx->dst + 1, req->dst, req->assoclen); in crypto_gcm_init_common()
215 if (sg != pctx->dst + 1) in crypto_gcm_init_common()
216 sg_chain(pctx->dst, 2, sg); in crypto_gcm_init_common()
263 return gcm_hash_update(req, compl, &gcm_zeroes->sg, remain, flags); in gcm_hash_remain()
276 sg_init_one(&pctx->sg, pctx->iauth_tag, 16); in gcm_hash_len()
278 ahash_request_set_crypt(ahreq, &pctx->sg, in gcm_hash_len()
830 struct scatterlist *sg; in crypto_rfc4106_crypt() local
841 sg = scatterwalk_ffwd(rctx->src + 1, req->src, req->assoclen); in crypto_rfc4106_crypt()
842 if (sg != rctx->src + 1) in crypto_rfc4106_crypt()
843 sg_chain(rctx->src, 2, sg); in crypto_rfc4106_crypt()
848 sg = scatterwalk_ffwd(rctx->dst + 1, req->dst, req->assoclen); in crypto_rfc4106_crypt()
849 if (sg != rctx->dst + 1) in crypto_rfc4106_crypt()
850 sg_chain(rctx->dst, 2, sg); in crypto_rfc4106_crypt()
1262 sg_init_one(&gcm_zeroes->sg, gcm_zeroes->buf, sizeof(gcm_zeroes->buf)); in crypto_gcm_module_init()