Re: [PATCH v3 9/9] KEYS: trusted: Add asymmetric key support for TPM2

From: Jarkko Sakkinen

Date: Wed Nov 25 2026 - 16:25:24 EST


On Wed, Nov 25, 2026 at 11:17:49PM +0200, Jarkko Sakkinen wrote:
> On Wed, Nov 25, 2026 at 08:06:15PM +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 expose query, sign, verify, and RSA encrypt/decrypt operations
> > through key_type_trusted.
> >
> > The feature is enabled with opt-in CONFIG_TRUSTED_KEYS_ASYMMETRIC.
> >
> > Co-developed-by: James Prestwood <prestwoj@xxxxxxxxx>
> > Signed-off-by: James Prestwood <prestwoj@xxxxxxxxx>
> > Signed-off-by: Jarkko Sakkinen <jarkko@xxxxxxxxxx>
>
> It might make even sense to make TPM user space device opt-in through
> kernel command-line option in the case if these ops are useful for
> other backends.
>
> Thinking more like embedded busybox space than enterprise systemd
> space. If it is possible rely keychains only to trusted keys, then
> the software stack can be translated between hardware platforms,
> even with different security chips.

This is actually *weakly* Turris related.

Could Turris signing key translated as trusted key subtype, if it had
these asym ops?

This is just a good constraint to check so the right things will
be done right...

Br, Jarkko