Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp374123pxf; Thu, 1 Apr 2021 03:33:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+aYxBxYsUchFy2CdL0SsCWNZfYQFsfT4aahQ8bxT9ZTw4QoHrF89ls04o3SzOXxxWnSd4 X-Received: by 2002:a17:906:f247:: with SMTP id gy7mr8568297ejb.183.1617273211023; Thu, 01 Apr 2021 03:33:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617273211; cv=none; d=google.com; s=arc-20160816; b=cWZQM4iiHbx6qqsAQH6yJ2bXwZD5nAPUx7ghP1DogJVycsy9/gbZrLJYCWbQ8MgBeO hWJniShi72TfPWYaK0Xn8HIY+Yf/zeC18HAp3WaFs2xqrv576WzsZx+1Hqgs1PCd9lZM pMXKP6ugVk1CjW5CwLULskLbzgeIAtzjcxU5pxWjz84Jg3EcxBJ7NxY6UNYZKhNljku3 UbU7rK2Eaz12kunFCiej3htm40ZAAuWKpICS5F0BbwHjtiiP2rpjzawkiPMmb9dw7rrn EcbMcFnfDd9Akawv+mhG8ieicCMgI/EpUsJvlXY50gsM+R4S+p1n+SvXOpJU8IZIk+98 Wrnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=w1CAhTdopjPlVVqRpaD8Qe00Ij49QHTX+eNpeI7ohOw=; b=WwJaHdOc7fNPhdIcK2hAkQgC2GPeyjMXm5qaQGuj6kVY16zhAIrwyXUN2IDbvt10za 3atFEp7zi3zm0hoQ/V7rX7Tk/6C5hR5UZFWEykCGtuYpeQKWBWNp8nIW7iaE1QQjZvQT 90At4HLO8AQv1ywmgnMtJtiobkzxHCcB+Z02pIo12ZPzoVqt25Q2Zdl+yGXxKLoNoK+W FJXI7nVP1g6mlbzgxNyqmBTTpbLkQ2ze+e6gTMv0+rwqe7E9l/okeSYiEffofWhUbc62 lccA/mgwiNIL6u4zmlqqrCW/gAoTNHqr7b1L1oeLA+pKabpUBAX0xD27K3kWQZm4tUAm 5gEA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 d3si4030050eds.83.2021.04.01.03.33.08; Thu, 01 Apr 2021 03:33:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234414AbhDAK2U convert rfc822-to-8bit (ORCPT + 99 others); Thu, 1 Apr 2021 06:28:20 -0400 Received: from lithops.sigma-star.at ([195.201.40.130]:60168 "EHLO lithops.sigma-star.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234161AbhDAK1z (ORCPT ); Thu, 1 Apr 2021 06:27:55 -0400 Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 6C52E606BA25; Thu, 1 Apr 2021 12:20:58 +0200 (CEST) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Si3ccR2XFNkt; Thu, 1 Apr 2021 12:20:58 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 0711E606BA27; Thu, 1 Apr 2021 12:20:58 +0200 (CEST) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id MFdJ5jY0cUlX; Thu, 1 Apr 2021 12:20:57 +0200 (CEST) Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lithops.sigma-star.at (Postfix) with ESMTP id C428E606BA25; Thu, 1 Apr 2021 12:20:57 +0200 (CEST) Date: Thu, 1 Apr 2021 12:20:57 +0200 (CEST) From: Richard Weinberger To: Ahmad Fatoum 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 Message-ID: <1263763932.139584.1617272457698.JavaMail.zimbra@nod.at> In-Reply-To: <897df7dd-83a1-3e3e-1d9f-5a1adfd5b2fb@pengutronix.de> References: <897df7dd-83a1-3e3e-1d9f-5a1adfd5b2fb@pengutronix.de> Subject: Re: [PATCH v1 0/3] KEYS: trusted: Introduce support for NXP CAAM-based trusted keys MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Originating-IP: [195.201.40.130] X-Mailer: Zimbra 8.8.12_GA_3807 (ZimbraWebClient - FF78 (Linux)/8.8.12_GA_3809) Thread-Topic: KEYS: trusted: Introduce support for NXP CAAM-based trusted keys Thread-Index: +Kg0jkvxiPr6cjcaexmg+qI/E7bbOw== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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..), 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. Thanks, //richard