git: dm_target_crypt - rework ivgen magic, fix bug

Alex Hornung alexh at crater.dragonflybsd.org
Fri Aug 20 12:20:12 PDT 2010


commit 7cfe2226dac888c3f9254acdee907bdca508256d
Author: Alex Hornung <ahornung at gmail.com>
Date:   Fri Aug 20 18:44:48 2010 +0100

    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@)

Summary of changes:
 sys/dev/disk/dm/dm_target_crypt.c |  360 ++++++++++++++++++++++++++-----------
 1 files changed, 258 insertions(+), 102 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7cfe2226dac888c3f9254acdee907bdca508256d


-- 
DragonFly BSD source repository





More information about the Commits mailing list