[PATCHv2] crypto: doc - Fix hash export state information

2017-01-26 Thread Rabin Vincent
From: Rabin Vincent The documentation states that crypto_ahash_reqsize() provides the size of the state structure used by crypto_ahash_export(). But it's actually crypto_ahash_statesize() which provides this size. Signed-off-by: Rabin Vincent --- v2: Add crypto_ahash_statesize() to api-d

Re: [PATCH] crypto: doc - Fix hash export state information

2017-01-26 Thread Rabin Vincent
On Wed, Jan 25, 2017 at 05:18:05PM +0100, Stephan Müller wrote: > Am Mittwoch, 25. Januar 2017, 16:55:06 CET schrieb Rabin Vincent: > > The documentation states that crypto_ahash_reqsize() provides the size > > of the state structure used by crypto_ahash_export(). Bu

[PATCH] crypto: doc - Fix hash export state information

2017-01-25 Thread Rabin Vincent
From: Rabin Vincent The documentation states that crypto_ahash_reqsize() provides the size of the state structure used by crypto_ahash_export(). But it's actually crypto_ahash_statesize() which provides this size. Signed-off-by: Rabin Vincent --- include/crypto/hash.h

Re: [PATCH] crypto: tcrypt - Add mode to test specified algs

2017-01-23 Thread Rabin Vincent
On Mon, Jan 23, 2017 at 10:14:03PM +0800, Herbert Xu wrote: > On Wed, Jan 18, 2017 at 05:25:00PM +0100, Rabin Vincent wrote: > > From: Rabin Vincent > > tcrypt offers a bunch of mode= values to test various (groups of) > > algorithms, but there is no way provided to

[PATCH] crypto: tcrypt - Add mode to test specified algs

2017-01-18 Thread Rabin Vincent
From: Rabin Vincent tcrypt offers a bunch of mode= values to test various (groups of) algorithms, but there is no way provided to test a subset of the algorithms. This adds a new mode=2000 which interprets alg= as a colon-separated list of algorithms to test with alg_test(). Colon is used

[PATCH] crypto: tcrypt - Add debug prints

2017-01-18 Thread Rabin Vincent
From: Rabin Vincent tcrypt is very tight-lipped when it succeeds, but a bit more feedback would be useful when developing or debugging crypto drivers, especially since even a successful run ends with the module failing to insert. Add a couple of debug prints, which can be enabled with dynamic

[PATCH] crypto: don't use interruptible wait in tests

2015-01-09 Thread Rabin Vincent
n the driver handles the now-freed request. Use wait_for_completion() instead. Signed-off-by: Rabin Vincent --- crypto/tcrypt.c | 10 -- crypto/testmgr.c | 50 ++ 2 files changed, 26 insertions(+), 34 deletions(-) diff --git a/c

[PATCH] crypto: af_alg: fix backlog handling

2014-12-19 Thread Rabin Vincent
000 \ -p >/dev/null & done Signed-off-by: Rabin Vincent --- crypto/af_alg.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/crypto/af_alg.c b/crypto/af_alg.c index 1fa7bc3..4665b79 100644 --- a/crypto/af_alg.c +++ b/crypto/af_alg.c @@ -455,6 +455,9 @@