AesProvider

Trait AesProvider 

Source
pub trait AesProvider {
    type Cipher: AesCipher;

    // Required method
    fn new_cipher(&self, key: &[u8; 16]) -> Self::Cipher;
}
Expand description

Factory for keyed AES cipher instances.

Required Associated Types§

Source

type Cipher: AesCipher

Concrete cipher type returned by new_cipher.

Required Methods§

Source

fn new_cipher(&self, key: &[u8; 16]) -> Self::Cipher

Create a new AES-128 cipher using key.

Implementors§