tpm2: add TPM2B_*_MAKE(), TPM2B_*_CHECK_SIZE() macros
authorDan Streetman <ddstreet@ieee.org>
Wed, 19 Jul 2023 11:49:07 +0000 (07:49 -0400)
committerDan Streetman <ddstreet@ieee.org>
Fri, 4 Aug 2023 14:57:07 +0000 (10:57 -0400)
commit53b91e1981993f49e079d977e2ac651eaac5cc5a
tree9dfc11efbe56fcc0b218ffcf12a513755c81097f
parent07c040611751facf075dab7a72ab4935142dda3c
tpm2: add TPM2B_*_MAKE(), TPM2B_*_CHECK_SIZE() macros

The tpm2-tss library has many structs with only an array and size; these macros
make it easy to assign to these structs.
src/boot/measure.c
src/shared/tpm2-util.c
src/shared/tpm2-util.h
src/test/test-tpm2.c