From 486404097da6cda806bbce909f8816c8b76c662c Mon Sep 17 00:00:00 2001 From: Ruoyu Ying Date: Tue, 16 Apr 2024 12:21:28 +0800 Subject: [PATCH] common: extend type CcReport in golang impl (#123) --- common/golang/cctrusted_base/api.go | 2 +- common/golang/cctrusted_base/model.go | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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 +}