Return-Path: Received: from mail01.freesources.org (mail01.freesources.org [80.237.252.149]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Fri, 20 Nov 2009 13:43:55 +0100 (CET) Received: from dslb-088-068-067-091.pools.arcor-ip.net ([88.68.67.91] helo=resivo.wgnet.de) by mail01.freesources.org with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1NBSpz-0004c3-Sc for dm-crypt@saout.de; Fri, 20 Nov 2009 12:43:44 +0000 Received: from resivo by resivo.wgnet.de with local (Exim 4.69) (envelope-from ) id 1NBSq9-0003Lq-QR for dm-crypt@saout.de; Fri, 20 Nov 2009 13:43:53 +0100 Date: Fri, 20 Nov 2009 13:43:53 +0100 From: Jonas Meurer Message-ID: <20091120124353.GC4481@resivo.wgnet.de> References: <4B032794.6090104@gmx.net> <20091118054555.GB28949@tansi.org> <4B03C5EE.7010702@gmx.net> <20091118102515.GB30910@tansi.org> <4B03D865.8070905@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="yLVHuoLXiP9kZBkt" Content-Disposition: inline In-Reply-To: <4B03D865.8070905@redhat.com> Subject: Re: [dm-crypt] different default key sizes for CREATE and LUKSFORMAT List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de --yLVHuoLXiP9kZBkt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable hey milan, On 18/11/2009 Milan Broz wrote: > I thought about default change for LUKS in cryptsetup 1.1.0, but... >=20 > For default LUKS cipher: >=20 > I agree with switching default to 256bits for LUKS) > (aes-cbc-essiv:sha256 is already default), just some ideas >=20 > - some discussions about recent theoretic attacks against AES-256 > (related key), maybe some people want use AES-128... >=20 > - for recent kernel, XTS mode is more appropriate, but it cause > backward incompatibility (XTS is not available in old kernels) > (IOW default to aes-xts-plain ?) >=20 > (Ignoring the 32-only plain IV problem here, because XTS suggested use > is for volumes <1TB. I have already patch for plain64 dm-crypt IV btw, > just it got lost in Alasdair's upstream patch queue.) >=20 > For default LUKS header hash: >=20 > - default is SHA1 >=20 > switching to another (probably SHA-256?) means complete incompatibility > with all cryptsetup <1.1.x, this need some time when all most distros > use new cryptsetup. > No need to hurry, there is no problem with SHA1 in this application > of hash function. >=20 > For plain cipher mode: >=20 > I am not sure if it is good idea to change default, if anyone using > default in crypttab, it cause serious incompatibility with possible data = loss. > But I agree that aes-cbc-essiv:sha256 is better default here. >=20 > Can distro maintainers think about this? There is not problem > for encryption of swap using random key. > Maybe it will need some warning during upgrade if there is such plain > volume in crypttab. in debian we already warned the users to explicitly set all cipher, size and hash settings for plain dm-crypt in /etc/crypttab, as defaults may change with new releases. so no objections from me against changing defaults in 1.1.0 release. > So, if there are no objections, I'll change default key size for LUKS to = 256bits > in final cryptsetup 1.1.0 release. The plain default is still open questi= on. please go ahead, and i also vote for changing plain default as well. greetings, jonas --yLVHuoLXiP9kZBkt Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQEcBAEBCAAGBQJLBo8JAAoJEHUY1PcOVR4zfn8H/RtGMJ9MtMCqQmdv+bbiMIwJ RCpHNlz6KHIOuFzR+OLdn90wbBbO/XBc4ArUeVefS3h41Q2vGqu0jjWDoLwJlVOk mgCHnh6BUDDJV7AaL3iYG5KZjHyQAJNXTLlwVqqbVFry4xqK4nyVL33u1vHYKV/7 9im1X6a+FvuhNzSu/FrjjBInxRRxYzxzICgChqmpk88RRaRQ9ywJuavXk83IYXa2 uFJmXqouuGuTvidAcok6PyPw2dYb8/DLu4w2AVqKQwPdzXCHYOJtD/aH5BLN4X3H IlBPPpVOsoU5mm3fEKwassOEpfKBUMDyJ5OkwU3vCNVRSL1Aw7DkRlueAwHW4B8= =zsF3 -----END PGP SIGNATURE----- --yLVHuoLXiP9kZBkt--