Lines Matching refs:sg
70 struct scatterlist sg; member
80 struct scatterlist sg; member
105 struct scatterlist sg[1]; in crypto_gcm_setkey() member
125 sg_init_one(data->sg, &data->hash, sizeof(data->hash)); in crypto_gcm_setkey()
131 skcipher_request_set_crypt(&data->req, data->sg, data->sg, in crypto_gcm_setkey()
162 struct scatterlist *sg; in crypto_gcm_init_common() local
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()
177 sg = scatterwalk_ffwd(pctx->dst + 1, req->dst, req->assoclen); in crypto_gcm_init_common()
178 if (sg != pctx->dst + 1) in crypto_gcm_init_common()
179 sg_chain(pctx->dst, 2, sg); in crypto_gcm_init_common()
226 return gcm_hash_update(req, compl, &gcm_zeroes->sg, remain, flags); in gcm_hash_remain()
239 sg_init_one(&pctx->sg, pctx->iauth_tag, 16); in gcm_hash_len()
241 ahash_request_set_crypt(ahreq, &pctx->sg, in gcm_hash_len()
768 struct scatterlist *sg; in crypto_rfc4106_crypt() local
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()
786 sg = scatterwalk_ffwd(rctx->dst + 1, req->dst, req->assoclen); in crypto_rfc4106_crypt()
787 if (sg != rctx->dst + 1) in crypto_rfc4106_crypt()
788 sg_chain(rctx->dst, 2, sg); in crypto_rfc4106_crypt()
1220 sg_init_one(&gcm_zeroes->sg, gcm_zeroes->buf, sizeof(gcm_zeroes->buf)); in crypto_gcm_module_init()