pub trait NewStream<A>: StreamPrimitive<A>where
A: AeadInPlace,
A::NonceSize: Sub<Self::NonceOverhead>,
NonceSize<A, Self>: ArrayLength<u8>,{
// Required method
fn from_aead(aead: A, nonce: &Nonce<A, Self>) -> Self;
// Provided method
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.