pub trait BlockCipher {
type Block: AsRef<[u8]> + AsMut<[u8]> + Default + Copy;
type BlockByteLen: Positive;
// Required method
fn encrypt(&self, inp: &Self::Block) -> Self::Block;
}Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".