dm crypt: set key size early
authorMilan Broz <mbroz@redhat.com>
Thu, 13 Jan 2011 19:59:49 +0000 (19:59 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 13 Jan 2011 19:59:49 +0000 (19:59 +0000)
commit69a8cfcda21017364df1c21b720daf304b5598a6
treec727770359b9295154194f0d8459ba7be3898b94
parent4a1aeb98297e17f4e0a8cdda919e63bf528b2e5d
dm crypt: set key size early

Simplify key size verification (hexadecimal string) and
set key size early in constructor.

(Patch required by later changes.)

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