Cryptoapi: H/W accelerator/ IPsec interfaces

2011-10-20 Thread satpal parmar
Hi All I am trying to work Openswan IPsec(2.6.33)  (NETKEY) with NSS H/W cryptodrivers  for ARM cortex based SoC running linux 2.6.37. I am facing this weird problem where when I ping I see (wireshark) ESP packets going  both side but I am not receiving anything on either side. See the log below.I

[PATCH 3/3] Add snappy interface to crypto API

2011-10-20 Thread Andi Kleen
From: Andi Kleen Mainly so that ubifs can use it. Snappy is a better compressor in the same niche as LZO. Only lightly tested so far. Experiences welcome. Cc: herb...@gondor.apana.org.au Cc: dedeki...@gmail.com Cc: adrian.hun...@intel.com Signed-off-by: Andi Kleen --- crypto/Kconfig |9

[PATCH 2/3] BTRFS: Add snappy support

2011-10-20 Thread Andi Kleen
From: Andi Kleen Add support in btrfs for snappy compression. This is based on the lzo code with minor modifications. The btrfs glue code could be significantly improved over LZO by exploiting some snappy features, but hasn't so far. Open: implement scatter-gather support and get rid of the tem

[PATCH 1/3] Add the snappy-c compressor to lib

2011-10-20 Thread Andi Kleen
From: Andi Kleen This is a C port of the google snappy compressor. It has roughly comparable compression to LZO, but is significantly faster on many file types. For example it beats all other compressors on already compressed data. I ported the original C++ code over to C and did some changes to

Re: [PATCH v2] crypto: ghash: Avoid null pointer dereference if no key is set.

2011-10-20 Thread Herbert Xu
On Fri, Oct 14, 2011 at 01:53:15PM -0400, Nick Bowler wrote: > The ghash_update function passes a pointer to gf128mul_4k_lle which will > be NULL if ghash_setkey is not called or if the most recent call to > ghash_setkey failed to allocate memory. This causes an oops. Fix this > up by returning a

Re: [PATCH] crypto: picoxcell: add dependency on HAVE_CLK

2011-10-20 Thread Herbert Xu
On Fri, Sep 30, 2011 at 11:26:41PM +0100, Jamie Iles wrote: > The picoxcell crypto driver requires the clk API, but the platform in > mainline does not currently support it. Add an explicit dependency on > HAVE_CLK to avoid build breakage. > > Cc: Herbert Xu > Signed-off-by: Jamie Iles Patch a