Re: [PATCH v5 17/17] KEYS: trusted: Add asymmetric key support for TPM2
From: Jarkko Sakkinen
Date: Fri Nov 27 2026 - 01:48:47 EST
On Fri, Nov 27, 2026 at 07:56:02AM +0200, Jarkko Sakkinen wrote:
> Extend the TPM 2.0 trusted key backend to load OID_TPMLoadableKey
> (2.23.133.10.1.3) RSA (2048/3072/4096) and ECC (NIST P-256/P-384/P-521)
> keys and wire query, sign, verify, and RSA encrypt/decrypt operations to
> trusted_key_tpm_ops.
>
> Select HAVE_TRUSTED_KEYS_ASYMMETRIC when CONFIG_TRUSTED_KEYS_TPM is
> enabled.
>
> Co-developed-by: James Prestwood <prestwoj@xxxxxxxxx>
> Signed-off-by: James Prestwood <prestwoj@xxxxxxxxx>
> Signed-off-by: Jarkko Sakkinen <jarkko@xxxxxxxxxx>
This should be in fairly safe grounds because the patch has been
manually written (with TCG specs), both TPM2 protocol and ASN.1
shenanigans, and reviewed and tested countless of times (over the
years).
Further, it has pretty much passed all Sashiko reviews so far, and
thus this patch likely is not all that wrong.
Br, Jarkko