Re: [PATCH v3] x86, crypto: ported aes-ni implementation to x86

2010-11-04 Thread Mathias Krause
On 03.11.2010, 23:27 Huang Ying wrote: On Wed, 2010-11-03 at 14:14 -0700, Mathias Krause wrote: The AES-NI instructions are also available in legacy mode so the 32-bit architecture may profit from those, too. To illustrate the performance gain here's a short summary of the tcrypt speed test

[PATCH 1/1] crypto: api.c: adding doxygen comments to api

2010-11-04 Thread Mark Allyn
Signed-off-by: Mark A. Allyn mark.a.al...@intel.com --- crypto/api.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/crypto/api.c b/crypto/api.c index 033a714..a11939f 100644 --- a/crypto/api.c +++ b/crypto/api.c @@ -193,6 +193,13 @@ static struct crypto_alg

Re: [PATCH 1/1] crypto: api.c: adding doxygen comments to api

2010-11-04 Thread Randy Dunlap
On Thu, 4 Nov 2010 09:32:42 -0700 Mark Allyn wrote: Signed-off-by: Mark A. Allyn mark.a.al...@intel.com We use kernel-doc notation in kernel sources, not doxygen. Please see Documentation/kernel-doc-nano-HOWTO.txt for info, or ask me. Thanks. --- crypto/api.c | 14 ++ 1

Re: [PATCH 1/1] crypto: api.c: adding doxygen comments to api

2010-11-04 Thread David Daney
On 11/04/2010 09:32 AM, Mark Allyn wrote: Subject: [PATCH 1/1] crypto: api.c: adding doxygen comments to api Do we really use doxygen in the kernel? Perhaps a subject line containing the string 'kernel-doc' would be more accurate. Reading kernel-doc-nano-HOWTO.txt will show you the proper

[PATCH 1/1] crypto: api.c adding kernel-doc comments

2010-11-04 Thread Mark Allyn
Add comments to crypto_alg_lookup and crypto_larval_lookup I am re-submitting this due to errors Signed-off-by: Mark A. Allyn mark.a.al...@intel.com --- crypto/api.c | 19 +++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/crypto/api.c b/crypto/api.c index

Re: [PATCH 1/1] crypto: api.c adding kernel-doc comments

2010-11-04 Thread Randy Dunlap
On Thu, 4 Nov 2010 10:07:22 -0700 Mark Allyn wrote: Add comments to crypto_alg_lookup and crypto_larval_lookup I am re-submitting this due to errors Signed-off-by: Mark A. Allyn mark.a.al...@intel.com --- crypto/api.c | 19 +++ 1 files changed, 19 insertions(+), 0

RE: [PATCH 1/1] crypto: api.c adding kernel-doc comments

2010-11-04 Thread Allyn, Mark A
This is my first time in attempting to patch documentation. Shall I follow your suggestions by submitting a patch that depends on this patch or shall I submit the whole thing again with the corrections? Mark -Original Message- From: Randy Dunlap [mailto:rdun...@xenotime.net] Sent:

Re: [PATCH 1/1] crypto: api.c adding kernel-doc comments

2010-11-04 Thread Randy Dunlap
On Thu, 4 Nov 2010 11:25:06 -0600 Allyn, Mark A wrote: This is my first time in attempting to patch documentation. Shall I follow your suggestions by submitting a patch that depends on this patch or shall I submit the whole thing again with the corrections? Hi Mark, If your patch was

Re: RFC: Crypto API User-interface

2010-11-04 Thread Herbert Xu
On Tue, Oct 19, 2010 at 09:44:18PM +0800, Herbert Xu wrote: OK I've gone ahead and implemented the user-space API for hashes and ciphers. Here is a revised series with bug fixes and improvements. The main change is that hashes can now be finalised by recvmsg instead of requiring a preceding

[PATCH 1/4] net - Add AF_ALG macros

2010-11-04 Thread Herbert Xu
net - Add AF_ALG macros This patch adds the socket family/level macros for the yet-to-be-born AF_ALG family. The AF_ALG family provides the user-space interface for the kernel crypto API. Signed-off-by: Herbert Xu herb...@gondor.apana.org.au --- include/linux/socket.h |5 - 1 file

