Asylo
Namespaces | Enumerations | Variables
architecture_bits.h File Reference
#include <cstddef>
#include <cstdint>
Include dependency graph for architecture_bits.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 asylo
 
 asylo::sgx
 

Enumerations

enum  asylo::sgx::AttributeBit {
  asylo::sgx::AttributeBit::INIT = 0, asylo::sgx::AttributeBit::DEBUG = 1, asylo::sgx::AttributeBit::MODE64BIT = 2, asylo::sgx::AttributeBit::PROVISIONKEY = 4,
  asylo::sgx::AttributeBit::INITTOKENKEY = 5, asylo::sgx::AttributeBit::KSS = 7, asylo::sgx::AttributeBit::FPU = 64 + 0, asylo::sgx::AttributeBit::SSE = 64 + 1,
  asylo::sgx::AttributeBit::AVX = 64 + 2, asylo::sgx::AttributeBit::BNDREG = 64 + 3, asylo::sgx::AttributeBit::BNDCSR = 64 + 4, asylo::sgx::AttributeBit::OPMASK = 64 + 5,
  asylo::sgx::AttributeBit::ZMM_HI256 = 64 + 6, asylo::sgx::AttributeBit::HI16_ZMM = 64 + 7, asylo::sgx::AttributeBit::PKRU = 64 + 9
}
 SGX defines 128 bits of enclave attributes, which are located in the SECS (Secure Enclave Control Structure) of the enclave. More...
 
enum  asylo::sgx::MiscselectBit { asylo::sgx::MiscselectBit::EXINFO = 0 }
 The following enum defines the various MISCSELECT bits and assigns them a value that is same as their bit position in the SECS MISCSELECT bit vector. More...
 

Variables

const AttributeBit asylo::sgx::kAllAttributeBits [15]
 All valid bit positions in the ATTRIBUTES bit vector. More...
 
const size_t asylo::sgx::kNumAttributeFlagBits
 The number of ATTRIBUTES flag bits. More...
 
const size_t asylo::sgx::kNumAttributeXfrmBits
 The number of ATTRIBUTES XFRM bits. More...
 
const size_t asylo::sgx::kNumAttributeBits
 The total number of ATTRIBUTES bits. More...
 
const uint64_t asylo::sgx::kValidAttributeFlagsBitmask
 A bitmask over all valid ATTRIBUTES flag bits. More...
 
const uint64_t asylo::sgx::kValidAttributeXfrmBitmask
 A bitmask over all valid ATTRIBUTES XFRM bits. More...
 
const MiscselectBit asylo::sgx::kAllMiscselectBits [1]
 All valid bit positions in the MISCSELECT bit vector. More...
 
const size_t asylo::sgx::kNumMiscselectBits
 The total number of MISCSELECT bits. More...
 
const uint32_t asylo::sgx::kValidMiscselectBitmask
 A bitmask over all valid MISCSELECT bits. More...