[]Enum teaclave_client_sdk::FileCrypto

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

Variants

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

Implementations

impl FileCrypto

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

pub fn schema(&self) -> &str

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

Trait Implementations

impl Clone for FileCrypto

impl Copy for FileCrypto

impl Debug for FileCrypto

impl Default for FileCrypto

impl<'de> Deserialize<'de> for FileCrypto

impl From<AesGcm128Key> for FileCrypto

impl From<AesGcm256Key> for FileCrypto

impl From<TeaclaveFile128Key> for FileCrypto

impl PartialEq<FileCrypto> for FileCrypto

impl Serialize for FileCrypto

impl StructuralPartialEq for FileCrypto

impl TryFrom<FileCryptoInfo> for FileCrypto

type Error = Error

The type returned in the event of a conversion error.

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

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

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

impl<T> IntoRequest<T> for T

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