logo
pub trait NewStream<A>: StreamPrimitive<A> where
    A: AeadInPlace,
    A::NonceSize: Sub<Self::NonceOverhead>,
    NonceSize<A, Self>: ArrayLength<u8>, 
{ fn from_aead(aead: A, nonce: &Nonce<A, Self>) -> Self; fn new(key: &Key<A>, nonce: &Nonce<A, Self>) -> Self
    where
        A: KeyInit,
        Self: Sized
, { ... } }
Available on crate feature stream only.
Expand description

Create a new STREAM from the provided AEAD.

Required Methods

Create a new STREAM from the given AEAD cipher.

Provided Methods

Create a new STREAM with the given key and nonce.

Implementors