vbs_defs

Struct VBS_VM_BOOT_MEASUREMENT_SIGNED_DATA

Source
#[repr(C)]
pub struct VBS_VM_BOOT_MEASUREMENT_SIGNED_DATA { pub version: u32, pub product_id: u32, pub module_id: u32, pub security_version: u32, pub security_policy: VBS_POLICY_FLAGS, pub boot_digest_algo: u32, pub signing_algo: u32, pub boot_measurement_digest: [u8; 32], }
Expand description

Structure containing the completed VBS boot measurement of the IGVM file. The signature of the hash of this struct is the signature for [igvm_defs::IGVM_VHS_VBS_MEASUREMENT]

Fields§

§version: u32

The version of the signature structure

§product_id: u32

The user supplied product id

§module_id: u32

The uesr supplied module id

§security_version: u32

The user supplied svn

§security_policy: VBS_POLICY_FLAGS

Security policy for the guest

§boot_digest_algo: u32

Algorithm that created the boot digest hash

§signing_algo: u32

Algorithm that produces the signature

§boot_measurement_digest: [u8; 32]

VBS Boot digest

Trait Implementations§

Source§

impl Debug for VBS_VM_BOOT_MEASUREMENT_SIGNED_DATA

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl IntoBytes for VBS_VM_BOOT_MEASUREMENT_SIGNED_DATA
where u32: IntoBytes, VBS_POLICY_FLAGS: IntoBytes, [u8; 32]: IntoBytes, (): PaddingFree<Self, { _ }>,

§

fn as_bytes(&self) -> &[u8]
where Self: Immutable,

Gets the bytes of this value. Read more
§

fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>
where Self: Immutable,

Writes a copy of self to dst. Read more
§

fn write_to_prefix( &self, dst: &mut [u8], ) -> Result<(), SizeError<&Self, &mut [u8]>>
where Self: Immutable,

Writes a copy of self to the prefix of dst. Read more
§

fn write_to_suffix( &self, dst: &mut [u8], ) -> Result<(), SizeError<&Self, &mut [u8]>>
where Self: Immutable,

Writes a copy of self to the suffix of dst. Read more
Source§

impl KnownLayout for VBS_VM_BOOT_MEASUREMENT_SIGNED_DATA
where [u8; 32]: KnownLayout,

Source§

type PointerMetadata = <[u8; 32] as KnownLayout>::PointerMetadata

The type of metadata stored in a pointer to Self. Read more
Source§

impl Immutable for VBS_VM_BOOT_MEASUREMENT_SIGNED_DATA
where u32: Immutable, VBS_POLICY_FLAGS: Immutable, [u8; 32]: Immutable,

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.