[PATCH v2 0/2] KEYS: trusted: Optimize tpm2_read_public() calls

From: Jarkko Sakkinen

Date: Thu Dec 04 2025 - 22:02:18 EST


The main goal is fairly straight-forwrd here.

The aim of these patches is optimize the number of tpm2_read_public()
calls to the bare minimum.

Jarkko Sakkinen (2):
KEYS: trusted: Re-orchestrate tpm2_read_public() calls
KEYS: trusted: Store parent's name to the encoded keys

drivers/char/tpm/tpm2-cmd.c | 3 +-
drivers/char/tpm/tpm2-sessions.c | 95 +++-------
include/linux/tpm.h | 10 +-
security/keys/trusted-keys/tpm2key.asn1 | 17 +-
security/keys/trusted-keys/trusted_tpm2.c | 207 +++++++++++++++-------
5 files changed, 195 insertions(+), 137 deletions(-)

--
2.52.0