[][src]Struct teaclave_crypto::TeaclaveFile128Key

pub struct TeaclaveFile128Key {
    pub key: [u8; 16],
}

Fields

key: [u8; 16]

Methods

impl TeaclaveFile128Key[src]

pub const SCHEMA: &'static str[src]

pub fn random() -> Self[src]

pub fn new(in_key: &[u8]) -> Result<Self>[src]

pub fn decrypt<P: AsRef<Path>>(
    &self,
    path: P,
    output: &mut impl Write
) -> Result<[u8; 16]>
[src]

pub fn encrypt<P: AsRef<Path>>(
    &self,
    path: P,
    content: impl Read
) -> Result<[u8; 16]>
[src]

Trait Implementations

impl Clone for TeaclaveFile128Key[src]

impl Copy for TeaclaveFile128Key[src]

impl Debug for TeaclaveFile128Key[src]

impl Default for TeaclaveFile128Key[src]

impl<'de> Deserialize<'de> for TeaclaveFile128Key[src]

impl PartialEq<TeaclaveFile128Key> for TeaclaveFile128Key[src]

impl Serialize for TeaclaveFile128Key[src]

impl StructuralPartialEq for TeaclaveFile128Key[src]

Auto Trait Implementations

impl RefUnwindSafe for TeaclaveFile128Key

impl Send for TeaclaveFile128Key

impl Sync for TeaclaveFile128Key

impl Unpin for TeaclaveFile128Key

impl UnwindSafe for TeaclaveFile128Key

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

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

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

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]