pub trait AuthenticatedCipherMode<C: BlockCipher>: BlockCipherMode<C> {
type Tag: AsRef<[u8]> + AsMut<[u8]> + Clone;
// Required methods
fn encrypt_with_aad(&self, plaintext: &[u8], aad: &[u8]) -> Result<Vec<u8>>;
fn decrypt_with_aad(&self, ciphertext: &[u8], aad: &[u8]) -> Result<Vec<u8>>;
// Provided method
fn tag_size() -> usize { ... }
}
Expand description
Trait for authenticated block cipher modes
Required Associated Types§
Required Methods§
Provided 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.