From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nm21-vm1.bullet.mail.ir2.yahoo.com (nm21-vm1.bullet.mail.ir2.yahoo.com [212.82.96.252]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Sun, 23 Nov 2014 13:44:51 +0100 (CET) Message-ID: <5471D6C7.7060405@yahoo.com> Date: Sun, 23 Nov 2014 13:44:55 +0100 From: Quentin Lefebvre MIME-Version: 1.0 References: <546D0A9D.6080209@yahoo.com> In-Reply-To: <546D0A9D.6080209@yahoo.com> Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: 8bit Subject: Re: [dm-crypt] Empty key files vs empty passwords in plain mode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Hi, Any idea about that? Maybe there's a better place to discuss development issues? Best regards, Quentin Le 19/11/2014 22:24, Quentin Lefebvre a écrit : > Hi, > > I experienced some troubles recently with Debian's cryptsetup package > (testing version), which version is 1.6.6. > I found out that empty key files get refused by cryptsetup, for example: > cat empty_file | cryptsetup --debug --key-file=- open --type plain > /test1.loop test1 > gets rejected. > The debug output directly leads to a test in utils_crypt.c that, I > think, should be removed. > > Indeed, empty passwords are accepted, so it make sense to accept also > empty inputs. > Especially in Debian, where cryptdisks_start script calls: > /lib/cryptsetup/askpass | cryptsetup --key-file=- open --type [type] > [src] [dst] > > What do you think about this issue? > Shall I send a patch for that? > > Best regards, > Quentin > > PS: I checked against the git version, the problem is not solved and > actually exactly the same.