Re: [PATCH] crypto: aesni: add setkey for driver-gcm-aes-aesni

2015-01-20 Thread Stephan Mueller
Am Dienstag, 20. Januar 2015, 14:17:04 schrieb Herbert Xu: Hi Tadeusz, > On Sun, Jan 18, 2015 at 11:56:03PM +0100, Stephan Mueller wrote: > > The cipher registered as __driver-gcm-aes-aesni is never intended > > to be used directly by any caller. Instead it is a service mechanism to > > rfc4106-g

[PATCH v11 1/2] crypto: AF_ALG: add AEAD support

2015-01-20 Thread Stephan Mueller
This patch adds the AEAD support for AF_ALG. The implementation is based on algif_skcipher, but contains heavy modifications to streamline the interface for AEAD uses. To use AEAD, the user space consumer has to use the salg_type named "aead". The AEAD implementation includes some overhead to ca

[PATCH v11 0/2] crypto: AF_ALG: add AEAD and RNG support

2015-01-20 Thread Stephan Mueller
Hi, This patch set adds AEAD and RNG support to the AF_ALG interface exported by the kernel crypto API. By extending AF_ALG with AEAD and RNG support, all cipher types the kernel crypto API allows access to are now accessible from userspace. Both, AEAD and RNG implementations are stand-alone and

[PATCH v11 2/2] crypto: AF_ALG: enable AEAD interface compilation

2015-01-20 Thread Stephan Mueller
Enable compilation of the AEAD AF_ALG support and provide a Kconfig option to compile the AEAD AF_ALG support. Signed-off-by: Stephan Mueller --- crypto/Kconfig | 9 + crypto/Makefile | 1 + 2 files changed, 10 insertions(+) diff --git a/crypto/Kconfig b/crypto/Kconfig index 50f4da4..4

Re: [PATCH] crypto: Documentation: remove colons in comments

2015-01-20 Thread Randy Dunlap
On 01/19/15 19:47, Herbert Xu wrote: > On Mon, Jan 19, 2015 at 12:13:39AM +0100, Stephan Mueller wrote: >> As documented in Documentation/kernel-doc-nano-HOWTO.txt lines >> terminated with a colon are treated as headings. >> >> The current layout of the documentation when compiling the kernel >> cr

[PATCH] crypto: caam - don't emit ICV check failures to dmesg

2015-01-20 Thread Kim Phillips
ICV check failures are part of normal operation; leave user notification up to the higher levels, as is done in s/w algorithm implementations. Signed-off-by: Kim Phillips --- drivers/crypto/caam/error.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/cry

[PATCH repost] virtio_rng: drop extra empty line

2015-01-20 Thread Michael S. Tsirkin
makes code look a bit prettier. Cc: linux-crypto@vger.kernel.org. Signed-off-by: Michael S. Tsirkin --- drivers/char/hw_random/virtio-rng.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/char/hw_random/virtio-rng.c b/drivers/char/hw_random/virtio-rng.c index 72295ea..3fa2f8a 100644

[PATCH] crypto: replace scatterwalk_sg_next with sg_next

2015-01-20 Thread Cristian Stoica
Modify crypto drivers to use the generic SG helper since both of them are equivalent and the one from crypto is redundant. See also: 468577abe37ff7b453a9ac613e0ea155349203ae reverted in b2ab4a57b018aafbba35bff088218f5cc3d2142e Signed-off-by: Cristian Stoica --- crypto/ablkcipher.c