From: Milan Broz <mbroz@redhat.com>
To: Rudolf Deilmann <rudolf.deilmann@gmail.com>
Cc: dm-crypt@saout.de
Subject: Re: [dm-crypt] [ANNOUNCE] cryptsetup 1.3.0-rc1 (test release candidate)
Date: Tue, 22 Mar 2011 20:09:56 +0100 [thread overview]
Message-ID: <4D88F404.30607@redhat.com> (raw)
In-Reply-To: <20110322194725.3b104ed5@gmail.com>
On 03/22/2011 07:47 PM, Rudolf Deilmann wrote:
> On Mon, 21 Mar 2011 19:21:50 +0100
> Milan Broz <mbroz@redhat.com> wrote:
>> I added offset support, seems loopAES always uses offset==skip
>> (IOW initial vector is always related to absolute sector size on the
>> device).
>
> No, loopAES supports both options. It depends on user input:
>
> --
> -o offset
> The data start is moved offset bytes into the specified file or
> device. Normally offset is included in IV (initialization
> vector) computations. If offset is prefixed with @ character, then
> offset is not included in IV computations. @ prefix functionality
> may not be supported on some older kernels and/or loop drivers.
I wonder how I missed that. Ok, the we just allow --skip and if
it is not explicitly defined, it will behave as now.
So @offset => --skip 0 --offset $offset/512, right?
I added test for default offset (and verification with losetup passes),
so it is just that @ prefix mode missing now.
> Both options seems to be supported by dmcrypt/dmsetup. In the first case
> IV offset is always identic to the sector offset, in the second case IV
> offset is always zero.
yes, everything is supported, this is just userspace handling.
> (IV offset: 6th value at dmsetup table, sector offset: 8th value. I
> hope, I haven't muddle something )
FYI the documentation is in kernel itself
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob_plain;f=Documentation/device-mapper/dm-crypt.txt;hb=HEAD
Thanks,
Milan
next prev parent reply other threads:[~2011-03-22 19:10 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-14 17:44 [dm-crypt] [ANNOUNCE] cryptsetup 1.3.0-rc1 (test release candidate) Milan Broz
2011-03-14 21:13 ` Rudolf Deilmann
2011-03-14 22:10 ` Milan Broz
2011-03-14 23:45 ` Rudolf Deilmann
2011-03-15 1:02 ` Arno Wagner
2011-03-15 11:11 ` Milan Broz
2011-03-15 11:43 ` Jonas Meurer
2011-03-15 12:19 ` Milan Broz
2011-03-15 12:09 ` Arno Wagner
2011-03-15 12:36 ` Milan Broz
2011-03-15 13:49 ` Arno Wagner
2011-03-21 18:21 ` Milan Broz
2011-03-22 18:47 ` Rudolf Deilmann
2011-03-22 19:09 ` Milan Broz [this message]
2011-03-22 20:44 ` Rudolf Deilmann
2011-03-22 21:05 ` Milan Broz
2011-03-23 14:14 ` Rudolf Deilmann
2011-03-23 14:37 ` Milan Broz
2011-03-23 16:00 ` Rudolf Deilmann
2011-03-23 16:26 ` Milan Broz
2011-04-14 14:28 ` [dm-crypt] [ANNOUNCE] cryptsetup 1.3.0-rc1 ( test " Ludwig Nussel
2011-03-17 13:36 ` [dm-crypt] [ANNOUNCE] cryptsetup 1.3.0-rc1 (test " Ludwig Nussel
2011-03-17 14:02 ` Milan Broz
2011-03-22 12:50 ` [dm-crypt] [ANNOUNCE] cryptsetup 1.3.0-rc2 " Milan Broz
2011-04-05 20:02 ` [dm-crypt] [ANNOUNCE] cryptsetup 1.3.0 Milan Broz
2011-04-05 20:02 ` Milan Broz
2011-05-24 15:48 ` [dm-crypt] [ANNOUNCE] cryptsetup 1.3.1 Milan Broz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D88F404.30607@redhat.com \
--to=mbroz@redhat.com \
--cc=dm-crypt@saout.de \
--cc=rudolf.deilmann@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.