DragonFly BSD
DragonFly commits List (threaded) for 2010-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: dm_target_crypt - Fix compatibility with Linux


From: Alex Hornung <alexh@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 20 Aug 2010 23:24:57 -0700 (PDT)

commit 7a89864aca790456f28133cb04924ae4b1364a46
Author: Alex Hornung <ahornung@gmail.com>
Date:   Sat Aug 21 07:17:54 2010 +0100

    dm_target_crypt - Fix compatibility with Linux
    
    * The sector number that Linux' dm-crypt passes to its iv generators
      is offset another -block_offset sectors, so that the actual sector
      number is the one on the dm device, not the underlying device.
    
    * Also fix the plain iv generator, which is supposed to be a "32-bit
      little-endian version of the sector number"
    
    * Now our dm_target_crypt can read Linux' crypt disks. This was tested
      with an image using aes-cbc-essiv:sha256 and aes-cbc-plain.

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

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


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]