From: markus reichelt <ml@mareichelt.com>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] dm-crypt / LUKS FAQ monthly posting
Date: Fri, 2 Jul 2010 21:06:34 +0200 [thread overview]
Message-ID: <20100702190634.GC5931@pc21.mareichelt.com> (raw)
In-Reply-To: <20100702000449.GA31397@tansi.org>
[-- Attachment #1: Type: text/plain, Size: 1482 bytes --]
* Arno Wagner <arno@wagner.name> wrote:
> * How can I use cryptsetup to mount loop-AES encrypted devices?
>
> (By ttsiodras) With these commands:
> sh# losetup /dev/loop0 /path/to/whatever/file/or/volume
> sh# cryptsetup -c aes-plain -h sha512 create crypted /dev/loop0
> Enter passphrase:
> sh# mount /dev/mapper/crypted /mnt/heaven
>
> The above work for aes256 - for aes128, use "sha256".
Wth...
The user who submitted that must have been hiding under a rock quite
some time. At best, the mentioned foo works for single-key loop-AES
images. That's ancient, and since ages not even slightly a
recommended loop-AES usage. Maybe he can comment on that madness?
loop-AES.README has been clearly stating for years that a multi-key
setup has to be used, namely v3. An example /etc/fstab entry:
/dev/sda666 /mnt666 ext3 /defaults,noauto,loop=/dev/loop3,encryption=AES128,gpgkey=/keyfile.gpg 0
The correct line to unlock the listed volume via losetup is done via
losetup -F /dev/loop3
I sincerely doubt current stock dm-crypt is able to mount multi-key
loop-AES volumes. (Maybe someone using both can shed light on this in
more detail, I might have missed the integration of that patch
mentioned below)
Full access support for multi-key loop-AES volumes might evolve from
the work of Max Vozeler, first patch available at:
http://www.spinics.net/lists/crypto/msg04952.html
--
left blank, right bald
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2010-07-02 19:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-02 0:04 [dm-crypt] dm-crypt / LUKS FAQ monthly posting Arno Wagner
2010-07-02 19:06 ` markus reichelt [this message]
2010-07-02 21:14 ` Arno Wagner
2010-07-02 21:54 ` 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=20100702190634.GC5931@pc21.mareichelt.com \
--to=ml@mareichelt.com \
--cc=dm-crypt@saout.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox