Skip to content
Commit 6212f2c7 authored by Sebastian Siewior's avatar Sebastian Siewior Committed by Herbert Xu
Browse files

[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: default avatarSebastian Siewior <sebastian@breakpoint.cc>
Tested-by: default avatarStefan Hellermann <stefan@the2masters.de>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent bc97f19d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment