pub struct IgvmSignal(/* private fields */);Expand description
Bitmap indicates a signal to requestor 0 - IGVM_SIGNAL_RETRY_RECOMMENDED_BIT: Retry recommendation 1 - IGVM_SIGNAL_SKIP_HW_UNSEALING_RECOMMENDED_BIT: Skip hardware unsealing 2 - IGVM_SIGNAL_RSA_AES_KEY_WRAP_384_USED_BIT: Set by the IGVM Agent to indicate that the agent asked AKV for the SHA-384 variant (RSA_AES_KEY_WRAP_384) and AKV used it to wrap the key in the payload. If this bit is clear, AKV wrapped the key with the default CKM_RSA_AES_KEY_WRAP scheme (inner RSA-OAEP using SHA-1). 3 - IGVM_SIGNAL_CORIM_ENDORSEMENT_REQUESTED_BIT: Set by the IGVM Agent to indicate that the agent requested the CoRIM endorsement.
Implementations§
Source§impl IgvmSignal
impl IgvmSignal
Sourcepub const fn with_retry_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_retry_checked(self, value: bool) -> Result<Self, ()>
Bits: 0..1
Sourcepub const fn with_retry(self, value: bool) -> Self
pub const fn with_retry(self, value: bool) -> Self
Bits: 0..1
Sourcepub const fn skip_hw_unsealing(&self) -> bool
pub const fn skip_hw_unsealing(&self) -> bool
Bits: 1..2
Sourcepub const fn with_skip_hw_unsealing_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_skip_hw_unsealing_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 1..2
Sourcepub const fn with_skip_hw_unsealing(self, value: bool) -> Self
pub const fn with_skip_hw_unsealing(self, value: bool) -> Self
Bits: 1..2
Sourcepub const fn set_skip_hw_unsealing(&mut self, value: bool)
pub const fn set_skip_hw_unsealing(&mut self, value: bool)
Bits: 1..2
Sourcepub const fn set_skip_hw_unsealing_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_skip_hw_unsealing_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 1..2
Sourcepub const fn rsa_aes_key_wrap_384_used(&self) -> bool
pub const fn rsa_aes_key_wrap_384_used(&self) -> bool
Bits: 2..3
Sourcepub const fn with_rsa_aes_key_wrap_384_used_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_rsa_aes_key_wrap_384_used_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 2..3
Sourcepub const fn with_rsa_aes_key_wrap_384_used(self, value: bool) -> Self
pub const fn with_rsa_aes_key_wrap_384_used(self, value: bool) -> Self
Bits: 2..3
Sourcepub const fn set_rsa_aes_key_wrap_384_used(&mut self, value: bool)
pub const fn set_rsa_aes_key_wrap_384_used(&mut self, value: bool)
Bits: 2..3
Sourcepub const fn set_rsa_aes_key_wrap_384_used_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_rsa_aes_key_wrap_384_used_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 2..3
Sourcepub const fn corim_endorsement_requested(&self) -> bool
pub const fn corim_endorsement_requested(&self) -> bool
Bits: 3..4
Sourcepub const fn with_corim_endorsement_requested_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_corim_endorsement_requested_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 3..4
Sourcepub const fn with_corim_endorsement_requested(self, value: bool) -> Self
pub const fn with_corim_endorsement_requested(self, value: bool) -> Self
Bits: 3..4
Sourcepub const fn set_corim_endorsement_requested(&mut self, value: bool)
pub const fn set_corim_endorsement_requested(&mut self, value: bool)
Bits: 3..4
Trait Implementations§
Source§impl Clone for IgvmSignal
impl Clone for IgvmSignal
Source§fn clone(&self) -> IgvmSignal
fn clone(&self) -> IgvmSignal
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IgvmSignal
impl Debug for IgvmSignal
Source§impl Default for IgvmSignal
impl Default for IgvmSignal
Source§impl From<IgvmSignal> for u32
impl From<IgvmSignal> for u32
Source§fn from(v: IgvmSignal) -> u32
fn from(v: IgvmSignal) -> u32
Source§impl From<u32> for IgvmSignal
impl From<u32> for IgvmSignal
Source§impl FromBytes for IgvmSignalwhere
u32: FromBytes,
impl FromBytes for IgvmSignalwhere
u32: FromBytes,
§fn ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
fn ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
§fn ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
fn ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
§fn ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Immutable + KnownLayout,
fn ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Immutable + KnownLayout,
&Self. Read more§fn mut_from_bytes(
source: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_bytes(
source: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
§fn mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
§fn mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
Source§impl FromZeros for IgvmSignalwhere
u32: FromZeros,
impl FromZeros for IgvmSignalwhere
u32: FromZeros,
§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere
Self: Sized,
Self from zeroed bytes. Read more§fn new_box_zeroed() -> Result<Box<Self>, AllocError>where
Self: Sized,
fn new_box_zeroed() -> Result<Box<Self>, AllocError>where
Self: Sized,
Box<Self> from zeroed bytes. Read more§fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>where
Self: Sized,
fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>where
Self: Sized,
Vec<Self> from zeroed bytes. Read moreSource§impl IntoBytes for IgvmSignalwhere
u32: IntoBytes,
impl IntoBytes for IgvmSignalwhere
u32: IntoBytes,
§fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
§fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
Source§impl KnownLayout for IgvmSignalwhere
Self: Sized,
impl KnownLayout for IgvmSignalwhere
Self: Sized,
Source§type PointerMetadata = ()
type PointerMetadata = ()
Self. Read more§fn size_for_metadata(meta: Self::PointerMetadata) -> Option<usize>
fn size_for_metadata(meta: Self::PointerMetadata) -> Option<usize>
Self with the given pointer
metadata. Read more