Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp374328pxf; Thu, 1 Apr 2021 03:33:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRGBvGj6yorVnVrWqd2TgQD7qwTBUirm6Cyv+UGVyOdaGZdt3c/YuAj5MF9jlT2PtIjDn1 X-Received: by 2002:aa7:db4f:: with SMTP id n15mr9022570edt.12.1617273236987; Thu, 01 Apr 2021 03:33:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617273236; cv=none; d=google.com; s=arc-20160816; b=zVyzML/6fVz2DnHZk2VpdhDnF0bw4wY+K7oowiArtDgrWGLDBLScwnjUHR8iOxRfmP zsEH1kAle98x6z0yHFuzcxjJPbGeGVlK2KTFpB2dqB0/ALyNiKmYdeYLbxprEp2QyxlU PfGswuJOWpZ/+s+bCExvAQj6hGfqq3cueStbyAAUKPZISoJHZFEWEs3FjM3ZVfOyFuQ/ vk7rUWGEFQKQlkaqZ/0bK5hIcHpFhgLKsq691naVjLgT9qgmRF6UW7nivUx5fS+KtRmL mrtkNIbcmUMlfFtuqTq99s+u2BgKbYfFB3urla4C7hQhF8YDC+IgmUBTS/Bc8Ly47oQz dNTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=tlTQKBvT4BprXlGdaMzqnEwO513q8In0l6Oxi9+S6co=; b=hqDAcHLkIU+g3OcxxhZ72Cz4fV3ticIk0nTNPj87pZTrpakWnlsIVTYicd35xGgl+T OOHNO9eUzEgavqd8tt+Bb4/6V5XBpeSiD8LmpwhF5p6ftI1qSMbHw2f05nfGbXJrzo9+ 8+/0Y207ch6jcQeSRuCJ9MYKsHCnEhBYSkT/l101rXJkTPI/gIsiTgFViuQNetQpWIem FUrlB2MDFnIRD/wrd16CfgrM9RO48PWVlRuQv9ZVvwyBiFXx26IXq/bZ3ipuICgcaoF2 CAFY3s2++yW11vBeE8+M1LlBSW3/QF4DJ1vyXbM0n5goOhAxK1XXywqhs7rL0nhz2YLJ K2NQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hy25si3784643ejc.333.2021.04.01.03.33.27; Thu, 01 Apr 2021 03:33:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234378AbhDAK2j (ORCPT + 99 others); Thu, 1 Apr 2021 06:28:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234395AbhDAK2P (ORCPT ); Thu, 1 Apr 2021 06:28:15 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7982C061788 for ; Thu, 1 Apr 2021 03:28:14 -0700 (PDT) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=[IPv6:::1]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1lRuYc-0003tP-E8; Thu, 01 Apr 2021 12:28:10 +0200 Subject: Re: [PATCH v1 0/3] KEYS: trusted: Introduce support for NXP CAAM-based trusted keys To: Richard Weinberger Cc: Jarkko Sakkinen , horia geanta , Mimi Zohar , aymen sghaier , Herbert Xu , davem , James Bottomley , kernel , David Howells , James Morris , "Serge E. Hallyn" , Steffen Trumtrar , Udit Agarwal , Jan Luebbe , david , Franck Lenormand , Sumit Garg , linux-integrity , "open list, ASYMMETRIC KEYS" , Linux Crypto Mailing List , linux-kernel , LSM References: <897df7dd-83a1-3e3e-1d9f-5a1adfd5b2fb@pengutronix.de> <1263763932.139584.1617272457698.JavaMail.zimbra@nod.at> From: Ahmad Fatoum Message-ID: <27d7d3fa-5df8-1880-df21-200de31cc629@pengutronix.de> Date: Thu, 1 Apr 2021 12:28:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <1263763932.139584.1617272457698.JavaMail.zimbra@nod.at> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: a.fatoum@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-crypto@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hello, On 01.04.21 12:20, Richard Weinberger wrote: > Ahmad, > > ----- Ursprüngliche Mail ----- >> Von: "Ahmad Fatoum" >>> I'm pretty sure with minimal changes it will work with your recent approach too. >> >> I am using dmsetup directly in my project. I am not familiar with cryptsetup >> plain. What benefits do you see with this over direct dmsetup? > > cryptsetup is the de-facto standard to setup encrypted block devices. > There is a lot of existing tooling around cryptsetup already (systemd, etc..), Do you mean systemd-cryptsetup? It looks to me like it's just a way to supply the keyphrase. With trusted keys and a keyphrase unknown to userspace, this won't work. > so being able to use CAAM keys for dm-crypt with cryptsetup seems natural to me. > Plain mode allows setting up dm-crypt without LUKS. I don't (yet) see the utility of it without LUKS. Perhaps a command dump on how to do the same I did with dmsetup, but with cryptsetup plain instead could help me to see the benefits? Cheers, Ahmad > > Thanks, > //richard > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |