[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 valentin.i...@gmail.com
---
 crypto/proc.c |   16 
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/crypto/proc.c b/crypto/proc.c
index 4a0a7aa..8a22f17 100644
--- a/crypto/proc.c
+++ b/crypto/proc.c
@@ -8,7 +8,7 @@
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License as published by the Free
- * Software Foundation; either version 2 of the License, or (at your option) 
+ * Software Foundation; either version 2 of the License, or (at your option)
  * any later version.
  *
  */
@@ -80,7 +80,7 @@ static void c_stop(struct seq_file *m, void *p)
 static int c_show(struct seq_file *m, void *p)
 {
struct crypto_alg *alg = list_entry(p, struct crypto_alg, cra_list);
-   
+
seq_printf(m, name : %s\n, alg-cra_name);
seq_printf(m, driver   : %s\n, alg-cra_driver_name);
seq_printf(m, module   : %s\n, module_name(alg-cra_module));
@@ -91,7 +91,7 @@ static int c_show(struct seq_file *m, void *p)
   passed : unknown);
 
if (alg-cra_flags  CRYPTO_ALG_LARVAL) {
-   seq_printf(m, type : larval\n);
+   seq_puts(m, type : larval\n);
seq_printf(m, flags: 0x%x\n, alg-cra_flags);
goto out;
}
@@ -100,10 +100,10 @@ static int c_show(struct seq_file *m, void *p)
alg-cra_type-show(m, alg);
goto out;
}
-   
+
switch (alg-cra_flags  (CRYPTO_ALG_TYPE_MASK | CRYPTO_ALG_LARVAL)) {
case CRYPTO_ALG_TYPE_CIPHER:
-   seq_printf(m, type : cipher\n);
+   seq_puts(m, type : cipher\n);
seq_printf(m, blocksize: %u\n, alg-cra_blocksize);
seq_printf(m, min keysize  : %u\n,
alg-cra_cipher.cia_min_keysize);
@@ -111,10 +111,10 @@ static int c_show(struct seq_file *m, void *p)
alg-cra_cipher.cia_max_keysize);
break;
case CRYPTO_ALG_TYPE_COMPRESS:
-   seq_printf(m, type : compression\n);
+   seq_puts(m, type : compression\n);
break;
default:
-   seq_printf(m, type : unknown\n);
+   seq_puts(m, type : unknown\n);
break;
}
 
@@ -134,7 +134,7 @@ static int crypto_info_open(struct inode *inode, struct 
file *file)
 {
return seq_open(file, crypto_seq_ops);
 }
-
+
 static const struct file_operations proc_crypto_ops = {
.open   = crypto_info_open,
.read   = seq_read,
-- 
1.7.10.4

--
To unsubscribe from this list: send the line unsubscribe linux-crypto in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


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 assumption that assoc has one segment

Linus Walleij (1):
  crypto: ux500 - add missing comma

 crypto/gcm.c  |   17 ++---
 drivers/crypto/ux500/cryp/cryp_core.c |2 +-
 2 files changed, 15 insertions(+), 4 deletions(-)

Thanks,
-- 
Email: Herbert Xu herb...@gondor.apana.org.au
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line unsubscribe linux-crypto in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


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 mini...@googlemail.com

Patch applied.  Thanks!
-- 
Email: Herbert Xu herb...@gondor.apana.org.au
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line unsubscribe linux-crypto in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


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 jussi.kivili...@iki.fi

All applied.  Thanks Jussi!
-- 
Email: Herbert Xu herb...@gondor.apana.org.au
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line unsubscribe linux-crypto in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


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-vgerm=135877306305466w=2
 
 Cc: Tom St Denis tstde...@elliptictech.com
 Signed-off-by: Jussi Kivilinna jussi.kivili...@iki.fi

Both patches applied.
-- 
Email: Herbert Xu herb...@gondor.apana.org.au
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line unsubscribe linux-crypto in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


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 results, with Intel i5-2450M:
 enc dec
 16B 1.00x   1.00x
 64B 1.00x   1.00x
 256B1.04x   1.06x
 1024B   1.09x   1.09x
 8192B   1.10x   1.09x
 
 Signed-off-by: Jussi Kivilinna jussi.kivili...@iki.fi

All applied.  Thanks!
-- 
Email: Herbert Xu herb...@gondor.apana.org.au
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line unsubscribe linux-crypto in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html