summaryrefslogtreecommitdiffstats
path: root/crypto/gcm.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/gcm.c')
-rw-r--r--crypto/gcm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/gcm.c b/crypto/gcm.c
index ddb4f29b2fe6..bec329b3de8d 100644
--- a/crypto/gcm.c
+++ b/crypto/gcm.c
@@ -206,14 +206,14 @@ static void crypto_gcm_init_common(struct aead_request *req)
206 sg_set_buf(pctx->src, pctx->auth_tag, sizeof(pctx->auth_tag)); 206 sg_set_buf(pctx->src, pctx->auth_tag, sizeof(pctx->auth_tag));
207 sg = scatterwalk_ffwd(pctx->src + 1, req->src, req->assoclen); 207 sg = scatterwalk_ffwd(pctx->src + 1, req->src, req->assoclen);
208 if (sg != pctx->src + 1) 208 if (sg != pctx->src + 1)
209 scatterwalk_sg_chain(pctx->src, 2, sg); 209 sg_chain(pctx->src, 2, sg);
210 210
211 if (req->src != req->dst) { 211 if (req->src != req->dst) {
212 sg_init_table(pctx->dst, 3); 212 sg_init_table(pctx->dst, 3);
213 sg_set_buf(pctx->dst, pctx->auth_tag, sizeof(pctx->auth_tag)); 213 sg_set_buf(pctx->dst, pctx->auth_tag, sizeof(pctx->auth_tag));
214 sg = scatterwalk_ffwd(pctx->dst + 1, req->dst, req->assoclen); 214 sg = scatterwalk_ffwd(pctx->dst + 1, req->dst, req->assoclen);
215 if (sg != pctx->dst + 1) 215 if (sg != pctx->dst + 1)
216 scatterwalk_sg_chain(pctx->dst, 2, sg); 216 sg_chain(pctx->dst, 2, sg);
217 } 217 }
218} 218}
219 219