[PATCH v9 5/6] DRBG testmgr test vectors

2014-06-01 Thread Stephan Mueller
All types of the DRBG (CTR, HMAC, Hash) are covered with test vectors. In addition, all permutations of use cases of the DRBG are covered: * with and without predition resistance * with and without additional information string * with and without personalization string As

[PATCH v9 3/6] DRBG kernel configuration options

2014-06-01 Thread Stephan Mueller
The different DRBG types of CTR, Hash, HMAC can be enabled or disabled at compile time. At least one DRBG type shall be selected. The default is the HMAC DRBG as its code base is smallest. Signed-off-by: Stephan Mueller smuel...@chronox.de --- crypto/Kconfig | 36

[PATCH v9 4/6] compile the DRBG code

2014-06-01 Thread Stephan Mueller
Signed-off-by: Stephan Mueller smuel...@chronox.de --- crypto/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/Makefile b/crypto/Makefile index 38e64231..bfa94fa 100644 --- a/crypto/Makefile +++ b/crypto/Makefile @@ -92,6 +92,7 @@ obj-$(CONFIG_CRYPTO_842) += 842.o

[PATCH v9 0/6] SP800-90A Deterministic Random Bit Generator

2014-06-01 Thread Stephan Mueller
Hi, the following set of patches implements the deterministic random bit generator (DRBG) specified by SP800-90A. The DRBG implementation offers the following: * All three DRBG types are implemented with a derivation function. * All DRBG types are available with and without

Re: RFC: 2 pages are enough for xor speed testing

2014-06-01 Thread Marek Vasut
On Wednesday, May 28, 2014 at 07:01:52 AM, Amos Kong wrote: @@ -154,7 +154,7 @@ calibrate_xor_blocks(void) #undef xor_speed out: - free_pages((unsigned long)b1, 2); + free_pages((unsigned long)b1, 1); active_template = fastest; return 0; I suppose

Re: Crash when using ahash_request_ctx

2014-06-01 Thread Marek Vasut
On Wednesday, May 28, 2014 at 12:01:09 PM, Corentin LABBE wrote: Hello I have a problem when using a simple md5 tfm. When I use the data that ahash_request_ctx() give me, it will cause random crash when removing the module later. I do not understand it, because .cra_ctxsize seems to be