From mboxrd@z Thu Jan 1 00:00:00 1970 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 HRG6x5KvPwts for ; Fri, 15 Feb 2013 12:51:39 +0100 (CET) Received: from v4.tansi.org (ns.km33513-03.keymachine.de [87.118.94.3]) by mail.saout.de (Postfix) with ESMTP for ; Fri, 15 Feb 2013 12:51:39 +0100 (CET) Received: from gatewagner.dyndns.org (84-74-164-49.dclient.hispeed.ch [84.74.164.49]) by v4.tansi.org (Postfix) with ESMTPA id D1EAA1404001 for ; Fri, 15 Feb 2013 12:51:38 +0100 (CET) Date: Fri, 15 Feb 2013 12:51:38 +0100 From: Arno Wagner Message-ID: <20130215115138.GA28135@tansi.org> References: <511CE9F5.60708@gmail.com> <511D1777.6020308@gmail.com> <511DF951.1010606@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <511DF951.1010606@gmail.com> Subject: Re: [dm-crypt] cryptsetup 1.6.0 crash when attempting to open truecrypt volume if the key is large enough List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de On Fri, Feb 15, 2013 at 10:01:05AM +0100, Milan Broz wrote: > On 02/14/2013 06:06 PM, .. ink .. wrote:> > > > I think the GUI widget trimmed so you in fact entered just first 64 > bytes. Check with "display password" option... > And try commandline, at least I get > Error: Password is longer than 64 characters. > > I really do not like encryption systems which quietly trims anything > pretending longer password is correct. This is recipe for disaster. I agree. Never, ever, ever quietly degrade a password. Or other input data for that matter. Any GUI doing things like this can only be regarded as fundamentally broken. Silent errors are unacceptable, except in the one case where verbose errors help an attacker. That is not the case here. Arno > I changed return code for TCRYPT oversized passphrase to -EPERM > (So it is handled like "bad passphrase", just early, this is way > I prefer.) > > Thanks, > Milan > _______________________________________________ > dm-crypt mailing list > dm-crypt@saout.de > http://www.saout.de/mailman/listinfo/dm-crypt -- Arno Wagner, Dr. sc. techn., Dipl. Inform., Email: arno@wagner.name GnuPG: ID: CB5D9718 FP: 12D6 C03B 1B30 33BB 13CF B774 E35C 5FA1 CB5D 9718 ---- One of the painful things about our time is that those who feel certainty are stupid, and those with any imagination and understanding are filled with doubt and indecision. -- Bertrand Russell