Skip to content

Commit

Permalink
common: extend type CcReport in golang impl (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruoyu-y authored Apr 16, 2024
1 parent 3455e7e commit 4864040
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion common/golang/cctrusted_base/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
7 changes: 7 additions & 0 deletions common/golang/cctrusted_base/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,10 @@ type Report interface {
IMRGroup() IMRGroup
Dump(QuoteDumpFormat)
}

type CcReport struct {
Outblob []byte
Auxblob []byte
Provider string
Generation int
}

0 comments on commit 4864040

Please sign in to comment.