Re: [PATCH] crypto: algif - suppress sending source address information in recvmsg

2013-04-09 Thread Herbert Xu
On Wed, Apr 10, 2013 at 08:21:51AM +0200, Mathias Krause wrote: > On Wed, Apr 10, 2013 at 5:31 AM, Herbert Xu > wrote: > > On Sun, Apr 07, 2013 at 02:05:39PM +0200, Mathias Krause wrote: > >> The current code does not set the msg_namelen member to 0 and therefore > >> makes net/socket.c leak the

Re: [PATCH] crypto: algif - suppress sending source address information in recvmsg

2013-04-09 Thread Mathias Krause
On Wed, Apr 10, 2013 at 5:31 AM, Herbert Xu wrote: > On Sun, Apr 07, 2013 at 02:05:39PM +0200, Mathias Krause wrote: >> The current code does not set the msg_namelen member to 0 and therefore >> makes net/socket.c leak the local sockaddr_storage variable to userland >> -- 128 bytes of kernel stack

Re: [PATCH 1/5] crypto: x86 - add more optimized XTS-mode for serpent-avx

2013-04-09 Thread Herbert Xu
On Mon, Apr 08, 2013 at 09:50:55PM +0300, Jussi Kivilinna wrote: > This patch adds AVX optimized XTS-mode helper functions/macros and converts > serpent-avx to use the new facilities. Benefits are slightly improved speed > and reduced stack usage as use of temporary IV-array is avoided. > > tcrypt

Re: [PATCH 1/2] crypto: add CMAC support to CryptoAPI

2013-04-09 Thread Herbert Xu
On Mon, Apr 08, 2013 at 10:48:44AM +0300, Jussi Kivilinna wrote: > Patch adds support for NIST recommended block cipher mode CMAC to CryptoAPI. > > This work is based on Tom St Denis' earlier patch, > http://marc.info/?l=linux-crypto-vger&m=135877306305466&w=2 > > Cc: Tom St Denis > Signed-off-

Re: [PATCH 1/4] crypto: gcm - make GMAC work when dst and src are different

2013-04-09 Thread Herbert Xu
On Sun, Apr 07, 2013 at 04:43:41PM +0300, Jussi Kivilinna wrote: > The GMAC code assumes that dst==src, which causes problems when trying to add > rfc4543(gcm(aes)) test vectors. > > So fix this code to work when source and destination buffer are different. > > Signed-off-by: Jussi Kivilinna Al

Re: [PATCH] crypto: algif - suppress sending source address information in recvmsg

2013-04-09 Thread Herbert Xu
On Sun, Apr 07, 2013 at 02:05:39PM +0200, Mathias Krause wrote: > The current code does not set the msg_namelen member to 0 and therefore > makes net/socket.c leak the local sockaddr_storage variable to userland > -- 128 bytes of kernel stack memory. Fix that. > > Signed-off-by: Mathias Krause P

Re: Crypto Fixes for 3.9

2013-04-09 Thread Herbert Xu
Hi Linus: This push fixes a GCM bug that breaks IPsec and a compile problem in ux500. Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git or master.kernel.org:/pub/scm/linux/kernel/git/herbert/crypto-2.6.git Jussi Kivilinna (1): crypto: gcm - fix assum

[PATCH] crypto: proc - Clean up

2013-04-09 Thread Valentin Ilie
Remove trailing whitespaces Replace seq_puts with seq_printf when there are no extra parameters. Fix indentation problems Signed-off-by: Valentin Ilie --- crypto/proc.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/crypto/proc.c b/crypto/proc.c index 4a0a