All of lore.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <gmazyland@gmail.com>
To: ".. ink .." <mhogomchungu@gmail.com>, dm-crypt <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 13:29:53 +0100	[thread overview]
Message-ID: <567A93C1.3060203@gmail.com> (raw)
In-Reply-To: <CAFnMBaRukhSfkLgX5SW_ogWb9namkv08nJ=mt2HEOYAEdz2Nzg@mail.gmail.com>

On 12/23/2015 01:10 PM, .. ink .. wrote:
>> I really do not want to workaround problems in other software by introducing
>> hacks in current version of LUKS.
>>
> 
> I agree and will probably settle with having a local patched version
> of cryptsetup.
> 
> Making progress on this front as i can now unlock a volume with
> offsets VeraCrypt volumes expects.
> 
> [root@ink mtz]# cryptsetup luksOpen veraCrypt.img --header=header.img rrr
> Enter passphrase for veraCrypt.img:
> 
> [root@ink mtz]# dmsetup table /dev/mapper/rrr
> 0 40704 crypt aes-xts-plain64 -master-key- 256 7:0 256
> 
> [root@ink mtz]# blkid /dev/mapper/rrr
> /dev/mapper/rrr: SEC_TYPE="msdos" UUID="706E-EE80" TYPE="vfat"
> [root@ink mtz]#
> 
> 
>> 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.
>>
> 
> Like i said earlier,PLAIN volumes do not use crypt_format argument for
> the master key[1]

Sure, but activate_by_volume_key can be used here.

m.

  reply	other threads:[~2015-12-23 12:29 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
2015-12-23 12:10                 ` .. ink ..
2015-12-23 12:29                   ` Milan Broz [this message]
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=567A93C1.3060203@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.