[][src]Struct miscreant::SivAead

pub struct SivAead<C, M> where
    C: NewStreamCipher<NonceSize = U16> + SyncStreamCipher,
    M: Mac<OutputSize = U16>, 
{ /* fields omitted */ }

The SivAead type wraps the more powerful Siv interface in a more commonly used Authenticated Encryption with Associated Data (AEAD) API, which accepts a key, nonce, and associated data when encrypting/decrypting.

Trait Implementations

impl<C, M> Aead for SivAead<C, M> where
    C: NewStreamCipher<NonceSize = U16> + SyncStreamCipher,
    M: Mac<OutputSize = U16>,
    C::KeySize: Add,
    <C::KeySize as Add>::Output: ArrayLength<u8>, 
[src]

type KeySize = <C as NewStreamCipher>::KeySize

Size of a key associated with this AEAD algorithm

type TagSize = U16

Size of a MAC tag

Auto Trait Implementations

impl<C, M> Unpin for SivAead<C, M> where
    M: Unpin,
    <<C as NewStreamCipher>::KeySize as ArrayLength<u8>>::ArrayType: Unpin

impl<C, M> Send for SivAead<C, M> where
    M: Send,
    <C as NewStreamCipher>::KeySize: ArrayLength<u8>, 

impl<C, M> Sync for SivAead<C, M> where
    M: Sync,
    <C as NewStreamCipher>::KeySize: ArrayLength<u8>, 

impl<C, M> UnwindSafe for SivAead<C, M> where
    M: UnwindSafe,
    <<C as NewStreamCipher>::KeySize as ArrayLength<u8>>::ArrayType: UnwindSafe

impl<C, M> RefUnwindSafe for SivAead<C, M> where
    M: RefUnwindSafe,
    <<C as NewStreamCipher>::KeySize as ArrayLength<u8>>::ArrayType: RefUnwindSafe

Blanket Implementations

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

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

type Error = !

The type returned in the event of a conversion error.

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

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<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self