dm crypt: wipe keys string immediately after key is set
authorMilan Broz <mbroz@redhat.com>
Thu, 24 Mar 2011 13:54:27 +0000 (13:54 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 24 Mar 2011 13:54:27 +0000 (13:54 +0000)
commitde8be5ac70f50a2340f24fd769a1aafa5a51ae34
tree1f4b7a5cddd6c6a78412a2dbd9ec071f00a41d1d
parent3407ef5262b55ca5d7139d2b555ef792fe531eec
dm crypt: wipe keys string immediately after key is set

Always wipe the original copy of the key after processing it
in crypt_set_key().

Signed-off-by: Milan Broz <mbroz@redhat.com>
Acked-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-crypt.c