Trait aead::stream::NewStream [−][src]
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: NewAead,
Self: Sized,
{ ... }
}
This is supported on crate feature
stream
only.Expand description
Create a new STREAM from the provided AEAD.