[PATCH 16/24] crypto: gcm - Use crypto_aead_set_reqsize helper

2015-05-11 Thread Herbert Xu
This patch uses the crypto_aead_set_reqsize helper to avoid directly touching the internals of aead. Signed-off-by: Herbert Xu --- crypto/gcm.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/crypto/gcm.c b/crypto/gcm.c index 2e403f6..b56200e 10064

[PATCH 12/24] crypto: authenc - Use crypto_aead_set_reqsize helper

2015-05-11 Thread Herbert Xu
This patch uses the crypto_aead_set_reqsize helper to avoid directly touching the internals of aead. Signed-off-by: Herbert Xu --- crypto/authenc.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/crypto/authenc.c b/crypto/authenc.c index 325f37a..3e85229 10

[PATCH 1/24] crypto: api - Add crypto_grab_spawn primitive

2015-05-11 Thread Herbert Xu
This patch adds a new primitive crypto_grab_spawn which is meant to replace crypto_init_spawn and crypto_init_spawn2. Under the new scheme the user no longer has to worry about reference counting the alg object before it is subsumed by the spawn. It is pretty much an exact copy of crypto_grab_aea

Re: [PATCH v5 1/5] random: Async and sync API for accessing nonblocking_pool

2015-05-11 Thread Herbert Xu
On Mon, May 11, 2015 at 09:30:11AM +0200, Stephan Mueller wrote: > > I will remove that in the next installment. But that means that the DRBG > kernel module (or any other module) cannot be unloaded until the work > completes. I don't think that's a big deal. > Are you suggesting to only leave

Re: [PATCH 1/2] crypto: arm/sha512 - accelerated SHA-512 using ARM generic ASM and NEON

2015-05-11 Thread Ard Biesheuvel
On 11 May 2015 at 08:59, Herbert Xu wrote: > On Fri, May 08, 2015 at 10:46:21AM +0200, Ard Biesheuvel wrote: >> >> diff --git a/arch/arm/crypto/Kconfig b/arch/arm/crypto/Kconfig >> index 8da2207b0072..08b5fb85bff5 100644 >> --- a/arch/arm/crypto/Kconfig >> +++ b/arch/arm/crypto/Kconfig >> @@ -53,2