From: Milan Broz <gmazyland@gmail.com>
To: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
Cc: dm-crypt@saout.de
Subject: Re: [dm-crypt] Initialization Vector using plain aes-cbc
Date: Wed, 26 Sep 2012 15:56:38 +0200 [thread overview]
Message-ID: <50630996.1080803@gmail.com> (raw)
In-Reply-To: <50630077.6000204@ramses-pyramidenbau.de>
On 09/26/2012 03:17 PM, Ralf Ramsauer wrote:
> cryptsetup create asd ./foobar --cipher=aes-cbc-essiv:sha256 --key-file key
> or
> cryptsetup create asd ./foobar --cipher=aes-cbc
> Enter Passphrase: ..........
# cryptsetup create asd ./foobar --cipher=aes-cbc
Enter passphrase:
device-mapper: reload ioctl on failed: Invalid argument
device-mapper: table ioctl on failed: No such device or address
>
> work fine.
nope :)
Which version you are using?
First, for historic reasons, there are some shortcuts:
"aes" and "aes-plain" will translate to "aes-cbc-plain"
but "aes-cbc" is not valid shortcut
(and cbc mode require IV specification )
If you are not sure, just run
cryptsetup status <active device>
and it will print full mode spec. of active device.
FO scripts, please always use full specification, the above is just
to provide compatibility with old cryptsetup.
Format is
<cipher>-<mode>-<IV/params>
plain/plain64 IV is just sector number, so no dependence
on passphrase/key. (If used with CBC mode, it is not secure.)
For more info about available IV modes see
http://code.google.com/p/cryptsetup/wiki/DMCrypt#IV_generators
Milan
next prev parent reply other threads:[~2012-09-26 13:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-26 13:17 [dm-crypt] Initialization Vector using plain aes-cbc Ralf Ramsauer
2012-09-26 13:56 ` Milan Broz [this message]
2012-09-26 15:17 ` Ralf Ramsauer
2012-09-26 15:59 ` Milan Broz
2012-09-26 17:02 ` Ralf Ramsauer
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=50630996.1080803@gmail.com \
--to=gmazyland@gmail.com \
--cc=dm-crypt@saout.de \
--cc=ralf@ramses-pyramidenbau.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