Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp685670pxf; Thu, 1 Apr 2021 10:53:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxhfa8I578npHvnOAkdN4Zl0XJpmm0NP425lZbLgZ+eFCuxB0DXwq2eJVm6t9RYSi/fzwZ X-Received: by 2002:a17:906:5689:: with SMTP id am9mr10031665ejc.298.1617299614053; Thu, 01 Apr 2021 10:53:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617299614; cv=none; d=google.com; s=arc-20160816; b=QHDr+3cihmOaeVCQw8wICs3CNLncX4NDZinKdd7fNOeqD+Y5W7a0quNkV5kCls9T9+ FUpvu+4pxX/XWmpYy/vJQQFD8LyVuccncdyTOrrYlABdteGcY24V2WriZbEEAwhRcPQ8 pYsAGxgAcbxGg3VeMVpxrRc3IMX69aSOisMo2zmpwzZAESFVGdd6IlLvT8nDZ7jrhyTb 11GOviewYsOtxVR3BuBD/JRPBWPGhByDBBhXPybSUgeVxNjJ2nguN7RyFvS8W7gZ/8CC byk8VEZgxrJlYVBY8+3hpZoAOBETKwW+HyeEQKrPmxL82Q2dm/Acl8gdaA43D2TuqkI5 u8RQ== 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=2XxbNExjRfgTQNwUn6Rg7Rms51F4OgExx+4b0xelefY=; b=rT7uMjWL4gdqOr//jkTHHehe3uza6dxBDhd+vFetEH/qlFkT2E6P0U+zNQKXxHWz73 agDJdUdugY2LYmhSxGlE8RXzyrGQnJp2qfXObFhxQ9EIcW4X6rS7qfk+63alNoK6U/Uz tK7bMGIoSJnZXe8xzE5yaoqVyN2iAgp6vKcDsQCoPI02Ko5w3R5scRj8C882lyj3Sa1/ U20xCQX3+qt+rhHC5ajz8Nv49U+WYMxJs3bxbyEA55yR3MoS3S0Xuha0lc9r1JWg7pOk zn3bvqT0O3kQ7huNO9fzWYpmH7AXEltzQqlr+XG6Hb0hEjAJ0WwYzJbIao2Of6QBCvMW 6tZQ== 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 w9si5175948edi.363.2021.04.01.10.53.10; Thu, 01 Apr 2021 10:53:34 -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 S235227AbhDARw6 convert rfc822-to-8bit (ORCPT + 99 others); Thu, 1 Apr 2021 13:52:58 -0400 Received: from lithops.sigma-star.at ([195.201.40.130]:40600 "EHLO lithops.sigma-star.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235561AbhDARrI (ORCPT ); Thu, 1 Apr 2021 13:47:08 -0400 Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 0D0C5606BA22; Thu, 1 Apr 2021 13:16:55 +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 g4O_tLTycO8a; Thu, 1 Apr 2021 13:16:54 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 9AA6F606BA25; Thu, 1 Apr 2021 13:16:54 +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 2cdZCkDK2XPn; Thu, 1 Apr 2021 13:16:54 +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 30F67606BA22; Thu, 1 Apr 2021 13:16:54 +0200 (CEST) Date: Thu, 1 Apr 2021 13:16:54 +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: <1465227062.139734.1617275814134.JavaMail.zimbra@nod.at> In-Reply-To: <638717a5-a456-24a7-b0ab-9f71adb13687@pengutronix.de> References: <897df7dd-83a1-3e3e-1d9f-5a1adfd5b2fb@pengutronix.de> <1263763932.139584.1617272457698.JavaMail.zimbra@nod.at> <27d7d3fa-5df8-1880-df21-200de31cc629@pengutronix.de> <717795270.139671.1617274418087.JavaMail.zimbra@nod.at> <1713376107.139705.1617275134320.JavaMail.zimbra@nod.at> <638717a5-a456-24a7-b0ab-9f71adb13687@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: mqcZxSDGQ+2iXRHRM0FbHdiOFBs5eA== Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Ahmad, ----- Ursprüngliche Mail ----- > Von: "Ahmad Fatoum" >> But using LUKS would mean that cryptsetup has access to the plain disc >> encryption key material? >> This would be a no-go for many systems out there, key material must not >> accessible to userspace. >> I know, distrusting userspace root is not easy, but doable. :) > > The LUKS2 format supports tokens. I see no reason why the encrypted blob > couldn't be stored there along with the usual metadata. cryptsetup would > then load it as kernel trusted key and use it for dmcrypt decryption. > > This will mean we have to part ways with features such as having multiple > keys, but I think it's worth it to have a plug and play solution for > trusted keys. Ah, now I can follow your thoughts! Yes, that would be nice to have. :) I kind of assumed you want to use LUKS with passphrases and CAAM blobs. Thanks, //richard