]> git.baikalelectronics.ru Git - kernel.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)
commit504c273893cfbc47612a00ecc237ae1ff5e8b8ad
treed0586d9922dae9ce67b3e01a39974bd954adf549
parentbb87751c736683a85585cc01fae47071a8b5c32f
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