Trait aes_gcm::NewAead[][src]

pub trait NewAead {
    type KeySize: ArrayLength<u8>;
    fn new(key: &GenericArray<u8, Self::KeySize>) -> Self;

    fn new_varkey(key: &[u8]) -> Result<Self, Error> { ... }
}
Expand description

Instantiate either a stateless Aead or stateful AeadMut algorithm.

Associated Types

The size of the key array required by this algorithm.

Required methods

Create a new AEAD instance with the given key.

Provided methods

Create new AEAD instance from key with variable size.

Default implementation will accept only keys with length equal to KeySize.

Implementors