]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - crypto/testmgr.c
crypto: testmgr - test AEADs with unaligned buffers
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Thu, 13 Jun 2013 14:37:50 +0000 (17:37 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Jun 2013 06:44:30 +0000 (14:44 +0800)
commit58dcf5484c0cbaddbba1d3ed074729f5078346bb
tree4e7e73d794519d84258e47a80ee320d9a6cdbd71
parent3a338f20c3c5c33c45ab1c36c8eccd62289c6401
crypto: testmgr - test AEADs with unaligned buffers

This patch adds unaligned buffer tests for AEADs.

The first new test is with one byte offset and the second test checks if
cra_alignmask for driver is big enough; for example, for testing a case
where cra_alignmask is set to 7, but driver really needs buffers to be
aligned to 16 bytes.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/testmgr.c