crypto: testmgr - test setting misaligned keys
authorEric Biggers <ebiggers@google.com>
Sun, 1 Dec 2019 21:53:28 +0000 (13:53 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 11 Dec 2019 08:37:01 +0000 (16:37 +0800)
commitfd8c37c72d60c7c8f5c4d0702a0b30499cf9d422
tree6a4df50f147b3b8f64a22fdbc68da5750b30ed2a
parentfd60f727876467a89ac42c873e20b38d9a408062
crypto: testmgr - test setting misaligned keys

The alignment bug in ghash_setkey() fixed by commit 5c6bc4dfa515
("crypto: ghash - fix unaligned memory access in ghash_setkey()")
wasn't reliably detected by the crypto self-tests on ARM because the
tests only set the keys directly from the test vectors.

To improve test coverage, update the tests to sometimes pass misaligned
keys to setkey().  This applies to shash, ahash, skcipher, and aead.

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