pub trait AesCipher:
BlockCipherEncrypt
+ KeyInit
+ Clone {
type Dec: BlockCipherDecrypt + KeyInit;
const KEY_LEN: usize;
// Required method
fn new_dec(key: &[u8]) -> Self::Dec;
}Expand description
Trait for AES ciphers used in HCTR2.
Required Associated Constants§
Required Associated Types§
type Dec: BlockCipherDecrypt + KeyInit
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.