Skip to main content

TeeInfo

Enum TeeInfo 

Source
pub enum TeeInfo<'a> {
    V1(&'a TeeInfoV1),
    V2(&'a TeeInfoV2),
}
Expand description

Enum Containing the different versions of the Tee Info struct

Since the release of the firmware API version 1.4, the tee info of the attestation report support extended format. In order to keep backwards compatibility, use enum V1(TeeInfoV1) to handling legacy tee info of the attestation report.

The V2(TeeInfoV2) is tee info struct for extended attestation report.

Variants§

§

V1(&'a TeeInfoV1)

Version 1 of Tee info

§

V2(&'a TeeInfoV2)

Version 2 of Tee info

Implementations§

Source§

impl TeeInfo<'_>

Source

pub fn raw(&self, data: &[u8]) -> Vec<u8>

Restore raw field from the Tee info

Source

pub fn user_pubkey_digest(&self) -> Vec<u8>

Get user_pubkey_digest field

Source

pub fn vm_id(&self) -> Vec<u8>

Get vm_id field

Source

pub fn vm_version(&self) -> Vec<u8>

Get vm_version field

Source

pub fn report_data(&self) -> Vec<u8>

Get report_data field

Source

pub fn mnonce(&self) -> Vec<u8>

Get mnonce field

Source

pub fn measure(&self) -> Vec<u8>

Get measure field

Source

pub fn policy(&self) -> GuestPolicy

Get policy field

Source

pub fn sig_usage(&self) -> u32

Get sig_usage field

Source

pub fn sig_algo(&self) -> u32

Get sig_algo field

Source

pub fn anonce(&self) -> u32

Get anonce field

Source

pub fn build(&self) -> u32

Get build field

Source

pub fn rtmr_version(&self) -> u16

Get rtmr_version field

Source

pub fn rtmr0(&self) -> &[u8]

Get rtmr0 field

Source

pub fn rtmr1(&self) -> &[u8]

Get rtmr1 field

Source

pub fn rtmr2(&self) -> &[u8]

Get rtmr2 field

Source

pub fn rtmr3(&self) -> &[u8]

Get rtmr3 field

Source

pub fn rtmr4(&self) -> &[u8]

Get rtmr4 field

Trait Implementations§

Source§

impl<'a> TryFrom<&'a TeeInfo<'a>> for Signature

Source§

type Error = Error

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

fn try_from(value: &'a TeeInfo<'a>) -> Result<Self, Error>

Performs the conversion.

Auto Trait Implementations§

§

impl<'a> Freeze for TeeInfo<'a>

§

impl<'a> RefUnwindSafe for TeeInfo<'a>

§

impl<'a> Send for TeeInfo<'a>

§

impl<'a> Sync for TeeInfo<'a>

§

impl<'a> Unpin for TeeInfo<'a>

§

impl<'a> UnsafeUnpin for TeeInfo<'a>

§

impl<'a> UnwindSafe for TeeInfo<'a>

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,