]> git.ipfire.org Git - thirdparty/grub.git/commit
tss2: Add TPM 2.0 NV index commands
authorGary Lin <glin@suse.com>
Mon, 7 Apr 2025 08:29:18 +0000 (16:29 +0800)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 10 Apr 2025 16:04:48 +0000 (18:04 +0200)
commit75c480885ab00fb9bc046fe214df60007116aef2
treee788eab8eda97e927a39214bc3dd342624544a2d
parent041164d00e79ffd2433675a5dd5b824833b9fc6a
tss2: Add TPM 2.0 NV index commands

The following TPM 2.0 commands are introduced to tss2 to access the
TPM non-volatile memory associated with the NV index handles:
  - TPM2_NV_DefineSpace,
  - TPM2_NV_UndefineSpace,
  - TPM2_NV_ReadPublic,
  - TPM2_NV_Read,
  - TPM2_NV_Write.

The related marshal/unmarshal functions are also introduced.

Signed-off-by: Gary Lin <glin@suse.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/lib/tss2/tpm2_cmd.c
grub-core/lib/tss2/tpm2_cmd.h
grub-core/lib/tss2/tss2_mu.c
grub-core/lib/tss2/tss2_mu.h
grub-core/lib/tss2/tss2_types.h