]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: cmac - fix alignment of 'consts'
authorEric Biggers <ebiggers@google.com>
Mon, 10 Oct 2016 17:15:15 +0000 (10:15 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Oct 2016 03:03:42 +0000 (11:03 +0800)
commit608c9a0debcdc901225079a25a301df37ed9c9cb
tree31757857e2d60294a7c8330d2d46575b478bcdad
parent625d7a72a642dd7d710957c7509fa9ade984e0d0
crypto: cmac - fix alignment of 'consts'

The per-transform 'consts' array is accessed as __be64 in
crypto_cmac_digest_setkey() but was only guaranteed to be aligned to
__alignof__(long).  Fix this by aligning it to __alignof__(__be64).

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/cmac.c