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)
commitf16743e0c71a5d2811273b77638ff3a069aed1e2
tree31757857e2d60294a7c8330d2d46575b478bcdad
parent48ee41bf5ba052364f78781e9082a510fbcd104a
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