diff --git a/crypto/skcipher.c b/crypto/skcipher.c index 7d6a49fe3047c29690636e1c74dc3e7a947f7ea7..4f6b8dadacebcfe0e25cda78c7be840e8be43903 100644 --- a/crypto/skcipher.c +++ b/crypto/skcipher.c @@ -398,7 +398,7 @@ static int skcipher_copy_iv(struct skcipher_walk *walk) unsigned size; u8 *iv; - aligned_bs = ALIGN(bs, alignmask); + aligned_bs = ALIGN(bs, alignmask + 1); /* Minimum size to align buffer by alignmask. */ size = alignmask & ~a;