Skip to content

Commit

Permalink
[WIP] Define the base types
Browse files Browse the repository at this point in the history
Signed-off-by: Yogesh Deshpande <[email protected]>
  • Loading branch information
yogeshbdeshpande committed Oct 24, 2024
1 parent eeb678c commit 9341afb
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions comid/tdx-profile/types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
package tdx

import "github.com/veraison/corim/comid"

type teeModel string

Check failure on line 5 in comid/tdx-profile/types.go

View workflow job for this annotation

GitHub Actions / Lint

type `teeModel` is unused (unused)
type teeVendor string

Check failure on line 6 in comid/tdx-profile/types.go

View workflow job for this annotation

GitHub Actions / Lint

type `teeVendor` is unused (unused)

type pceID string

Check failure on line 8 in comid/tdx-profile/types.go

View workflow job for this annotation

GitHub Actions / Lint

type `pceID` is unused (unused)

type teeSVN int

Check failure on line 10 in comid/tdx-profile/types.go

View workflow job for this annotation

GitHub Actions / Lint

type `teeSVN` is unused (unused)

type maskType []byte

Check failure on line 12 in comid/tdx-profile/types.go

View workflow job for this annotation

GitHub Actions / Lint

type `maskType` is unused (unused)

type tdate string

Check failure on line 14 in comid/tdx-profile/types.go

View workflow job for this annotation

GitHub Actions / Lint

type `tdate` is unused (unused)

type teeDigest comid.Digests

Check failure on line 16 in comid/tdx-profile/types.go

View workflow job for this annotation

GitHub Actions / Lint

type `teeDigest` is unused (unused)

type epochSeconds int

Check failure on line 18 in comid/tdx-profile/types.go

View workflow job for this annotation

GitHub Actions / Lint

type `epochSeconds` is unused (unused)

type setType any

Check failure on line 20 in comid/tdx-profile/types.go

View workflow job for this annotation

GitHub Actions / Lint

type `setType` is unused (unused)

type epochExpression struct {
grace_period epochSeconds

Check failure on line 23 in comid/tdx-profile/types.go

View workflow job for this annotation

GitHub Actions / Lint

var-naming: don't use underscores in Go names; struct field grace_period should be gracePeriod (revive)
epochID *tdate
}

type teeTcbStatus setType

type teeTcbEvalNum uint

type teeTcbCompSvn [16][16]teeSVN

type teeMiscSelect maskType

// TO DO Align later, this is with real TD profile
type teeIsvProdID comid.UUID

type teeInstanceID []byte

type teeCryptoKey comid.CryptoKey

type teeAdvisoryID setType

0 comments on commit 9341afb

Please sign in to comment.