]> git.baikalelectronics.ru Git - kernel.git/commit
[CRYPTO] xts: Use proper alignment
authorSebastian Siewior <sebastian@breakpoint.cc>
Thu, 6 Mar 2008 10:56:19 +0000 (18:56 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 6 Mar 2008 10:56:19 +0000 (18:56 +0800)
commite8c5758fe1a83042474c4b03b43b7cd844d38365
treebfd2394ae9e7e930e704357d6a9ff307cf10b6cb
parentbe395e78f26b9a4d563bba86b5d343129773cb04
[CRYPTO] xts: Use proper alignment

The XTS blockmode uses a copy of the IV which is saved on the stack
and may or may not be properly aligned. If it is not, it will break
hardware cipher like the geode or padlock.
This patch encrypts the IV in place so we don't have to worry about
alignment.

Signed-off-by: Sebastian Siewior <sebastian@breakpoint.cc>
Tested-by: Stefan Hellermann <stefan@the2masters.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/xts.c