[][src]Struct teaclave_crypto::AesGcm128Key

pub struct AesGcm128Key {
    pub key: [u8; 16],
    pub iv: [u8; 12],


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


impl AesGcm128Key[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 AesGcm128Key[src]

impl Copy for AesGcm128Key[src]

impl Debug for AesGcm128Key[src]

impl Default for AesGcm128Key[src]

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

impl PartialEq<AesGcm128Key> for AesGcm128Key[src]

impl Serialize for AesGcm128Key[src]

impl StructuralPartialEq for AesGcm128Key[src]

Auto Trait Implementations

impl RefUnwindSafe for AesGcm128Key

impl Send for AesGcm128Key

impl Sync for AesGcm128Key

impl Unpin for AesGcm128Key

impl UnwindSafe for AesGcm128Key

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 

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

impl<T, U> Into<U> for T where
    U: From<T>, 

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

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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