Commit 7c0f7656 authored by Sebastian Siewior's avatar Sebastian Siewior Committed by Chris Wright
Browse files

CRYPTO xts: Use proper alignment



[ Upstream commit: 6212f2c7 ]

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>
Signed-off-by: default avatarChris Wright <chrisw@sous-sol.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 0c7ac6f8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment