git: dm_target_crypt - Fix compatibility with Linux
Alex Hornung
alexh at crater.dragonflybsd.org
Fri Aug 20 23:25:32 PDT 2010
commit 7a89864aca790456f28133cb04924ae4b1364a46
Author: Alex Hornung <ahornung at 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
More information about the Commits
mailing list