From 9341afba837f653472e31f66353f90362d3411eb Mon Sep 17 00:00:00 2001 From: Yogesh Deshpande Date: Thu, 24 Oct 2024 17:50:40 +0100 Subject: [PATCH] [WIP] Define the base types Signed-off-by: Yogesh Deshpande --- comid/tdx-profile/types.go | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 comid/tdx-profile/types.go diff --git a/comid/tdx-profile/types.go b/comid/tdx-profile/types.go new file mode 100644 index 0000000..44a28b6 --- /dev/null +++ b/comid/tdx-profile/types.go @@ -0,0 +1,42 @@ +package tdx + +import "github.com/veraison/corim/comid" + +type teeModel string +type teeVendor string + +type pceID string + +type teeSVN int + +type maskType []byte + +type tdate string + +type teeDigest comid.Digests + +type epochSeconds int + +type setType any + +type epochExpression struct { + grace_period epochSeconds + 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