[PATCH 6/6] crypto: shash - Require all algorithms to support export/import

2009-07-21 Thread Herbert Xu
crypto: shash - Require all algorithms to support export/import This patch provides a default export/import function for all shash algorithms. It simply copies the descriptor context as is done by sha1_generic. This in essence means that all existing shash algorithms now support export/import.

[PATCH 5/6] crypto: sha512-s390 - Add export/import support

2009-07-21 Thread Herbert Xu
crypto: sha512-s390 - Add export/import support This patch adds export/import support to sha512-s390 (which includes sha384-s390). The exported type is defined by struct sha512_state, which is basically the entire descriptor state of sha512_generic. Since sha512-s390 only supports a 64-bit b

[PATCH 4/6] crypto: sha512_generic - Use 64-bit counters

2009-07-21 Thread Herbert Xu
crypto: sha512_generic - Use 64-bit counters This patch replaces the 32-bit counters in sha512_generic with 64-bit counters. It also switches the bit count to the simpler byte count. Signed-off-by: Herbert Xu --- crypto/sha512_generic.c | 28 +++- include/crypto/sha.

[PATCH 3/6] crypto: sha512 - Export struct sha512_state

2009-07-21 Thread Herbert Xu
crypto: sha512 - Export struct sha512_state This patch renames struct sha512_ctx and exports it as struct sha512_state so that other sha512 implementations can use it as the reference structure for exporting their state. Signed-off-by: Herbert Xu --- crypto/sha512_generic.c | 20 +++-

[PATCH 2/6] crypto: xcbc - Fix shash conversion

2009-07-21 Thread Herbert Xu
crypto: xcbc - Fix shash conversion Although xcbc was converted to shash, it didn't obey the new requirement that all hash state must be stored in the descriptor rather than the transform. This patch fixes this issue and also optimises away the rekeying by precomputing K2 and K3 within setkey. S

[PATCH 1/6] crypto: xcbc - Use crypto_xor

2009-07-21 Thread Herbert Xu
crypto: xcbc - Use crypto_xor This patch replaces the local xor function with the generic crypto_xor function. Signed-off-by: Herbert Xu --- crypto/xcbc.c | 22 ++ 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/crypto/xcbc.c b/crypto/xcbc.c index 3b991bf..

[PATCH 0/6] crypto: shash - Require all algorithms to support export/import

2009-07-21 Thread Herbert Xu
Hi: This series ensures that all existing shash/ahash implementations support the export/import interface. It is now also a requirement that all new ones must do so as well. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} Home Page: http://gondor.apana.org.au

crypto: cryptd - Add finup/export/import for hash

2009-07-21 Thread Herbert Xu
Hi: This patch fills in the new finup/export/import functions in cryptd. commit 6fba00d176ab73b15bb8e31f261582943429a92b Author: Herbert Xu Date: Wed Jul 22 11:10:22 2009 +0800 crypto: cryptd - Add finup/export/import for hash This patch adds the finup/export/import functions to

Re: [PATCH v2] crypto: authenc - convert to ahash

2009-07-21 Thread Steffen Klassert
On Tue, Jul 21, 2009 at 09:07:25PM +0800, Herbert Xu wrote: > On Tue, Jul 21, 2009 at 02:25:09PM +0200, Steffen Klassert wrote: > > I just noticed that your shash version of hmac keeps the paded keys > > on the transform. I assumed the hashing to be reentrant, so I > > removed the locks arround the

Re: [PATCH v2] crypto: authenc - convert to ahash

2009-07-21 Thread Herbert Xu
On Tue, Jul 21, 2009 at 02:25:09PM +0200, Steffen Klassert wrote: > I just noticed that your shash version of hmac keeps the paded keys > on the transform. I assumed the hashing to be reentrant, so I > removed the locks arround the hash functions here. The padded keys are in the transform because

Re: [PATCH v2] crypto: authenc - convert to ahash

2009-07-21 Thread Steffen Klassert
I just noticed that your shash version of hmac keeps the paded keys on the transform. I assumed the hashing to be reentrant, so I removed the locks arround the hash functions here. Is there a plan to move the paded keys to the request soon, or should we keep the locks for now and remove them late

[PATCH v2] crypto: authenc - convert to ahash

2009-07-21 Thread Steffen Klassert
This patch converts authenc to the new ahash interface. Signed-off-by: Steffen Klassert --- crypto/authenc.c | 371 -- 1 files changed, 302 insertions(+), 69 deletions(-) diff --git a/crypto/authenc.c b/crypto/authenc.c index 2e16ce0..b9da719

Re: [RFC PATCH] Add VMAC(AES) to Linux for intel_txt support

2009-07-21 Thread Herbert Xu
On Thu, Jul 16, 2009 at 11:05:40PM +0800, Shane Wang wrote: > > The following VMAC(AES) patch, ported from http://fastcrypto.org/vmac, > is used to support S3 memory integrity verification for Intel(R) Trusted > Execution Technology (for more about Intel(R) TXT patches, see > http://lkml.org/