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: Tue, 22 Dec 2015 14:44:08 +0100 [thread overview]
Message-ID: <567953A8.9020903@gmail.com> (raw)
In-Reply-To: <CAFnMBaQHdK-nnUy=LKpQjUb0dZbdpFkn06CTfo=icNdgiHn+Bg@mail.gmail.com>
On 12/22/2015 01:00 PM, .. ink .. wrote:
> Happy holidays everybody,
>
> I am trying to create a LUKS volume with a detached header that has
> data offset at sector 256 and things fail with
> an error that reads:
>
> "Data offset for detached LUKS header must be either 0 or higher than
> header size (4036 sectors)."
>
> Is there a technical reason why this is so and is it possible to allow
> other data offsets?
The reason was that it allows header to copy back to the LUKS device.
(Or create a fake header :)
TBH this is the first time I see someone want to use it for Veracrypt
device, I can fix the code to allow it but not sure if this is really
worth to do it.
You can probably write a script that will modify final mapping using
dmsetup (but that's quite a hack). Also simple program should be able
to reformat header to downgrade the header (keep keys and cipher chain).
But wouldn't be better just to use old TrueCrypt modes here from
the beginning?
Milan
> Reason for doing this is an attempt at having a detached LUKS header
> capable of unlocking a VeraCrypt volume since
> unlocking a VeraCrypt volume takes too long and its annoying.
>
> Everything seems to be working except for the data offset since i cant
> set it to 256 sectors through the library API.
> _______________________________________________
> dm-crypt mailing list
> dm-crypt@saout.de
> http://www.saout.de/mailman/listinfo/dm-crypt
>
next prev parent reply other threads:[~2015-12-22 13:44 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 [this message]
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
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=567953A8.9020903@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.