]> git.ipfire.org Git - thirdparty/grub.git/commit
tss2: Add TPM2 buffer handling functions
authorGary Lin <glin@suse.com>
Fri, 15 Nov 2024 07:34:48 +0000 (15:34 +0800)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 28 Nov 2024 20:50:55 +0000 (21:50 +0100)
commit2ad159d9b34324db445860ee5bcfe83cbeed6f6d
treeeb24f283b13f72ceac9ab0832562e4a36a1352cd
parent5d260302da672258444b01239803c8f4d753e3f3
tss2: Add TPM2 buffer handling functions

As the preparation to support TPM2 Software Stack (TSS2), this commit
implements the TPM2 buffer handling functions to pack data for the TPM2
commands and unpack the data from the response.

Cc: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Hernan Gatta <hegatta@linux.microsoft.com>
Signed-off-by: Gary Lin <glin@suse.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Tested-by: Stefan Berger <stefanb@linux.ibm.com>
grub-core/lib/tss2/buffer.c [new file with mode: 0644]
grub-core/lib/tss2/tss2_buffer.h [new file with mode: 0644]