/// Create a new STREAM with the given key and nonce.
Create a new STREAM with the given key and nonce.
Create a new STREAM with the given key and nonce .
fn new(key: &Key<A>, nonce: &Nonce<A, Self>) -> Self
    where
        A: NewAead,
        Self: Sized,
    {
        Self::from_aead(A::new(key), nonce)
    }
fn new ( key : & Key < A > , nonce : & Nonce < A , Self > ) -> Self where A : NewAead , Self : Sized , { Self :: from_aead ( A :: new ( key ) , nonce ) }
Create a new STREAM with the given key and nonce.
Create a new STREAM with the given key and nonce .
key
&Key<A>
nonce
&Nonce<A, Self>