Return-Path: Received: from mps1.wohnheimg.uni-frankfurt.de (mps1.wohnheimg.uni-frankfurt.de [141.2.118.239]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Mon, 1 Sep 2014 23:35:05 +0200 (CEST) Received: from localhost ([127.0.0.1] helo=ssl.verfeiert.org) by mps1.wohnheimg.uni-frankfurt.de via ESMTP (Exim) (envelope-from ) id 1XOZFg-0003WP-KG for dm-crypt@saout.de; Mon, 01 Sep 2014 23:35:04 +0200 Message-ID: <57348c6a4168767613f999ddabe9a54f.squirrel@ssl.verfeiert.org> In-Reply-To: <5404DA01.2050507@gmail.com> References: <27d5e048ef3f17501e9e92019b4c7643.squirrel@ssl.verfeiert.org> <5404D045.5020002@gmail.com> <8eb220aa5096641f9144b1128d117ed4.squirrel@ssl.verfeiert.org> <5404DA01.2050507@gmail.com> Date: Mon, 1 Sep 2014 23:35:04 +0200 From: "Sven Eschenberg" Reply-To: sven@whgl.uni-frankfurt.de MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [dm-crypt] cryptsetup upgrade to 1.6.x unlocking problem in initramfs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de On Mon, September 1, 2014 22:41, Milan Broz wrote: > On 09/01/2014 10:12 PM, Sven Eschenberg wrote: >> On Mon, September 1, 2014 22:00, Milan Broz wrote: >>> Which exact version you are using? Be sure that you have the last 1.6.6 >>> where I fixed some problems related to crypto API interface. >> >> Okay, I am using 1.6.4, will upgrade it and check again... > > ok, then it is different issue I thought (there was a change > in 1.6.5 which caused a lot of similar issues), see below. > > Anyway, please try 1.6.6. as well - there was some related changes. > No difference with 1.6.6. >>> Can you post output with added --debug of command which fails? >>> >>> If you are compiling cryptsetup yourself, which crypto backend are you >>> using? >>> (If it is kernel API, then kernel must have required support, AF_ALG >>> API and all relevant crypto modules.) >> >> Always used the kernel backend. I reused the kernel config (just minor >> upgrade) which worked with the old cryptsetup. > > So if you use kernel backend you simply must have kernel with the AF_ALG > interface. > > Also be sure you have SHA1 and hash used in your LUKS (if differs from > SHA1). > (SHA1 is mandatory for LUKS support, crypto backend also uses it to check > that API is working - I did not find other reliable way...) > > Anyway, I would say that it is not problem in cryptsetup but that some > required > kernel module is missing (it can be some dependence like cipher mode > helper > or cryptomgr...) Is there any sophisticated way to find out, what could be missing? Except trial and error maybe ;-)? Here's the CRYPTO config of the kernel that works with old cryptsetup: CONFIG_CRYPTO=y CONFIG_CRYPTO_ALGAPI=y CONFIG_CRYPTO_ALGAPI2=y CONFIG_CRYPTO_AEAD2=y CONFIG_CRYPTO_BLKCIPHER=y CONFIG_CRYPTO_BLKCIPHER2=y CONFIG_CRYPTO_HASH=y CONFIG_CRYPTO_HASH2=y CONFIG_CRYPTO_RNG2=y CONFIG_CRYPTO_PCOMP2=y CONFIG_CRYPTO_MANAGER=y CONFIG_CRYPTO_MANAGER2=y CONFIG_CRYPTO_GF128MUL=y CONFIG_CRYPTO_WORKQUEUE=y CONFIG_CRYPTO_CBC=y CONFIG_CRYPTO_XTS=y CONFIG_CRYPTO_RMD160=y CONFIG_CRYPTO_SHA1=y CONFIG_CRYPTO_SHA256=y CONFIG_CRYPTO_AES=y CONFIG_CRYPTO_AES_586=y ----- What I added to get to the passphrase for current cryptsetup is: CONFIG_CRYPTO_ANSI_CPRNG=y CONFIG_CRYPTO_USER_API=y <= AF_ALGO CONFIG_CRYPTO_USER_API_HASH=y CONFIG_CRYPTO_USER_API_SKCIPHER=y ---- The Volume is AES-XTS-plain and the hashspec sha1 I can't see what might be missing ... > > Milan > _______________________________________________ > dm-crypt mailing list > dm-crypt@saout.de > http://www.saout.de/mailman/listinfo/dm-crypt > Regards -Sven