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 qhvCwIDABKrM for ; Tue, 1 Nov 2011 13:39:28 +0100 (CET) Received: from ngcobalt23.manitu.net (ngcobalt23.manitu.net [217.11.48.123]) by mail.saout.de (Postfix) with ESMTP for ; Tue, 1 Nov 2011 13:39:28 +0100 (CET) Received: from ngcobalt23.manitu.net (localhost [127.0.0.1]) by ngcobalt23.manitu.net (8.10.2/8.10.2) with ESMTP id pA1CdSQ17379 for ; Tue, 1 Nov 2011 13:39:28 +0100 Received: from server.passau (188-192-81-21-dynip.superkabel.de [188.192.81.21]) (Authenticated sender: pwendler) by ngcobalt23.manitu.net (Postfix) with ESMTPSA id 963582F01F3 for ; Tue, 1 Nov 2011 13:39:28 +0100 (CET) Received: from [IPv6:2001:6f8:1c32:600::3] (mail.philippw.xdns.eu [IPv6:2001:6f8:1c32:600::3]) by server.passau (Postfix) with ESMTPS id 7A89780531 for ; Tue, 1 Nov 2011 13:39:27 +0100 (CET) Message-ID: <4EAFE87F.5000903@philippwendler.de> Date: Tue, 01 Nov 2011 13:39:27 +0100 From: Philipp Wendler MIME-Version: 1.0 References: <20111101045012.GA26850@tansi.org> In-Reply-To: <20111101045012.GA26850@tansi.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] Cryptsetup FAQ, monthly posting 11/2011 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Hi, Am 01.11.2011 05:50, schrieb Arno Wagner: > * Are there any problems with "plain" IV? What is "plain64"? > > First, "plain" and "plain64" are both not secure to use with CBC, > see previous FAQ item. > > However there are modes, like XTS, that are secure with "plain" IV. > The next limit is that "plain" is 64 bit, with the upper 32 bit set > to zero. This means that on volumes larger than 2TiB, the IV > repeats, creating a vulnerability that potentially leaks some > data. To avoid this, use "plain64", which uses the full sector > number up to 64 bit. Note that "plain64" requires a kernel >= > 2.6.33. Also note that "plain64" is backwards compatible for > volume sizes <= 2TiB, but not for those > 2TiB. Finally, "plain64" > does not cause any performance penalty compared to "plain". Wouldn't it be nice for cryptsetup to print a warning when someone is going to create a luks device >2TiB with "plain" IV (e.g., aes-xts-plain)? A note in the man page would also be nice (where it mentions aes-xts-plain). Or perhaps cryptsetup should automatically select plain64 in such a case? According to the description above there seems to be absolutely no drawback in using plain64, so why not use it? I, for example, have read this section of the FAQ only after creating and filling my luks partition. Now I have to re-create everything, which will take several hours. Greetings, Philipp