From: Milan Broz <mbroz@redhat.com>
To: dhvvcb@lavabit.com
Cc: dm-crypt@saout.de
Subject: Re: [dm-crypt] Using dmsetup directly instead of cryptsetup
Date: Sat, 21 May 2011 21:33:00 +0200 [thread overview]
Message-ID: <4DD8136C.2090703@redhat.com> (raw)
In-Reply-To: <1306003236.10131.75.camel@localhost>
On 05/21/2011 08:40 PM, dhvvcb@lavabit.com wrote:
> Usually I run command
>
> cryptsetup -d /path/to/key -c aes-cbc-essiv:sha256 -s 256 create
> hdd2 /dev/sdc
>
> and /dev/mapper/hdd2 is created.
>
> I tried to follow the example given on home page
> http://www.saout.de/misc/dm-crypt/
That page is pretty obsolete today, http://code.google.com/p/cryptsetup/
is home page now.
Why do you want to use dmsetup?
Anyway,
cryptsetup -d /key -c aes-cbc-essiv:sha256 -s 256 create x /dev/sdb
is equivalent to
echo 0 $(blockdev --getsz /dev/sdb) crypt aes-cbc-essiv:sha256 $(xxd -p -c 32 </key) 0 /dev/sdb 0 | dmsetup create x
(xxd is helper program in vim package)
I guess the hex representation is just wrong in your case,
hexdump produces different order of bytes.
Use cryptsetup a check with "dmsetup table --showkeys".
Milan
prev parent reply other threads:[~2011-05-21 19:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-21 18:40 [dm-crypt] Using dmsetup directly instead of cryptsetup dhvvcb
2011-05-21 19:33 ` Milan Broz [this message]
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=4DD8136C.2090703@redhat.com \
--to=mbroz@redhat.com \
--cc=dhvvcb@lavabit.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