Re: [PATCH -v2 4/5] x86: Move kernel_fpu_using to irq_is_fpu_using in asm/i387.h

2009-08-05 Thread H. Peter Anvin
Herbert Xu wrote: Peter, do you want to apply this patch in your tree or would you prefer for it to go through my tree along with the rest of the series? I'll take it tomorrow... want to double-check that we don't have any real issues w.r.t. corruption there. -hpa -- To unsubscribe

Re: [PATCH -v2 4/5] x86: Move kernel_fpu_using to irq_is_fpu_using in asm/i387.h

2009-08-05 Thread Herbert Xu
On Mon, Aug 03, 2009 at 03:45:30PM +0800, Huang Ying wrote: > This is used by AES-NI accelerated AES implementation and PCLMULQDQ > accelerated GHASH implementation. > > v2: > - Renamed to irq_is_fpu_using to reflect the real situation. > > Signed-off-by: Huang Ying > CC: H. Peter Anvin > ---

Re: [PATCH -v2 3/5] crypto: cryptd: Add support to access underlaying shash

2009-08-05 Thread Herbert Xu
On Mon, Aug 03, 2009 at 03:45:29PM +0800, Huang Ying wrote: > cryptd_alloc_ahash() will allocate a cryptd-ed ahash for specified > algorithm name. The new allocated one is guaranteed to be cryptd-ed > ahash, so the shash underlying can be gotten via cryptd_ahash_child(). > > Signed-off-by: Huang Y

Re: [PATCH -v2 2/5] crypto: Use GHASH digest algorithm in GCM

2009-08-05 Thread Herbert Xu
On Mon, Aug 03, 2009 at 03:45:28PM +0800, Huang Ying wrote: > Remove the dedicated GHASH implementation in GCM, and uses the GHASH > digest algorithm instead. This will make GCM uses hardware accelerated > GHASH implementation automatically if available. > > ahash instead of shash interface is use

Re: [PATCH -v2 1/5] crypto: Add GHASH digest algorithm for GCM

2009-08-05 Thread Herbert Xu
On Mon, Aug 03, 2009 at 03:45:27PM +0800, Huang Ying wrote: > GHASH is implemented as a shash algorithm. The actual implementation > is copied from gcm.c. This makes it possible to add > architecture/hardware accelerated GHASH implementation. > > v2: > - Fix a bug in Makefile (Thanks Sebastian) >

Re: [BUGFIX] crypto: Fix ctr(aes) testing by specifying geniv

2009-08-05 Thread Huang Ying
On Wed, 2009-08-05 at 17:45 +0800, Herbert Xu wrote: > On Mon, Aug 03, 2009 at 03:44:43PM +0800, Huang Ying wrote: > > When doing "modeprobe tcrypt mode=10", the following error will show > > in dmesg. > > > > alg: skcipher: Failed to load transform for ctr(aes): -22 > > alg: skcipher: Failed to l

Re: [dm-crypt] cryptsetup with arc4 cipher

2009-08-05 Thread Sebastian Andrzej Siewior
* Milan Broz | 2009-08-05 15:09:59 [+0200]: >There is apparently some problem in kernel, not sure if dm-crypt or crypto >api one, This ARC4 configuration is allowed (no errors) but produces something >more like random generator:-) > >one sector device: ># dmsetup create x --table "0 1 crypt arc4-c

Re: [dm-crypt] cryptsetup with arc4 cipher

2009-08-05 Thread Milan Broz
Stelios Bounanos wrote: > I was surprised to see arc4 perform so badly, particularly since > "openssl speed" results tell a very different story. I decided to do > some simple benchmarking of my own but I can't seem to get cryptsetup to > work with arc4: > > # cryptsetup luksFormat --align-payl

Re: [BUGFIX] crypto: Fix ctr(aes) testing by specifying geniv

2009-08-05 Thread Herbert Xu
On Mon, Aug 03, 2009 at 03:44:43PM +0800, Huang Ying wrote: > When doing "modeprobe tcrypt mode=10", the following error will show > in dmesg. > > alg: skcipher: Failed to load transform for ctr(aes): -22 > alg: skcipher: Failed to load transform for ctr(aes): -22 > tcrypt: one or more tests faile

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

2009-08-05 Thread Herbert Xu
On Wed, Jul 22, 2009 at 11:49:51AM +0200, Steffen Klassert wrote: > This patch converts authenc to the new ahash interface. > > Signed-off-by: Steffen Klassert Applied to cryptodev. Thanks a lot Steffen! -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} Home Page: htt

[PATCH v4] crypto: add support for Orion5X crypto engine

2009-08-05 Thread Sebastian Andrzej Siewior
From: Sebastian Andrzej Siewior This adds support for Marvell's Cryptographic Engines and Security Accelerator (CESA) which can be found on a few SoC. Tested with dm-crypt. Acked-by: Nicolas Pitre Signed-off-by: Sebastian Andrzej Siewior --- v3..v4: change Kconfig help text & added Nicolas' ac