[][src]Trait aes_gcm::NewAead

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

Instantiate either a stateless [Aead] or stateful [AeadMut] algorithm.

Associated Types

type KeySize: ArrayLength<u8>

The size of the key array required by this algorithm.

Loading content...

Required methods

fn new(key: &GenericArray<u8, Self::KeySize>) -> Self

Construct a new stateful instance for the given key.

Loading content...

Implementors

impl<B, N> NewAead for AesGcm<B, N> where
    B: BlockCipher<BlockSize = U16> + NewBlockCipher,
    B::ParBlocks: ArrayLength<Block<B>>,
    N: ArrayLength<u8>, 
[src]

type KeySize = B::KeySize

Loading content...