All of lore.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <gmazyland@gmail.com>
To: ".. ink .." <mhogomchungu@gmail.com>,
	"dm-crypt@saout.de" <dm-crypt@saout.de>
Subject: Re: [dm-crypt] Variable data offset for a LUKS volume that uses a detached header.
Date: Wed, 23 Dec 2015 11:50:30 +0100	[thread overview]
Message-ID: <567A7C76.5060508@gmail.com> (raw)
In-Reply-To: <CAFnMBaRRAUaNqBGbQgP48_BaSRk57ofq4Uqtef7fWDmTszW+_Q@mail.gmail.com>

On 12/23/2015 09:39 AM, .. ink .. wrote:
>> Hmm. What about actually shifting the partition contents physically?
>>
> The current problem is not on the data offset,but it is on IV offset.
> 
> LUKS API allows setting of data offset and i got it to accept 256
> sector offset by removing the
> current restriction that forces the offset to be either zero or larger
> that header
> size.

Yes but LUKS header does not have attribute for storing IV offset.
New format will allow it, so we can think about using the new header
as "a generic key storage".
(In fact if there is enough space on device we can convert the device metadata
in-place. But that's future...)
 
> Currently,LUKS API does not have an option to set IV offset and my problem would
> be solved if the API is introduced.

I really do not want to workaround problems in other software by introducing
hacks in current version of LUKS.

If you really want this, you can use existing API (open LUKS device/header,
get volume key, open device again in PLAIN mode and use the parameters).
Should be few lines of code.

Milan

  reply	other threads:[~2015-12-23 10:50 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-22 12:00 [dm-crypt] Variable data offset for a LUKS volume that uses a detached header .. ink ..
2015-12-22 13:01 ` Arno Wagner
2015-12-22 15:39   ` .. ink ..
2015-12-23  4:26     ` Arno Wagner
2015-12-22 13:44 ` Milan Broz
2015-12-22 15:47   ` .. ink ..
2015-12-22 20:31     ` .. ink ..
2015-12-23  4:30       ` Arno Wagner
2015-12-23  6:15         ` .. ink ..
2015-12-23  6:23           ` Arno Wagner
2015-12-23  8:39             ` .. ink ..
2015-12-23 10:50               ` Milan Broz [this message]
2015-12-23 12:10                 ` .. ink ..
2015-12-23 12:29                   ` Milan Broz
2015-12-23 22:15             ` .. ink ..
2015-12-24  6:31               ` Arno Wagner

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=567A7C76.5060508@gmail.com \
    --to=gmazyland@gmail.com \
    --cc=dm-crypt@saout.de \
    --cc=mhogomchungu@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.