Skip to content

Commit

Permalink
[WIP] Add the Intel 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 25, 2024
1 parent 9341afb commit 078aa8b
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions comid/tdx-profile/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@ package tdx

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

// TO DO, check change this later to more expandable type
type numericType uint

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

View workflow job for this annotation

GitHub Actions / Lint

type `numericType` is unused (unused)

type teeModel string

Check failure on line 8 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 9 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 11 in comid/tdx-profile/types.go

View workflow job for this annotation

GitHub Actions / Lint

type `pceID` is unused (unused)

type teeSVN int
type teeSVN numericType

Check failure on line 13 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 15 in comid/tdx-profile/types.go

View workflow job for this annotation

GitHub Actions / Lint

type `maskType` is unused (unused)

Expand All @@ -20,8 +23,8 @@ type epochSeconds int
type setType any

Check failure on line 23 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
epochID *tdate
gracePeriod epochSeconds
epochID *tdate
}

type teeTcbStatus setType
Expand All @@ -32,11 +35,20 @@ type teeTcbCompSvn [16][16]teeSVN

type teeMiscSelect maskType

// TO DO Align later, this is with real TD profile
type teeAtttributes maskType

// TO DO Check with Ned, why it is NOT UUID but either an Integer or Bstr in the Profile Document
type teeIsvProdID comid.UUID

type teeInstanceID []byte
// TO DO Change this Instance ID to be a type choice with expression for a []byte
type teeInstanceID uint

type teeCryptoKey comid.CryptoKey

type teeAdvisoryID setType

type epochTimeStamp tdate

// TO DO Set of Set Type: Where it is used and is it needed, for this profile ...?

// TO DO Check with Ned, What is time? in the CDDL Document, not defined???

0 comments on commit 078aa8b

Please sign in to comment.