Trait NewAead
aead
pub trait NewAead { type KeySize: ArrayLength<u8>; fn new(key: &Key<Self>) -> Self; }
Instantiate either a stateless Aead or stateful AeadMut algorithm.
Aead
AeadMut
type KeySize: ArrayLength<u8>
The size of the key array required by this algorithm.
fn new(key: &Key<Self>) -> Self
Construct a new stateful instance for the given key.