diff options
author | Eric Biggers <ebiggers@google.com> | 2019-05-30 10:53:08 -0700 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-06-06 14:38:57 +0800 |
commit | 20a0f9761343fba9b25ea46bd3a3e5e533d974f8 (patch) | |
tree | 18537f2ebc67317fde7fc936af2f73cc446e87f7 /drivers/i2c | |
parent | 5c6bc4dfa515738149998bb0db2481a4fdead979 (diff) |
crypto: lrw - use correct alignmask
Commit c778f96bf347 ("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: c778f96bf347 ("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 'drivers/i2c')
0 files changed, 0 insertions, 0 deletions