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§
Sourcetype Cipher: AesCipher
type Cipher: AesCipher
Concrete cipher type returned by new_cipher.
Required Methods§
Sourcefn new_cipher(&self, key: &[u8; 16]) -> Self::Cipher
fn new_cipher(&self, key: &[u8; 16]) -> Self::Cipher
Create a new AES-128 cipher using key.