[][src]Enum teaclave_types::FileCrypto

pub enum FileCrypto {
    AesGcm128(AesGcm128Key),
    AesGcm256(AesGcm256Key),
    TeaclaveFile128(TeaclaveFile128Key),
    Raw,
}

Variants

AesGcm128(AesGcm128Key)
AesGcm256(AesGcm256Key)
TeaclaveFile128(TeaclaveFile128Key)
Raw

Methods

impl FileCrypto[src]

pub fn new(schema: &str, key: &[u8], iv: &[u8]) -> Result<Self>[src]

pub fn schema(&self) -> &str[src]

pub fn key_iv(&self) -> (Vec<u8>, Vec<u8>)[src]

Trait Implementations

impl Clone for FileCrypto[src]

impl Copy for FileCrypto[src]

impl Debug for FileCrypto[src]

impl Default for FileCrypto[src]

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

impl From<AesGcm128Key> for FileCrypto[src]

impl From<AesGcm256Key> for FileCrypto[src]

impl From<TeaclaveFile128Key> for FileCrypto[src]

impl PartialEq<FileCrypto> for FileCrypto[src]

impl Serialize for FileCrypto[src]

impl StructuralPartialEq for FileCrypto[src]

Auto Trait Implementations

impl RefUnwindSafe for FileCrypto

impl Send for FileCrypto

impl Sync for FileCrypto

impl Unpin for FileCrypto

impl UnwindSafe for FileCrypto

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> 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]