dm crypt: simplify crypt_ctr
authorMilan Broz <mbroz@redhat.com>
Thu, 12 Aug 2010 03:14:07 +0000 (04:14 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 12 Aug 2010 03:14:07 +0000 (04:14 +0100)
commit5ebaee6d290279d1df6ce45d6d54de8cfc473273
tree9fa2693bcd1f46827e90f1aff1d36fd1d6da4ea6
parent28513fccf0ceefb8171ddc0cefa429b82e92a2c9
dm crypt: simplify crypt_ctr

Allocate cipher strings indpendently of struct crypt_config and move
cipher parsing and allocation into a separate function to prepare for
supporting the cryptoapi format e.g. "xts(aes)".

No functional change in this patch.

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