[PATCH 5/5] crypto: talitos - avoid unnecessary decrypt check

2009-03-27 Thread Kim Phillips
the ICV check bit only gets set in decrypt entry points Signed-off-by: Kim Phillips --- drivers/crypto/talitos.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c index 1cc1c41..c70775f 100644 --- a/drivers/crypto/talit

[PATCH 4/5] crypto: talitos - containerof related codingstyle

2009-03-27 Thread Kim Phillips
no functional changes. Signed-off-by: Kim Phillips --- drivers/crypto/talitos.c | 26 -- 1 files changed, 16 insertions(+), 10 deletions(-) diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c index a073e6b..1cc1c41 100644 --- a/drivers/crypto/talitos.c +++

[PATCH 3/5] crypto: talitos - whitespace/codingstyle/overrun lines cleanup

2009-03-27 Thread Kim Phillips
no functional changes. Signed-off-by: Kim Phillips --- drivers/crypto/talitos.c | 95 +++--- 1 files changed, 48 insertions(+), 47 deletions(-) diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c index a0b0a63..a073e6b 100644 --- a/drivers/

[PATCH 2/5 RESEND] crypto: talitos - Add ablkcipher algorithms

2009-03-27 Thread Kim Phillips
From: Lee Nipper Add these ablkcipher algorithms: cbc(aes), cbc(des3_ede). Added handling of chained scatterlists with zero length entry because eseqiv uses it. Added new map and unmap routines. Signed-off-by: Lee Nipper minor coding style cleanup, removed testablkcipher modparam. Signed-off

[PATCH 1/5 RESEND] crypto: talitos - scaffolding for new algorithm types

2009-03-27 Thread Kim Phillips
From: Lee Nipper This patch is preparation for adding new algorithm types. Some elements which are AEAD specific were renamed. The algorithm template structure was changed to use crypto_alg, and talitos_alg_alloc was made more general with respect to algorithm types. ipsec_esp_edesc is renamed t

Re: [RFC] [PATCH 4/4] esp: add the pcrypt hooks to esp

2009-03-27 Thread Herbert Xu
On Mon, Mar 16, 2009 at 12:55:26PM +0100, Steffen Klassert wrote: > > @@ -447,7 +448,7 @@ static int esp_init_aead(struct xfrm_state *x) > struct crypto_aead *aead; > int err; > > - aead = crypto_alloc_aead(x->aead->alg_name, 0, 0); > + aead = crypto_alloc_aead_tfm(x->aead->al

Re: [RFC] [PATCH 2/4] cpu_chainiv: add percpu IV chain genarator

2009-03-27 Thread Herbert Xu
On Mon, Mar 16, 2009 at 12:52:51PM +0100, Steffen Klassert wrote: > If the crypro requests of a crypto transformation are processed in > parallel, the usual chain IV generator would serialize the crypto > requests again. The percpu IV chain genarator allocates the IV as > percpu data and generates

Re: [PATCH 1/3] crypto: Fix tfm allocation in cryptd_alloc_ablkcipher

2009-03-27 Thread Herbert Xu
On Thu, Mar 05, 2009 at 10:25:20AM +0800, Huang Ying wrote: > Use crypto_alloc_base() instead of crypto_alloc_ablkcipher() to > allocate underlying tfm in cryptd_alloc_ablkcipher. Because > crypto_alloc_ablkcipher() prefer GENIV encapsulated crypto instead of > raw one, while cryptd_alloc_ablkciphe

Re: [PATCH] crypto: fix handling of sg buffers in ixp4xx driver

2009-03-27 Thread Herbert Xu
On Mon, Mar 02, 2009 at 12:45:12PM +0100, Christian Hohnstaedt wrote: > > - keep dma functions away from chained scatterlists. >Use the existing scatterlist iteration inside the driver >to call dma_map_single() for each chunk and avoid dma_map_sg(). > > Signed-off-by: Christian Hohnstaed