aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/eseqiv.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/eseqiv.c')
-rw-r--r--crypto/eseqiv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/eseqiv.c b/crypto/eseqiv.c
index b14f14e314b6..881d30910434 100644
--- a/crypto/eseqiv.c
+++ b/crypto/eseqiv.c
@@ -136,7 +136,8 @@ static int eseqiv_givencrypt(struct skcipher_givcrypt_request *req)
136 } 136 }
137 137
138 ablkcipher_request_set_crypt(subreq, reqctx->src, dst, 138 ablkcipher_request_set_crypt(subreq, reqctx->src, dst,
139 req->creq.nbytes, req->creq.info); 139 req->creq.nbytes + ivsize,
140 req->creq.info);
140 141
141 memcpy(req->creq.info, ctx->salt, ivsize); 142 memcpy(req->creq.info, ctx->salt, ivsize);
142 143