All of lore.kernel.org
 help / color / mirror / Atom feed
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: Mon, 14 Mar 2011 23:10:37 +0100	[thread overview]
Message-ID: <4D7E925D.2010802@redhat.com> (raw)
In-Reply-To: <20110314221329.19d588ea@gmail.com>

On 03/14/2011 10:13 PM, Rudolf Deilmann wrote:
> On Mon, 14 Mar 2011 18:44:05 +0100

> I've tried to open some old loop-AES partitions with this version and
> kernel 2.6.38-rc8. It basically seems to work (however, it seems to be
> slower than original loop-aes as your comment regarding speed suggests)

yes, it is slow but is is generally usable. I tried to implement it
the simplest way (e.g. CBC first block tweaking is done using
dmcrypt IV generator, in theory it should be done using cryptoAPI etc).

> 1) Keyfile handling
> 
> The following didn't work with one keyfile:
> 
> cryptsetup --key-file /path/keyfile -s 256 loopaesOpen <device> <name>

Can you please send me the keyfile (with replaced all keys with zeroes or so
- I think the problem is just with EOL chars)?

> 2) Offset, skip and sizelimit support
> 
> It was common to store the gpg-keyfile in the head of an partition. See
> for example http://loop-aes.sourceforge.net/aespipe.README: 
> 
> ---
> 3.3. Example 3 - Encrypted CD-ROM
> [...]
> mount -t iso9660 /dev/cdrom /cdrom -o
> loop=/dev/loop0,encryption=AES128,gpgkey=/dev/cdrom,offset=8192 

Yes, I know. I was not sure is someone really using it :)

Maybe I added something already but not documented it, anyway
I want to add:

- offset should be supported using --offset switch

- skip - I am not sure how it works in loopAES, need to check.
If it is just IV offset on the first data sector, it is just one
line of code (we have the same for plain dmcrypt already).

- limited read of key-file from start of device should be done
using --keyfile-size. But the problem is that it is gpg encrypted,
and I do not want to fork gpg binaries from cryptsetup code
(at least not in this version).

But it can be probably workarounded using wrapper like
dd if=<dev> bs=8k count=1 2>/dev/null | gpg -d .. | cryptsetup --offset ...

Really, LUKS is better here in handling metadata on disk.
(And loop device support allows separate metadata device in next version,
I had just not time to finish that yet in 1.3.0)

> I was able to open such a partition with plain dmsetup; 'cryptsetup
> loopaesOpen' didn't work because '--size','--skip' and '--offset' are
> not supported. Perhaps you could add support for these switches to
> loopaesOpen; the necessary changes in cryptsetup seems trivial.
> ( '--offset' - but not '--skip' - is already mentioned in the manpage
> as a supported option for loopaesOpen )

yes, I'll fix it in next rc.

Thanks for testing it!
Milan

  reply	other threads:[~2011-03-14 22: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 [this message]
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
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=4D7E925D.2010802@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.