diff options
author | Jarkko Sakkinen <jarkko@kernel.org> | 2024-04-29 16:27:57 -0400 |
---|---|---|
committer | Jarkko Sakkinen <jarkko@kernel.org> | 2024-05-09 22:30:51 +0300 |
commit | 40813f1879e7b7d33bf70bcd67fb443e8e52247b (patch) | |
tree | 04b97491485633865543874d7093cdfe99642f8a /security/Kconfig.hardening | |
parent | acd5eb4f50241c5e3c2e0056c0e2151295796416 (diff) | |
download | linux-stable-40813f1879e7b7d33bf70bcd67fb443e8e52247b.tar.gz linux-stable-40813f1879e7b7d33bf70bcd67fb443e8e52247b.tar.bz2 linux-stable-40813f1879e7b7d33bf70bcd67fb443e8e52247b.zip |
KEYS: trusted: tpm2: Use struct tpm_buf for sized buffers
Take advantage of the new sized buffer (TPM2B) mode of struct tpm_buf in
tpm2_seal_trusted(). This allows to add robustness to the command
construction without requiring to calculate buffer sizes manually.
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Tested-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'security/Kconfig.hardening')
0 files changed, 0 insertions, 0 deletions