CCF
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Variables
snp_ioctl6.h File Reference
#include "ccf/ds/nonstd.h"
#include "ccf/pal/attestation_sev_snp.h"
#include <algorithm>
#include <array>
#include <cstring>
#include <fcntl.h>
#include <openssl/crypto.h>
#include <stdint.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <unistd.h>

Go to the source code of this file.

Classes

struct  ccf::pal::snp::ioctl6::PaddedTo< T, N >
 
struct  ccf::pal::snp::ioctl6::IoctlSentinel< T >
 
struct  ccf::pal::snp::ioctl6::AttestationReq
 
struct  ccf::pal::snp::ioctl6::AttestationResp
 
struct  ccf::pal::snp::ioctl6::DerivedKeyReq
 
struct  ccf::pal::snp::ioctl6::DerivedKeyResp
 
struct  ccf::pal::snp::ioctl6::ExitInfoErrors
 
union  ccf::pal::snp::ioctl6::ExitInfo
 
struct  ccf::pal::snp::ioctl6::GuestRequest< Req, Resp >
 
class  ccf::pal::snp::ioctl6::Attestation
 
class  ccf::pal::snp::ioctl6::DerivedKey
 

Namespaces

namespace  ccf
 
namespace  ccf::pal
 
namespace  ccf::pal::snp
 
namespace  ccf::pal::snp::ioctl6
 

Typedefs

using ccf::pal::snp::ioctl6::PaddedAttestationResp = PaddedTo< AttestationResp, 4000 >
 
using ccf::pal::snp::ioctl6::PaddedDerivedKeyResp = PaddedTo< DerivedKeyResp, 4000 >
 
using ccf::pal::snp::ioctl6::GuestRequestAttestation = GuestRequest< AttestationReq, PaddedAttestationResp >
 
using ccf::pal::snp::ioctl6::GuestRequestDerivedKey = GuestRequest< DerivedKeyReq, PaddedDerivedKeyResp >
 

Variables

constexpr auto ccf::pal::snp::ioctl6::DEVICE = "/dev/sev-guest"
 
constexpr uint8_t ccf::pal::snp::ioctl6::GUEST_FIELD_SELECT_GUEST_POLICY = 0b00000001
 
constexpr uint8_t ccf::pal::snp::ioctl6::GUEST_FIELD_SELECT_IMAGE_ID = 0b00000010
 
constexpr uint8_t ccf::pal::snp::ioctl6::GUEST_FIELD_SELECT_FAMILY_ID = 0b00000100
 
constexpr uint8_t ccf::pal::snp::ioctl6::GUEST_FIELD_SELECT_MEASUREMENT = 0b00001000
 
constexpr uint8_t ccf::pal::snp::ioctl6::GUEST_FIELD_SELECT_GUEST_SVN = 0b00010000
 
constexpr uint8_t ccf::pal::snp::ioctl6::GUEST_FIELD_SELECT_TCB_VERSION = 0b00100000
 
constexpr char ccf::pal::snp::ioctl6::SEV_GUEST_IOC_TYPE = 'S'
 
constexpr int ccf::pal::snp::ioctl6::SEV_SNP_GUEST_MSG_REPORT
 
constexpr int ccf::pal::snp::ioctl6::SEV_SNP_GUEST_MSG_DERIVED_KEY