Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp679450pxf; Thu, 1 Apr 2021 10:44:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJp0op2N5VEJdlYkEdCOz981QarxMlQThlvQ316sFFVIMcKUoXf6SMcz+rMIHzzBtiEj4z X-Received: by 2002:aa7:d841:: with SMTP id f1mr11149335eds.286.1617299052369; Thu, 01 Apr 2021 10:44:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617299052; cv=none; d=google.com; s=arc-20160816; b=Q8sEG20R1kLOB9qNZuyajru9CH6O+g0zLjZz1mKB8e9aDbAA3Dba5Y7Ps2AoARSuXt VGbJ+Og47rygylTGp0QKRYHhpSSWsXgcv4WxtxVi8mKPUfr+Tp0V2ziQFaRRBCfYILVB 5qDJ+YkwddMR8yx4CG9fNUcWUDf7kueI7Kl1K3t7zFXY1xei7PRxS2E1shN5J5eIP9lQ fCpJWKEuS48ibLRCmvPZIKZ59xIilAjlDRqTjNAkPBSrzo2jAdT4A4IyyLg+QCAeAmsK yNHDThVjb65g61OYCjVgyPJbVsyqyiY98gJzoQOncXtB2vtGHqixH1TNGsqn5Ite6z0b OZqg== 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=yoet0SvjVvhUqf0OJVLzyUu6OfcRBg4699Q1BWDSSaw=; b=DAX+24NvSuCkNyiobNISrpqRSJCoMeCaC4DBXvFP6sUZ4Bybq9BnukTsCq+/PjTP26 rZFuQnYutaMVHXXyw3qWuhOY5f496nWGkmSx0jw0XDhxt3i/BcL0K1nO/wdF0Q/XKzX1 ZL7mQgsCls/oB5BoVmT+abXiC8EqLwjYFtTsLmn2ote297hDhnK+6ClHqYxuZLi/35d+ PaKPynEidOGbF7fFHNtmoP1ObhAhMJOtIKqpfoc27XW+GCjoI0f3wHlZ5tA5KeSuj2LX bbf1soF4byadA0xD8wLmnP+OevX+lq/HUYvkPG8G3gTKC/NxoZojSEQXGoXSiy4644Z/ ZJvw== 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 z15si4867630edr.361.2021.04.01.10.43.48; Thu, 01 Apr 2021 10:44:12 -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 S235092AbhDARmO (ORCPT + 99 others); Thu, 1 Apr 2021 13:42:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234648AbhDARi4 (ORCPT ); Thu, 1 Apr 2021 13:38:56 -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 9981CC08EA78 for ; Thu, 1 Apr 2021 06:30:35 -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 1lRxP6-0007mM-Fy; Thu, 01 Apr 2021 15:30:32 +0200 Subject: Re: [PATCH v1 0/3] KEYS: trusted: Introduce support for NXP CAAM-based trusted keys To: Richard Weinberger , Sumit Garg 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 , linux-integrity , "open list, ASYMMETRIC KEYS" , Linux Crypto Mailing List , linux-kernel , LSM References: <1666035815.140054.1617283065549.JavaMail.zimbra@nod.at> From: Ahmad Fatoum Message-ID: Date: Thu, 1 Apr 2021 15:30:25 +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: <1666035815.140054.1617283065549.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 Richard, Sumit, On 01.04.21 15:17, Richard Weinberger wrote: > Sumit, > > ----- Ursprüngliche Mail ----- >> Von: "Sumit Garg" >> IIUC, this would require support for multiple trusted keys backends at >> runtime but currently the trusted keys subsystem only supports a >> single backend which is selected via kernel module parameter during >> boot. >> >> So the trusted keys framework needs to evolve to support multiple >> trust sources at runtime but I would like to understand the use-cases >> first. IMO, selecting the best trust source available on a platform >> for trusted keys should be a one time operation, so why do we need to >> have other backends available at runtime as well? > > I thought about devices with a TPM-Chip and CAAM. > IMHO allowing only one backend at the same time is a little over simplified. It is, but I'd rather leave this until it's actually needed. What can be done now is adopting a format for the exported keys that would make this extension seamless in future. Cheers, Ahmad -- 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 |