Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tpm2/structures.go
Original file line number Diff line number Diff line change
Expand Up @@ -3328,4 +3328,6 @@ type TPMSContext struct {
ContextBlob TPM2BContextData
}

type tpm2bCreationData = TPM2B[TPMSCreationData, *TPMSCreationData]
// TPM2BCreationData represents a TPM2B_CREATION_DATA
// See definition in Part 2: Structures, section 15.2.
type TPM2BCreationData = TPM2B[TPMSCreationData, *TPMSCreationData]
4 changes: 2 additions & 2 deletions tpm2/tpm2.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ type CreateResponse struct {
// the public portion of the created object
OutPublic TPM2BPublic
// contains a TPMS_CREATION_DATA
CreationData tpm2bCreationData
CreationData TPM2BCreationData
// digest of creationData using nameAlg of outPublic
CreationHash TPM2BDigest
// ticket used by TPM2_CertifyCreation() to validate that the
Expand Down Expand Up @@ -1632,7 +1632,7 @@ type CreatePrimaryResponse struct {
// the public portion of the created object
OutPublic TPM2BPublic
// contains a TPMS_CREATION_DATA
CreationData tpm2bCreationData
CreationData TPM2BCreationData
// digest of creationData using nameAlg of outPublic
CreationHash TPM2BDigest
// ticket used by TPM2_CertifyCreation() to validate that the
Expand Down