dm_target_crypt - rework ivgen magic, fix bug
authorAlex Hornung <ahornung@gmail.com>
Fri, 20 Aug 2010 17:44:48 +0000 (18:44 +0100)
committerAlex Hornung <ahornung@gmail.com>
Fri, 20 Aug 2010 19:15:29 +0000 (20:15 +0100)
commit7cfe2226dac888c3f9254acdee907bdca508256d
treeef8b2ef1a74c7662f84e30688263a6d10ba8242c
parent6cab912cdb2a8934f446cd6ff89222d8eed3e9e5
dm_target_crypt - rework ivgen magic, fix bug

* Add a forgotten crypto_freesession() in the destruction of the target.

* Change ivgen infrastructure to be more complete; each ivgen can now
  have a ctor, a dtor and some private data.

* Change ESSIV ivgen to use its own crypto session.

* Change all the crypto stuff *not* to use an explicit key but rather
  use the key with which they were initialized.

* Dispatch the actual data crypto from the ivgens, allowing the iv
  generation to happen asynchronously.

Discussed-with: Matt Dillon (dillon@)
sys/dev/disk/dm/dm_target_crypt.c