pub struct TdxFeatures0(/* private fields */);Expand description
The global-scope TDX_FEATURES0 metadata field, enumerating optional TDX
module features. Read by the guest via TDG.SYS.RD
(TdCallLeaf::SYS_RD).
Only the bits relevant to hardware-bound sealing are modeled here; the remaining bits are documented by the Intel TDX Module ABI specification.
Implementations§
Source§impl TdxFeatures0
impl TdxFeatures0
Sourcepub const fn sealing(&self) -> bool
pub const fn sealing(&self) -> bool
SEALING (bit 12) - the TDX module supports signed TDs and seal keys
bound to TD properties, exposing the TDG.MR.KEY.GET interface.
Bits: 12..13
Sourcepub const fn with_sealing_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_sealing_checked(self, value: bool) -> Result<Self, ()>
SEALING (bit 12) - the TDX module supports signed TDs and seal keys
bound to TD properties, exposing the TDG.MR.KEY.GET interface.
Bits: 12..13
Sourcepub const fn with_sealing(self, value: bool) -> Self
pub const fn with_sealing(self, value: bool) -> Self
SEALING (bit 12) - the TDX module supports signed TDs and seal keys
bound to TD properties, exposing the TDG.MR.KEY.GET interface.
Bits: 12..13
Sourcepub const fn set_sealing(&mut self, value: bool)
pub const fn set_sealing(&mut self, value: bool)
SEALING (bit 12) - the TDX module supports signed TDs and seal keys
bound to TD properties, exposing the TDG.MR.KEY.GET interface.
Bits: 12..13
Sourcepub const fn set_sealing_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_sealing_checked(&mut self, value: bool) -> Result<(), ()>
SEALING (bit 12) - the TDX module supports signed TDs and seal keys
bound to TD properties, exposing the TDG.MR.KEY.GET interface.
Bits: 12..13
Sourcepub const fn td_signing_and_svn(&self) -> bool
pub const fn td_signing_and_svn(&self) -> bool
TD_SIGNING_AND_SVN (bit 22) - prerequisite support that SEALING
depends on.
Bits: 22..23
Sourcepub const fn with_td_signing_and_svn_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_td_signing_and_svn_checked( self, value: bool, ) -> Result<Self, ()>
TD_SIGNING_AND_SVN (bit 22) - prerequisite support that SEALING
depends on.
Bits: 22..23
Sourcepub const fn with_td_signing_and_svn(self, value: bool) -> Self
pub const fn with_td_signing_and_svn(self, value: bool) -> Self
TD_SIGNING_AND_SVN (bit 22) - prerequisite support that SEALING
depends on.
Bits: 22..23
Sourcepub const fn set_td_signing_and_svn(&mut self, value: bool)
pub const fn set_td_signing_and_svn(&mut self, value: bool)
TD_SIGNING_AND_SVN (bit 22) - prerequisite support that SEALING
depends on.
Bits: 22..23
Sourcepub const fn set_td_signing_and_svn_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_td_signing_and_svn_checked( &mut self, value: bool, ) -> Result<(), ()>
TD_SIGNING_AND_SVN (bit 22) - prerequisite support that SEALING
depends on.
Bits: 22..23
Sourcepub const fn sealkey_128(&self) -> bool
pub const fn sealkey_128(&self) -> bool
SEALKEY_128 (bit 50) - enumerates the seal key size.
Bits: 50..51
Sourcepub const fn with_sealkey_128_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_sealkey_128_checked(self, value: bool) -> Result<Self, ()>
SEALKEY_128 (bit 50) - enumerates the seal key size.
Bits: 50..51
Sourcepub const fn with_sealkey_128(self, value: bool) -> Self
pub const fn with_sealkey_128(self, value: bool) -> Self
SEALKEY_128 (bit 50) - enumerates the seal key size.
Bits: 50..51
Sourcepub const fn set_sealkey_128(&mut self, value: bool)
pub const fn set_sealkey_128(&mut self, value: bool)
SEALKEY_128 (bit 50) - enumerates the seal key size.
Bits: 50..51
Trait Implementations§
Source§impl Clone for TdxFeatures0
impl Clone for TdxFeatures0
Source§fn clone(&self) -> TdxFeatures0
fn clone(&self) -> TdxFeatures0
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more