10 static inline bool is_sev_snp()
12 return ioctl5::is_sev_snp() || ioctl6::is_sev_snp();
15 static std::unique_ptr<AttestationInterface> get_attestation(
16 const PlatformAttestationReportData& report_data)
18 if (ioctl5::is_sev_snp())
20 return std::make_unique<ioctl5::Attestation>(report_data);
22 else if (ioctl6::is_sev_snp())
24 return std::make_unique<ioctl6::Attestation>(report_data);
28 throw std::logic_error(
"SEV-SNP not supported");
Definition attestation_sev_snp.h:16