From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Wed, 10 Dec 2014 23:35:16 +0100 (CET) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Xypqk-0007yE-G3 for dm-crypt@saout.de; Wed, 10 Dec 2014 23:35:14 +0100 Received: from c-24-14-20-249.hsd1.il.comcast.net ([24.14.20.249]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Dec 2014 23:35:14 +0100 Received: from rnicholsNOSPAM by c-24-14-20-249.hsd1.il.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Dec 2014 23:35:14 +0100 From: Robert Nichols Date: Wed, 10 Dec 2014 16:34:59 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit In-Reply-To: Subject: Re: [dm-crypt] How to derive master key in plain dm-crypt mode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de On 12/10/2014 05:48 AM, Jian-Ming Zheng wrote: > In plain dm-crypt mode, there is no encrypted master key on the device > (i.e., no metadata header). Is a master key derived from the user > passphrase and used to en-/decrypt the device? If yes, how to derive > the master key from the passphrase in plain mode? The /cryptsetup/ manpage indicates that the key is just the hash of the passphrase using the specified hash function and cropped to the required key length. "cryptsetup --help" will show you the default hash function. -- Bob Nichols "NOSPAM" is really part of my email address. Do NOT delete it.