Documentation
¶
Overview ¶
Package tdx verifies Intel TDX QuoteV4 evidence independently from the ASB protocol implementation. ASB supplies the expected session REPORT_DATA and treats the returned error as the module appraisal result.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ErrPolicyRequired = errors.New("tdx module: strict verification policy is required") ErrInvalidQuote = errors.New("tdx module: invalid QuoteV4 evidence") ErrBinding = errors.New("tdx module: REPORT_DATA does not match ASB session binding") ErrVerification = errors.New("tdx module: quote, certificate, collateral, or revocation verification failed") ErrValidation = errors.New("tdx module: quote policy validation failed") )
Functions ¶
func ParseQuote ¶
ParseQuote parses raw evidence and rejects every format other than QuoteV4.
func ValidateConfig ¶
func ValidateConfig(policy *checkconfig.Config) error
ValidateConfig enforces the strict verification baseline before evidence is accepted.
func Verify ¶
func Verify(ctx context.Context, evidence, expectedReportData []byte, policy *checkconfig.Config, runtime *RuntimeOptions) error
Verify authenticates the quote and collateral, forces ASB's dynamic REPORT_DATA into the local validation policy, and rejects debug-enabled TDs.
Types ¶
type RuntimeOptions ¶
type RuntimeOptions struct {
Getter tdxtrust.HTTPSGetter
Now time.Time
}
RuntimeOptions permits deterministic collateral injection in tests and deployments with a reviewed local collateral service. Nil uses a bounded HTTPS-only getter.