diff --git a/common/golang/cctrusted_base/api.go b/common/golang/cctrusted_base/api.go index 4e99dea2..5f70a23d 100644 --- a/common/golang/cctrusted_base/api.go +++ b/common/golang/cctrusted_base/api.go @@ -29,7 +29,7 @@ func (t CC_Type) String() string { type CCTrustedAPI interface { GetDefaultAlgorithm() (TCG_ALG, error) - GetCCReport(nonce, userData string, extraArgs any) (Report, error) + GetCCReport(nonce, userData string, extraArgs map[string]any) (Report, error) DumpCCReport(reportBytes []byte) error GetMeasurementCount() (int, error) diff --git a/common/golang/cctrusted_base/model.go b/common/golang/cctrusted_base/model.go index 184d63dd..b849dd11 100644 --- a/common/golang/cctrusted_base/model.go +++ b/common/golang/cctrusted_base/model.go @@ -18,3 +18,10 @@ type Report interface { IMRGroup() IMRGroup Dump(QuoteDumpFormat) } + +type CcReport struct { + Outblob []byte + Auxblob []byte + Provider string + Generation int +}