tdx

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2024 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Issuer

type Issuer struct {
	// contains filtered or unexported fields
}

Issuer issues attestation statements.

func NewIssuer

func NewIssuer(log *slog.Logger) *Issuer

NewIssuer returns a new Issuer.

func (*Issuer) Issue

func (i *Issuer) Issue(_ context.Context, ownPublicKey []byte, nonce []byte) (res []byte, err error)

Issue the attestation document.

func (*Issuer) OID

func (i *Issuer) OID() asn1.ObjectIdentifier

OID returns the OID of the issuer.

type StaticValidateOptsGenerator added in v1.1.0

type StaticValidateOptsGenerator struct {
	Opts *validate.Options
}

StaticValidateOptsGenerator returns validate.Options generator that returns static validation options.

func (*StaticValidateOptsGenerator) TDXValidateOpts added in v1.1.0

func (v *StaticValidateOptsGenerator) TDXValidateOpts(_ *tdx.QuoteV4) (*validate.Options, error)

TDXValidateOpts return the TDX validation options.

type Validator added in v1.1.0

type Validator struct {
	// contains filtered or unexported fields
}

Validator validates attestation statements.

func NewValidator added in v1.1.0

func NewValidator(optsGen validateOptsGenerator, log *slog.Logger) *Validator

NewValidator returns a new Validator.

func NewValidatorWithReportSetter added in v1.1.0

func NewValidatorWithReportSetter(optsGen validateOptsGenerator, log *slog.Logger, reportSetter attestation.ReportSetter) *Validator

NewValidatorWithReportSetter returns a new Validator with a report setter.

func (*Validator) OID added in v1.1.0

func (v *Validator) OID() asn1.ObjectIdentifier

OID returns the OID of the validator.

func (*Validator) Validate added in v1.1.0

func (v *Validator) Validate(attDocRaw []byte, nonce []byte, peerPublicKey []byte) (err error)

Validate a TDX attestation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL