9 static inline bool supports_sev_snp()
11 return ioctl6::supports_sev_snp();
14 static std::unique_ptr<AttestationInterface> get_attestation(
15 const PlatformAttestationReportData& report_data)
17 if (ioctl6::supports_sev_snp())
19 return std::make_unique<ioctl6::Attestation>(report_data);
23 throw std::logic_error(
"SEV-SNP not supported");
27 static std::unique_ptr<ioctl6::DerivedKey> make_derived_key(
28 const TcbVersionRaw version = {})
30 if (ioctl6::supports_sev_snp())
32 return std::make_unique<ioctl6::DerivedKey>(version);
34 throw std::logic_error(
"SEV-SNP Derived key not supported");
Definition attestation_sev_snp.h:24