Crypto Fixes for 3.0

2011-06-29 Thread Herbert Xu
Hi Linus: This push fixes a memory corruption bug due to undersized kmalloc in the caam driver. The patch has actually been in my tree for a month but I had incorrectly placed it in the tree for linux-next. Sorry about that. Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/herbert

Re: [PATCH] crypto: caam - fix operator precedence in shared descriptor allocation

2011-06-29 Thread Herbert Xu
On Wed, Jun 29, 2011 at 11:12:26AM -0500, Kim Phillips wrote: > On Thu, 26 May 2011 13:30:44 +1000 > Herbert Xu wrote: > > > On Mon, May 23, 2011 at 06:45:23PM -0500, Kim Phillips wrote: > > > setkey allocates 16 bytes (CAAM_CMD_SZ * > > > DESC_AEAD_SHARED_TEXT_LEN) shy of what is needed to > > >

Re: loop-aes encrypted root on Fedora 15 using systemd

2011-06-29 Thread Frederick Gazerblezeebe
I now have Fedora 15 (with selinux enabled) up and running from a loop-aes-encrypted root partition. In case it can prove useful to someone else running Fedora 15 (and/or some other systemd based linux) I will describe what I have done and the status of my issues here. The details (WARNING: LONG!!

Re: [PATCH] crypto: caam - fix operator precedence in shared descriptor allocation

2011-06-29 Thread Kim Phillips
On Thu, 26 May 2011 13:30:44 +1000 Herbert Xu wrote: > On Mon, May 23, 2011 at 06:45:23PM -0500, Kim Phillips wrote: > > setkey allocates 16 bytes (CAAM_CMD_SZ * > > DESC_AEAD_SHARED_TEXT_LEN) shy of what is needed to > > store the shared descriptor, resulting in memory > > corruption. Fix this.

[PATCH] s390: support hardware accelerated SHA-224

2011-06-29 Thread Jan Glauber
On recent s390 machines hardware acceleration is available for SHA-256. SHA-224 is based on SHA-256 so it can also be accelerated by hardware. Do this by adding the proper algorithm description and initialization. Signed-off-by: Jan Glauber --- arch/s390/crypto/sha256_s390.c | 66 +