]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
dm crypt: rewrite (wipe) key in crypto layer using random data
authorOndrej Kozina <okozina@redhat.com>
Mon, 24 Apr 2017 12:21:53 +0000 (14:21 +0200)
committerMike Snitzer <snitzer@redhat.com>
Mon, 24 Apr 2017 19:16:03 +0000 (15:16 -0400)
commitc82feeec9a014b72c4ffea36648cfb6f81cc1b73
tree5d9078d5e48ffa2f6bbcd9b3382bcfe909c159b9
parent06eb061f48594aa369f6e852b352410298b317a8
dm crypt: rewrite (wipe) key in crypto layer using random data

The message "key wipe" used to wipe real key stored in crypto layer by
rewriting it with zeroes.  Since commit 28856a9 ("crypto: xts -
consolidate sanity check for keys") this no longer works in FIPS mode
for XTS.

While running in FIPS mode the crypto key part has to differ from the
tweak key.

Fixes: 28856a9 ("crypto: xts - consolidate sanity check for keys")
Cc: stable@vger.kernel.org
Signed-off-by: Ondrej Kozina <okozina@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-crypt.c