Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp359961pxf; Wed, 17 Mar 2021 07:00:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxU5cVcANL43KIGWggZ0UsFAbixxIay4xsW8GDeCF2GspkocWQtPqlWeZlSN9Xn2+bhGMKX X-Received: by 2002:a1c:4b11:: with SMTP id y17mr3750680wma.171.1615989653019; Wed, 17 Mar 2021 07:00:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615989653; cv=none; d=google.com; s=arc-20160816; b=pB6pG9/TUTbTnyB2VW2MbnKu4lBHLzWxf9qn3fLRGzSJm5DGZ2z3js5WzVcm9xRHXZ 9aYYkJX3EIYt6NYlUBXA6t8kqgIr+rosAdfWymA5zqyqSM6WFBtekQD5p0zru0pbZuzd AX/b0hccqN9ng8QGaKD+szaM90suY50xuHHZiZ/zNuDxGc29tMjcFdTtL4FwYilY4I/V H0Wfu/TDPq9tNBZEJKAGCG0JHtTE2MQ8Vrj5cmw113ROLRYDYYwc3uC5jyhNkBW0UklY nW9beRWu2LhMw08eIdio2rFMs27mvZeC+d8C5Q1p89OYjotVlz5jx+f7jx0RdA8lQeRY 8Jag== 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:references:cc :to:subject:from; bh=ZyvyXJd53brAIl5xqVyO/U/1KhtmipKWb2CRaWTIF+M=; b=m5kbStaTtqILLDWtqSKrj0oJRcJYp0+QjoAzcyLOBQA5GElOwmyO9Ub/HcgZ9faaH6 cMtuzGCxMxuF0kQ6Kj3Nl/PGUVBoOd6x2iHwFBiWhCcD5K3D3QXBF9iv/hGcJ+BBIomE FNd+5VoDgbV2tUwz1+o6VqtWBEGSed6IL55d/7E8fQmGrW6nqGu4mtxkwNiaFR/2iGgr ReDG2ZYQ3GFx09WCxGWU3ygEHuIg7nKbZWP713ZiPcTmAnoHeQaY6ns1aSbe0Y2AsC5U 4Jv1Dl922SRxG0VnjLmkRsY6cnz++fin5LmrmvT8uE7VZXmIHYrFByxnhdL0XaB3xuGS XnbA== 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 h16si16332922edv.460.2021.03.17.07.00.20; Wed, 17 Mar 2021 07:00:53 -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 S231396AbhCQN7K (ORCPT + 99 others); Wed, 17 Mar 2021 09:59:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231448AbhCQN67 (ORCPT ); Wed, 17 Mar 2021 09:58:59 -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 637B8C06174A for ; Wed, 17 Mar 2021 06:58:58 -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 1lMWhH-0002lo-SS; Wed, 17 Mar 2021 14:58:51 +0100 From: Ahmad Fatoum Subject: Re: [PATCH v1 3/3] KEYS: trusted: Introduce support for NXP CAAM-based trusted keys To: Jarkko Sakkinen Cc: Jonathan Corbet , David Howells , James Bottomley , Mimi Zohar , kernel@pengutronix.de, James Morris , "Serge E. Hallyn" , =?UTF-8?Q?Horia_Geant=c4=83?= , Aymen Sghaier , Herbert Xu , "David S. Miller" , Udit Agarwal , Jan Luebbe , David Gstir , Franck LENORMAND , Sumit Garg , keyrings@vger.kernel.org, linux-crypto@vger.kernel.org, linux-doc@vger.kernel.org, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org References: <319e558e1bd19b80ad6447c167a2c3942bdafea2.1615914058.git-series.a.fatoum@pengutronix.de> Message-ID: <0d0adfa1-b5c3-8fd6-82f6-2a9c4de2b3f0@pengutronix.de> Date: Wed, 17 Mar 2021 14:58:44 +0100 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: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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 Jarkko, On 16.03.21 20:22, Jarkko Sakkinen wrote: > On Tue, Mar 16, 2021 at 06:01:18PM +0100, Ahmad Fatoum wrote: >> The Cryptographic Acceleration and Assurance Module (CAAM) is an IP core >> built into many newer i.MX and QorIQ SoCs by NXP. >> >> The CAAM does crypto acceleration, hardware number generation and >> has a blob mechanism for encapsulation/decapsulation of sensitive material. >> >> This blob mechanism depends on a device specific random 256-bit One Time >> Programmable Master Key that is fused in each SoC at manufacturing >> time. This key is unreadable and can only be used by the CAAM for AES >> encryption/decryption of user data. >> >> This makes it a suitable backend (source) for kernel trusted keys. >> >> Previous commits generalized trusted keys to support multiple backends >> and added an API to access the CAAM blob mechanism. Based on these, >> provide the necessary glue to use the CAAM for trusted keys. >> >> Signed-off-by: Ahmad Fatoum > Too early to ack, as I've not included the TEE thing to any PR yet. No problem. I'd be happy to incorporate the feedback I receive in the meantime. 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 |