Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2784076lqo; Mon, 20 May 2024 17:37:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUVzaSVuWbjI6CNO68lORWPAjrbgmEVHawg2UaGeYNnX7i/VUwd6/1X3uUnhJYkVlJCvOIIDCPqxRecpGz/uqeXSv10lWEGsx6CjJCwmQ== X-Google-Smtp-Source: AGHT+IEr80Tcni0nHzbdPs4Bje8k0sWnFTyGI16p5FXn0trT4Eph1TlrvaD+sA9qhqR0aNtUtuGd X-Received: by 2002:a05:6870:d24c:b0:239:68bf:93b7 with SMTP id 586e51a60fabf-24172f83cffmr33903802fac.52.1716251868842; Mon, 20 May 2024 17:37:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716251868; cv=pass; d=google.com; s=arc-20160816; b=FbXeHxl+Fq/3xB8J2GTw3DS95mWhZQVMgdYmIG9Uysv/xiJJgG9UgNRXmbnOdhcYW9 HHrtecx7M8OUq9lN1g6cNlBDnUEmhSqKtp1uv0MbMuchemEv9AdQDa9JBFfHtOBXJTec D3RfPvYMmbZ4jKNuHZZbs5MtbC1Vxd9Az3Aci1PGFnMU9x3tgv+OfTcZXkGDdUUWaTsg ruF87ZjoURpHKz2bfeZNoSnXqEwcbCQ5DEeFjpFUBF1+UkgQx/X2GvPgCusM6sxBeoD5 jEkuqx6LRnR1p2USOCuUQVlzG3NyIDPRou1gPQAtus7cMo+DPOzVYUy2O+peMo9erKOe cJOA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=YKL2F8+ozNzszn7mHMTBzmBfeApG2Bl85xxp0H7yZag=; fh=e5Unuz0EFIsVCfpOc/9VwRheWlhcdt8kjJWARgbp3xw=; b=m8HaPnhuR2+5v1Gx2lA1IyRidFeC42SGHxlpJpcNeYuxh9Q73azLpJT+mIGQPpu1Zy xi2q9r/3EZ79/yIYRkYRmEB1ZGDeQraxS5nTwy13YMif2gOXYV9ECfJtpIbnsJY8tpW7 CYn1HecGKNUYc8JIKLswX6oV5vIW/aHH/uaEw9/1CPgn1u4kG57/3hoq3ztmGzSkoBsE sQESauD5vW2BVnevfDMPz9Mni2t3yS8R8qOiCmH97aWZPyLW1JyCy7++rlMiCzagIc9M 1gRFI8Z3EFK5hRU1TOfiz1ZEcnT4u9TWkjxXzsfONW6oqImQlHJo+0TbkUGbglnjil8A aiQw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D3psbCZt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-4281-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4281-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-63d330024absi9829816a12.752.2024.05.20.17.37.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 17:37:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-4281-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D3psbCZt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-4281-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4281-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 5E0D0B219BE for ; Tue, 21 May 2024 00:37:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7B7FE6FDC; Tue, 21 May 2024 00:37:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="D3psbCZt" X-Original-To: linux-crypto@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2AC0E18D; Tue, 21 May 2024 00:37:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716251858; cv=none; b=X3pV+oC7BRfJABkXR+SnQeyC3XXbPO8SY/UjtyXVCbw15oNtJtrAZmC9yJyMVofuOSkX6Ao+vMSvw7Dd71mAT8wjBeBQuGNNjPUg8coA6c8qQiOTxT6MpljYxb/KlcPt8h0vXJNcDjNBuoH58Weiud0cpm/M2LldKVVnzRgpr/Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716251858; c=relaxed/simple; bh=YKL2F8+ozNzszn7mHMTBzmBfeApG2Bl85xxp0H7yZag=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=iIRRivNMgGx4WBofCmEgzLckrRQZthffFpWWTiVcpnuHnC1wG6tE3PkVCnWtOK2/GUpsPQuPUuGAwnQS/05feVFz67GcT86REIiIiDxs3Rpi4+PTYKD/LVgXXPR4W7FBsRPuLSadcpcwCt1ChqJqEeexDd5ownHd3PHX5MDYqDU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=D3psbCZt; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6EF4EC2BD10; Tue, 21 May 2024 00:37:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716251857; bh=YKL2F8+ozNzszn7mHMTBzmBfeApG2Bl85xxp0H7yZag=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=D3psbCZt+RDzO+HvjXkIur5oU6ys4A63JxpizQVqdwIb7B/JmnGFc2jc3ky2Kl+76 Uvtx3+Mn09J+ZxWxR7aX3Z/EUVsR9WBlt1PyNgS0cuSaxZCOX1H0cmciV+DXA2z2Tw LHNXNm5+N2yuZd0KbkBMod+iUwVRGJ5UMfS+paeqnla2sxMxtzQG9gc5jAULB/mAye tzmwKWRVILE42fgr3Ro2e49M4jfgE5C32RfGKpIU945DD0oYBsZzHUFf8rjeGrs12L ckdNFOYLAZixfKoAiPoUxi7zK2kE8L/xFG2JDmhfC0URFgUeNGncBTrc3sng+HC+Xg ZtqjxNwC+htbQ== Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 21 May 2024 03:37:33 +0300 Message-Id: Cc: , , , "James Prestwood" , "David Woodhouse" , "David S. Miller" , "open list:CRYPTO API" , "open list" , "Eric Biggers" Subject: Re: [PATCH 0/6] KEYS: asymmetric: tpm2_key_rsa From: "Jarkko Sakkinen" To: "Jarkko Sakkinen" , "Herbert Xu" X-Mailer: aerc 0.17.0 References: <20240520184727.22038-1-jarkko@kernel.org> In-Reply-To: On Mon May 20, 2024 at 11:36 PM EEST, Jarkko Sakkinen wrote: > On Mon May 20, 2024 at 9:47 PM EEST, Jarkko Sakkinen wrote: > > ## Overview > > > > Introduce tpm2_key_rsa implementing asymmetric TPM RSA key. This key ty= pe > > can be enabled with CONFIG_ASYMMETRIC_TPM2_KEY_RSA_SUBTYPE config optio= n. > > Carves groundwork for similar modules in future, such as tpm2_key_ecdsa= . > > Cc to Eric (forgot). Also my idea is to take the (working) model from tpm_tis. At this point it is just tpm2_key_rsa but it would be easy to lay out tpm2_key later on and make the different key types as submodules. That would be a kind of model, which would support algorithmic agility side of TPM2. So there might tpm2_key at some point with tpm2_key_rsa and tpm2_key_ecdsa= =20 as its submodules. BR, Jarkko