Thanks so much, Roberts.
From: Roberts, William C <william.c.roberts(a)intel.com>
Sent: Friday, December 6, 2019 10:34 PM
To: Zhao, Shirley <shirley.zhao(a)intel.com>; tpm2(a)lists.01.org
Subject: RE: Question about marshal/un-marshal TPM2.0 packet
From: Zhao, Shirley [mailto:email@example.com]
Sent: Thursday, December 5, 2019 8:11 PM
Subject: [tpm2] Question about marshal/un-marshal TPM2.0 packet
I want to know how TPM2.0 marshal the command packet, especially some
parameter is optional.
There is only marshal/un-marshal API defined in tpm2-
uint8_t const buffer,
But I can't find function body, how to get the detailed function body?
They are all generated from macro's so you need to expand them.
I just hack up a build command with gcc -E option to expand them.
For example Tss2_MU_8_Marshal is generated here: