Documentation ¶
Index ¶
- Constants
- func TdxVMInitFunc(args *cctrusted_vm.CVMInitArgs) (cctrusted_vm.ConfidentialVM, error)
- type QuoteHandler
- type QuoteHandler15
- func (q *QuoteHandler15) FetchQuoteByTdvmcall(tdreport [tdx.TD_REPORT_LEN]byte) ([]byte, error)
- func (q *QuoteHandler15) FetchQuoteByVsock(vsockPort int, tdreport [tdx.TD_REPORT_LEN]byte) ([]byte, error)
- func (q *QuoteHandler15) Quote(tdreport [tdx.TD_REPORT_LEN]byte) ([]byte, error)
- func (q *QuoteHandler15) TdReport(nonce, userData string) ([tdx.TD_REPORT_LEN]byte, error)
- type TDXDevice
- type TDXEventLogRecorder
- type TdxVM
Constants ¶
View Source
const ( DEFAULT_ACPI_TABLE_FILE = "/sys/firmware/acpi/tables/CCEL" DEFAULT_ACPI_TABLE_DATA_FILE = "/sys/firmware/acpi/tables/data/CCEL" )
Variables ¶
This section is empty.
Functions ¶
func TdxVMInitFunc ¶
func TdxVMInitFunc(args *cctrusted_vm.CVMInitArgs) (cctrusted_vm.ConfidentialVM, error)
TdxVMInitFunc creates and inits a tdx confidential VM
Types ¶
type QuoteHandler ¶
type QuoteHandler interface { // Quote gets the quote of the td vm, which is refered as cc report Quote([tdx.TD_REPORT_LEN]byte) ([]byte, error) // TdReport gets the td report of the td vm, where nonce ad userData // are encoded in base64 TdReport(nonce, userData string) ([tdx.TD_REPORT_LEN]byte, error) }
func GetQuoteHandler ¶
func GetQuoteHandler(spec tdx.TDXDeviceSpec) (QuoteHandler, error)
type QuoteHandler15 ¶
type QuoteHandler15 struct {
// contains filtered or unexported fields
}
func (*QuoteHandler15) FetchQuoteByTdvmcall ¶
func (q *QuoteHandler15) FetchQuoteByTdvmcall(tdreport [tdx.TD_REPORT_LEN]byte) ([]byte, error)
func (*QuoteHandler15) FetchQuoteByVsock ¶
func (q *QuoteHandler15) FetchQuoteByVsock(vsockPort int, tdreport [tdx.TD_REPORT_LEN]byte) ([]byte, error)
func (*QuoteHandler15) Quote ¶
func (q *QuoteHandler15) Quote(tdreport [tdx.TD_REPORT_LEN]byte) ([]byte, error)
Quote implements QuoteHandler.
func (*QuoteHandler15) TdReport ¶
func (q *QuoteHandler15) TdReport(nonce, userData string) ([tdx.TD_REPORT_LEN]byte, error)
TdReport implements QuoteHandler.
type TDXDevice ¶
type TDXDevice struct { cctrusted_vm.GenericDevice QuoteHandler // contains filtered or unexported fields }
func (*TDXDevice) CCType ¶
func (t *TDXDevice) CCType() evidence_api.CC_Type
CCType implements cctrusted_vm.Device.
func (*TDXDevice) ProbeDevice ¶
ProbeDevice implements cctrusted_vm.Device, probe valid tdx device.
func (*TDXDevice) Report ¶
func (t *TDXDevice) Report(nonce, userData string, extraArgs map[string]any) (evidence_api.CcReport, error)
Report implements cctrusted_vm.Device, get CC report
func (*TDXDevice) Version ¶
func (t *TDXDevice) Version() evidence_api.DeviceVersion
Version implements cctrusted_vm.Device.
type TDXEventLogRecorder ¶
type TDXEventLogRecorder struct {
// contains filtered or unexported fields
}
func (*TDXEventLogRecorder) FullEventLog ¶
func (t *TDXEventLogRecorder) FullEventLog() ([]byte, error)
FullEventLog implements cctrusted_vm.EventRecorder.
func (*TDXEventLogRecorder) ProbeRecorder ¶
func (t *TDXEventLogRecorder) ProbeRecorder() error
ProbeRecorder implements cctrusted_vm.EventRecorder.
func (*TDXEventLogRecorder) RedirectAcpiTableDataFile ¶
func (t *TDXEventLogRecorder) RedirectAcpiTableDataFile(file string)
func (*TDXEventLogRecorder) RedirectAcpiTableFile ¶
func (t *TDXEventLogRecorder) RedirectAcpiTableFile(file string)
type TdxVM ¶
type TdxVM struct { cctrusted_vm.Device cctrusted_vm.EventRecorder evidence_api.IMARecorder }
func NewTdxVM ¶
func NewTdxVM(args *cctrusted_vm.CVMInitArgs) *TdxVM
func (*TdxVM) CVMContext ¶
func (t *TdxVM) CVMContext() cctrusted_vm.CVMContext
CVMContext implements cctrusted_vm.ConfidentialVM.
func (*TdxVM) DefaultAlgorithm ¶
func (t *TdxVM) DefaultAlgorithm() evidence_api.TCG_ALG
DefaultAlgorithm implements cctrusted_vm.ConfidentialVM.
func (*TdxVM) MaxImrIndex ¶
MaxImrIndex implements cctrusted_vm.ConfidentialVM.
Click to show internal directories.
Click to hide internal directories.