tpm: TPM2B formatted buffers
authorJarkko Sakkinen <jarkko@kernel.org>
Mon, 29 Apr 2024 20:27:55 +0000 (16:27 -0400)
committerJarkko Sakkinen <jarkko@kernel.org>
Thu, 9 May 2024 19:30:51 +0000 (22:30 +0300)
commitd926ee92e84146ff85877b15d9ac0c7cd7c422c6
treeee82096be24b0bfbbb4da598ff4d28694c8e5021
parente1b72e1b11109bd81577950538a17bc0428e647f
tpm: TPM2B formatted buffers

Declare tpm_buf_init_sized() and tpm_buf_reset_sized() for creating TPM2B
formatted buffers. These buffers are also known as sized buffers in the
specifications and literature.

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>
drivers/char/tpm/tpm-buf.c
include/linux/tpm.h