]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit83a8333fae4059220c37362e23843447d88722bf
tree6a4df50f147b3b8f64a22fdbc68da5750b30ed2a
parent526271223c8cf1b9a954088ec5b7a6bd5bf8bc22
crypto: testmgr - test setting misaligned keys

The alignment bug in ghash_setkey() fixed by commit dc00613c2e8e
("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