]> git.karo-electronics.de Git - linux-beck.git/commit
crypto: testmgr - test hash implementations with unaligned buffers
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Thu, 13 Jun 2013 14:37:55 +0000 (17:37 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Jun 2013 06:44:31 +0000 (14:44 +0800)
commitda5ffe11342a0ecf2cce7000a9392c9ca959e9c8
treed0586d9922dae9ce67b3e01a39974bd954adf549
parent58dcf5484c0cbaddbba1d3ed074729f5078346bb
crypto: testmgr - test hash implementations with unaligned buffers

This patch adds unaligned buffer tests for hashes.

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