Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CQ_N6W3g7Bda for ; Wed, 26 Sep 2012 15:25:49 +0200 (CEST) Received: from mail.ramses-pyramidenbau.de (ramses-pyramidenbau.de [78.47.114.252]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Wed, 26 Sep 2012 15:25:49 +0200 (CEST) Received: from [10.0.0.101] (rfhinf217.hs-regensburg.de [194.95.108.212]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.ramses-pyramidenbau.de (Postfix) with ESMTPSA id D739D60AF6 for ; Wed, 26 Sep 2012 15:19:24 +0200 (CEST) Message-ID: <50630077.6000204@ramses-pyramidenbau.de> Date: Wed, 26 Sep 2012 15:17:43 +0200 From: Ralf Ramsauer MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig55620B0EE824F586E5861307" Subject: [dm-crypt] Initialization Vector using plain aes-cbc List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig55620B0EE824F586E5861307 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi! Just a simple question: If I do: dd if=3D/dev/zero of=3Dfoobar bs=3D1M count=3D50 dd if=3D/dev/urandom of=3Dkeyfile bs=3D32 count=3D1 cryptsetup create asd ./foobar --cipher=3Daes-cbc-essiv:sha256 --key-file= key or cryptsetup create asd ./foobar --cipher=3Daes-cbc Enter Passphrase: .......... work fine. But if I do cryptsetup create asd ./encrypted --cipher=3Daes-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=3Daes-cbc Does it derive the IV from the passphrase? And why does cryptsetup create asd ./foobar --cipher=3Daes-cbc --key-file key not work? (No IV for cbc?) Thanks a lot! Ralf Ramsauer --------------enig55620B0EE824F586E5861307 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iQIcBAEBAgAGBQJQYwB3AAoJEL+V5p9n2n1jpFkP/RAzAV0njU99dKJs7oez7c0+ 0V5ZFvnAA3TM3gWqN0+Jc57C4/LuLxXOht1RXgcI+1Iacy5np1ftfgMGQlOCwAp0 7B9QlMbO/XB9p8ans5kuaICDPGBk3qnaC0+tpCzEKL3CnzDd8x/aQfM9TD5RXeho TTaXvg8fyxD+3l57PXB/mbjsVZBdn4uZyeHu3zYuW0BMkrAbdqrXBTAVV4c1tHMZ G5hxkx2UXEakNVB3+RvWBOs1t3AtpXjZt6W/pcLY0W7GzBKxWD/B3x0ZD9GN+JSJ r0G9vAVPyRdwQ4lWLLaoaru69porddjgGLq5bj8hBYvYoAsJrQKdfyiESSg5Ya7L bOlcX/hOTgsH6S4PP30AIbLUTNxEc2qgpz/ukWbeQdFMrbc32s5UU7EYVo+9hM7R ngf/RE/W16C4WnydL1kY6kQjp6JE6rXgtNOSpo2KRnsJOydQ8g4RWGhF48pTUXiH Hjg+ylOhedx/UZ44w0ayW4uodAQH0Vn7EUt5x4mJzQF3l0ilh3o2otcyUL/WzX+e C366YlwAX6gwtBYBsBG4wbaYjpnQWEkauJuPV4GJD2FETJX6iBAH7Vp2QstGmDZi fppIlyI8MUEqjQJrHz6KY+ccYy4MJ8/bgirH8dUXLnpgPxz8ck7l1mG3lZE4O1Ns Cqn479Tpbal6volXeKxt =mLK5 -----END PGP SIGNATURE----- --------------enig55620B0EE824F586E5861307--