[][src]Struct sgx_tseal::SgxUnsealedData

pub struct SgxUnsealedData<'a, T: 'a + ?Sized> {
    pub payload_size: u32,
    pub decrypt: Box<T>,
    pub additional: Box<[u8]>,
    // some fields omitted
}

The structure about the unsealed data.

Fields

payload_size: u32decrypt: Box<T>additional: Box<[u8]>

Methods

impl<'a, T: 'a + ?Sized> SgxUnsealedData<'a, T>[src]

pub fn get_payload_size(&self) -> u32[src]

Get the payload size of the SgxUnsealedData.

pub fn get_decrypt_txt(&self) -> &T[src]

Get the pointer of decrypt buffer in SgxUnsealedData.

pub fn get_additional_txt(&self) -> &[u8][src]

Get the pointer of additional buffer in SgxUnsealedData.

Trait Implementations

impl<'a, T: 'a + Clone + ?Sized> Clone for SgxUnsealedData<'a, T>[src]

impl<'a, T: 'a + Default> Default for SgxUnsealedData<'a, T>[src]

impl<'a, T: 'a + Default> Default for SgxUnsealedData<'a, [T]>[src]

Auto Trait Implementations

impl<'a, T: ?Sized> Send for SgxUnsealedData<'a, T> where
    T: Send + Sync

impl<'a, T: ?Sized> Sync for SgxUnsealedData<'a, T> where
    T: Sync

impl<'a, T: ?Sized> Unpin for SgxUnsealedData<'a, T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.