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.

Create a new STREAM from the provided AEAD.

Required methods

fn from_aead(aead: A, nonce: &Nonce<A, Self>) -> Self[src]

Create a new STREAM from the given AEAD cipher.

Loading content...

Provided methods

fn new(key: &Key<A>, nonce: &Nonce<A, Self>) -> Self where
    A: NewAead,
    Self: Sized
[src]

Create a new STREAM with the given key and nonce.

Loading content...

Implementors

impl<A> NewStream<A> for StreamBE32<A> where
    A: AeadInPlace,
    A::NonceSize: Sub<U5>,
    <<A as AeadCore>::NonceSize as Sub<U5>>::Output: ArrayLength<u8>, 
[src]

impl<A> NewStream<A> for StreamLE31<A> where
    A: AeadInPlace,
    A::NonceSize: Sub<U4>,
    <<A as AeadCore>::NonceSize as Sub<U4>>::Output: ArrayLength<u8>, 
[src]

Loading content...