From: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
To: dm-crypt@saout.de
Subject: [dm-crypt] Initialization Vector using plain aes-cbc
Date: Wed, 26 Sep 2012 15:17:43 +0200 [thread overview]
Message-ID: <50630077.6000204@ramses-pyramidenbau.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 804 bytes --]
Hi!
Just a simple question:
If I do:
dd if=/dev/zero of=foobar bs=1M count=50
dd if=/dev/urandom of=keyfile bs=32 count=1
cryptsetup create asd ./foobar --cipher=aes-cbc-essiv:sha256 --key-file key
or
cryptsetup create asd ./foobar --cipher=aes-cbc
Enter Passphrase: ..........
work fine.
But if I do
cryptsetup create asd ./encrypted --cipher=aes-cbc --key-file key
I get
device-mapper: reload ioctl on failed: Invalid argument
For sure, cbc-essiv generates the initialization vector itself. But how
does the second command
get its IV?
cryptsetup create asd ./foobar --cipher=aes-cbc
Does it derive the IV from the passphrase?
And why does
cryptsetup create asd ./foobar --cipher=aes-cbc --key-file key
not work? (No IV for cbc?)
Thanks a lot!
Ralf Ramsauer
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 897 bytes --]
next reply other threads:[~2012-09-26 13:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-26 13:17 Ralf Ramsauer [this message]
2012-09-26 13:56 ` [dm-crypt] Initialization Vector using plain aes-cbc Milan Broz
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=50630077.6000204@ramses-pyramidenbau.de \
--to=ralf@ramses-pyramidenbau.de \
--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