crypto: aead - Remove unused cryptoff parameter
[firefly-linux-kernel-4.4.55.git] / crypto / aead.c
index 070e4b9e94f8bc890d31e8e9334a53850b3e7fa2..7c3d725bd26481bbc9b4574736510b9f0f3090b4 100644 (file)
@@ -106,10 +106,8 @@ static int old_crypt(struct aead_request *req,
        if (req->old)
                return crypt(req);
 
-       src = scatterwalk_ffwd(nreq->srcbuf, req->src,
-                              req->assoclen + req->cryptoff);
-       dst = scatterwalk_ffwd(nreq->dstbuf, req->dst,
-                              req->assoclen + req->cryptoff);
+       src = scatterwalk_ffwd(nreq->srcbuf, req->src, req->assoclen);
+       dst = scatterwalk_ffwd(nreq->dstbuf, req->dst, req->assoclen);
 
        aead_request_set_tfm(&nreq->subreq, aead);
        aead_request_set_callback(&nreq->subreq, aead_request_flags(req),