]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - crypto/eseqiv.c
[CRYPTO] eseqiv: Fix off-by-one encryption
[linux-2.6-omap-h63xx.git] / crypto / eseqiv.c
index b14f14e314b6cf3ada4bc0694aa9f5f364ab73e7..881d30910434831f528f5be244ab502bd984d0b6 100644 (file)
@@ -136,7 +136,8 @@ static int eseqiv_givencrypt(struct skcipher_givcrypt_request *req)
        }
 
        ablkcipher_request_set_crypt(subreq, reqctx->src, dst,
-                                    req->creq.nbytes, req->creq.info);
+                                    req->creq.nbytes + ivsize,
+                                    req->creq.info);
 
        memcpy(req->creq.info, ctx->salt, ivsize);