summaryrefslogtreecommitdiff
path: root/crypto/anubis.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2019-05-30 10:53:08 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2019-06-06 14:38:57 +0800
commitdea43a90cc24e4cd8b3bdb89d90d4a0a090526b4 (patch)
treeccaf214562284938d8af39fb461d2158f1cfcf73 /crypto/anubis.c
parent96c374759f64d7b0411dc523d730c671951e4487 (diff)
downloadlinux-crypto-dea43a90cc24e4cd8b3bdb89d90d4a0a090526b4.tar.gz
linux-crypto-dea43a90cc24e4cd8b3bdb89d90d4a0a090526b4.zip
crypto: lrw - use correct alignmask
Commit d1ae9155d30e ("crypto: lrw - Optimize tweak computation") incorrectly reduced the alignmask of LRW instances from '__alignof__(u64) - 1' to '__alignof__(__be32) - 1'. However, xor_tweak() and setkey() assume that the data and key, respectively, are aligned to 'be128', which has u64 alignment. Fix the alignmask to be at least '__alignof__(be128) - 1'. Fixes: d1ae9155d30e ("crypto: lrw - Optimize tweak computation") Cc: <stable@vger.kernel.org> # v4.20+ Cc: Ondrej Mosnacek <omosnace@redhat.com> Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/anubis.c')
0 files changed, 0 insertions, 0 deletions