[][src]Struct teaclave_crypto::AesGcm256Key

pub struct AesGcm256Key {
    pub key: [u8; 32],
    pub iv: [u8; 12],
}

Fields

key: [u8; 32]iv: [u8; 12]

Methods

impl AesGcm256Key[src]

pub const SCHEMA: &'static str[src]

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

pub fn from_hex(in_key: impl AsRef<str>, in_iv: impl AsRef<str>) -> Result<Self>[src]

pub fn random() -> Self[src]

pub fn decrypt(&self, in_out: &mut Vec<u8>) -> Result<[u8; 16]>[src]

pub fn encrypt(&self, in_out: &mut Vec<u8>) -> Result<[u8; 16]>[src]

Trait Implementations

impl Clone for AesGcm256Key[src]

impl Copy for AesGcm256Key[src]

impl Debug for AesGcm256Key[src]

impl Default for AesGcm256Key[src]

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

impl PartialEq<AesGcm256Key> for AesGcm256Key[src]

impl Serialize for AesGcm256Key[src]

impl StructuralPartialEq for AesGcm256Key[src]

Auto Trait Implementations

impl RefUnwindSafe for AesGcm256Key

impl Send for AesGcm256Key

impl Sync for AesGcm256Key

impl Unpin for AesGcm256Key

impl UnwindSafe for AesGcm256Key

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]