[PATCH 2/4] crypto: af_alg - User-space interface for Crypto API

2010-11-04 Thread Herbert Xu
crypto: af_alg - User-space interface for Crypto API This patch creates the backbone of the user-space interface for the Crypto API, through a new socket family AF_ALG. Each session corresponds to one or more connections obtained from that socket. The number depends on the number of

[PATCH 4/4] crypto: algif_skcipher - User-space interface for skcipher operations

2010-11-04 Thread Herbert Xu
crypto: algif_skcipher - User-space interface for skcipher operations This patch adds the af_alg plugin for symmetric key ciphers, corresponding to the ablkcipher kernel operation type. Keys can optionally be set through the setsockopt interface. Once a sendmsg call occurs without MSG_MORE no

[PATCH 3/4] crypto: algif_hash - User-space interface for hash operations

2010-11-04 Thread Herbert Xu
crypto: algif_hash - User-space interface for hash operations This patch adds the af_alg plugin for hash, corresponding to the ahash kernel operation type. Keys can optionally be set through the setsockopt interface. Each sendmsg call will finalise the hash unless sent with a MSG_MORE flag.

Re: RFC: Crypto API User-interface

2010-11-04 Thread Herbert Xu
On Thu, Nov 04, 2010 at 01:43:16PM -0400, Miloslav Trmac wrote: shash_async_import() - it assumes that the struct shash_desc placed in ahash_request_ctx() of the struct ahash_request was initialized to point to the tfm, which is only done in shash_async_init(). Thanks for catching this.

Re: [PATCH 1/4] net - Add AF_ALG macros

2010-11-04 Thread David Miller
From: Herbert Xu herb...@gondor.apana.org.au Date: Thu, 04 Nov 2010 12:36:19 -0500 net - Add AF_ALG macros This patch adds the socket family/level macros for the yet-to-be-born AF_ALG family. The AF_ALG family provides the user-space interface for the kernel crypto API. Signed-off-by:

Re: [PATCH 2/4] crypto: af_alg - User-space interface for Crypto API

2010-11-04 Thread David Miller
From: Herbert Xu herb...@gondor.apana.org.au Date: Thu, 04 Nov 2010 12:36:19 -0500 crypto: af_alg - User-space interface for Crypto API This patch creates the backbone of the user-space interface for the Crypto API, through a new socket family AF_ALG. Each session corresponds to one or

Re: [PATCH 3/4] crypto: algif_hash - User-space interface for hash operations

2010-11-04 Thread David Miller
From: Herbert Xu herb...@gondor.apana.org.au Date: Thu, 04 Nov 2010 12:36:19 -0500 crypto: algif_hash - User-space interface for hash operations This patch adds the af_alg plugin for hash, corresponding to the ahash kernel operation type. Keys can optionally be set through the setsockopt

[PATCH 1/1] crypto: api.c: add comments to crypto_alg_lookup and crypto_alg_larval_lookup

2010-11-04 Thread Mark Allyn
This is resubmitted due to errors in style Signed-off-by: Mark A. Allyn mark.a.al...@intel.com --- crypto/api.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/crypto/api.c b/crypto/api.c index 033a714..0314083 100644 --- a/crypto/api.c +++ b/crypto/api.c

Re: [PATCH 1/1] crypto: api.c: add comments to crypto_alg_lookup and crypto_alg_larval_lookup

2010-11-04 Thread Randy Dunlap
On Thu, 4 Nov 2010 12:49:48 -0700 Mark Allyn wrote: This is resubmitted due to errors in style Signed-off-by: Mark A. Allyn mark.a.al...@intel.com --- crypto/api.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/crypto/api.c b/crypto/api.c index

[PATCH 06/49] crypto: Use vzalloc

2010-11-04 Thread Joe Perches
Signed-off-by: Joe Perches j...@perches.com --- crypto/deflate.c |3 +-- crypto/zlib.c|3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/crypto/deflate.c b/crypto/deflate.c index 463dc85..cbc7a33 100644 --- a/crypto/deflate.c +++ b/crypto/deflate.c @@ -48,12 +48,11