diff --git a/tpm2/structures.go b/tpm2/structures.go index 474825fe..4802a5a0 100644 --- a/tpm2/structures.go +++ b/tpm2/structures.go @@ -1501,9 +1501,21 @@ type TPMSCreationData struct { OutsideInfo TPM2BData } +// TPMSIDObject represents a TPMS_ID_OBJECT. +// See definition in Part 2: Structures, section 12.4.2. +type TPMSIDObject struct { + // HMAC using the nameAlg of the storage key on the target TPM + IntegrityHMAC TPM2BDigest + // credential protector information returned if name matches the referenced object + // All of the encIdentity is encrypted, including the size field. + EncIdentity []byte +} + // TPM2BIDObject represents a TPM2B_ID_OBJECT. // See definition in Part 2: Structures, section 12.4.3. -type TPM2BIDObject TPM2BData +type TPM2BIDObject struct { + Credential TPMSIDObject `gotpm:"sized"` +} // TPMNT represents a TPM_NT. // See definition in Part 2: Structures, section 13.4.