git: dm_target_crypt - Fix compatibility with Linux

看板DFBSD_commit作者時間15年前 (2010/08/21 14:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1CRtBcHA (DFBSD_commit)