[PATCH v9 3/8] KEYS: trusted: Replace a redundant instance of tpm2_hash_map

Jarkko Sakkinen jarkko at kernel.org
Fri Nov 28 15:14:45 UTC 2025


On Fri, Nov 28, 2025 at 09:44:41AM +0000, Jonathan McDowell wrote:
> On Fri, Nov 28, 2025 at 04:53:55AM +0200, Jarkko Sakkinen wrote:
> > 'trusted_tpm2' duplicates 'tpm2_hash_map' originally part of the TPN
> > driver, which is suboptimal.
> > 
> > Implement and export `tpm2_find_hash_alg()` in the driver, and substitute
> > the redundant code in 'trusted_tpm2' with a call to the new function.
> > 
> > Signed-off-by: Jarkko Sakkinen <jarkko at kernel.org>
> 
> Reviewed-by: Jonathan McDowell <noodles at meta.com>

Thank you.

BR, Jarkko



More information about the Linux-security-module-archive mailing list