[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250801212422.9590-1-ebiggers@kernel.org>
Date: Fri, 1 Aug 2025 14:24:20 -0700
From: Eric Biggers <ebiggers@...nel.org>
To: Peter Huewe <peterhuewe@....de>,
Jarkko Sakkinen <jarkko@...nel.org>,
linux-integrity@...r.kernel.org
Cc: Jason Gunthorpe <jgg@...pe.ca>,
James Bottomley <James.Bottomley@...senPartnership.com>,
linux-crypto@...r.kernel.org,
linux-kernel@...r.kernel.org,
Eric Biggers <ebiggers@...nel.org>
Subject: [PATCH v2 0/2] tpm: Clean up HMAC validation and computation
Patch 1 updates the tpm driver to compare HMAC values in constant time.
Patch 2 simplifies the HMAC computation in the tpm driver by using the
library API instead of an open-coded HMAC implementation. Note that
this depends on the HMAC library API that was merged for v6.17-rc1.
Changed in v2:
- Updated commit message of patch 1 to no longer characterize it as a
fix. Explained why the side channel seems to have been benign.
Eric Biggers (2):
tpm: Compare HMAC values in constant time
tpm: Use HMAC-SHA256 library instead of open-coded HMAC
drivers/char/tpm/Kconfig | 1 +
drivers/char/tpm/tpm2-sessions.c | 104 +++++++++----------------------
2 files changed, 31 insertions(+), 74 deletions(-)
base-commit: d6084bb815c453de27af8071a23163a711586a6c
--
2.50.1
Powered by blists - more mailing lists