[PATCH 7/8] crypto: caam - faster aead implementation

2011-07-08 Thread Kim Phillips
From: Yuan Kang Job descriptors only contain header and seq pointers. Other commands are stored in separate shared descriptors for encrypt, decrypt and givencrypt, stored as arrays in caam_ctx. This requires additional macros to create math commands to calculate assoclen and cryptlen. Signed-o

[PATCH 8/8] crypto: caam - ablkcipher support

2011-07-08 Thread Kim Phillips
From: Yuan Kang caam now supports encrypt and decrypt for aes, des and 3des Signed-off-by: Yuan Kang Signed-off-by: Kim Phillips --- drivers/crypto/caam/caamalg.c | 510 + drivers/crypto/caam/compat.h |1 + 2 files changed, 511 insertions(+), 0 de

[PATCH 5/8] crypto: caam - shorter names

2011-07-08 Thread Kim Phillips
From: Yuan Kang "aead_authenc" and "ipsec_esp" changed to "aead," except for function "ipsec_esp," which is changed to "init_aead_job." Variable name of aead_request structures changed to "req" and name of aead_givcrypt_request structure changed to "areq" Signed-off-by: Yuan Kang Signed-off-by

[PATCH 4/8] crypto: talitos - don't bad_key in ablkcipher setkey

2011-07-08 Thread Kim Phillips
crypto/ablkcipher.c's setkey() has already checked against the min, max key sizes before it calls here, and all max_keysize assignments in the algorithm template array do not exceed TALITOS_MAX_KEY_SIZE. Signed-off-by: Kim Phillips --- drivers/crypto/talitos.c | 11 --- 1 files changed

[PATCH 6/8] crypto: caam - structure renaming

2011-07-08 Thread Kim Phillips
From: Yuan Kang caam_ctx.key_phys to key_dma caam_alg_template supports multiple algorithm types listed in union, which requires cases for different types in function caam_alg_alloc Signed-off-by: Yuan Kang Signed-off-by: Kim Phillips --- drivers/crypto/caam/caamalg.c | 64

[PATCH 3/8] crypto: talitos - remove unused giv from ablkcipher methods

2011-07-08 Thread Kim Phillips
Signed-off-by: Kim Phillips --- drivers/crypto/talitos.c |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c index bd9e2ca..521244e 100644 --- a/drivers/crypto/talitos.c +++ b/drivers/crypto/talitos.c @@ -1429,7 +1429,

[PATCH 2/8] crypto: talitos - don't set done notification in hot path

2011-07-08 Thread Kim Phillips
IRQ done notification is always set. Remove its explicit assignment from the hot path by including it in the descriptor header template assignment in talitos_cra_init. Signed-off-by: Kim Phillips --- drivers/crypto/talitos.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff

[PATCH 1/8] crypto: talitos - ensure request ordering within a single tfm

2011-07-08 Thread Kim Phillips
Assign single target channel per tfm in talitos_cra_init instead of performing channel scheduling dynamically during the encryption request. This changes the talitos_submit interface to accept a new channel number argument. Without this, rapid bursts of misc. sized requests could make it possible

Announce loop-AES-v3.6d file/swap crypto package

2011-07-08 Thread Jari Ruusu
loop-AES changes since previous release: - build-initrd.sh is now able to set up more than one loop device. - Fixed build on 3.x kernels. - Lots of #ifdef spaghetti removed for 3.x kernels. - Fixed build on recent RHEL kernels. bzip2 compressed tarball is here: http://loop-aes.sourceforge.ne

Re: [PATCH] crypto, gf128: fix call to memset()

2011-07-08 Thread Herbert Xu
On Thu, Jul 07, 2011 at 02:10:39AM -0700, David Miller wrote: > From: Mathias Krause > Date: Thu, 7 Jul 2011 10:33:50 +0200 > > > In gf128mul_lle() and gf128mul_bbe() r isn't completely initialized with > > zero because the size argument passed to memset() is the size of the > > pointer, not the