speck_rs/
cipher_modes.rs

1/// A trait for the Electronic Codebook (ECB) ciphermode.
2/// WARNING: ECB is generally unsafe to use because it lacks diffusion.
3/// See: https://blog.filippo.io/the-ecb-penguin/ for details.
4///
5/// TODO: Implement other ciphermodes
6pub trait ECB {
7    fn encrypt(&self, plaintext: &u128) -> u128;
8    fn decrypt(&self, ciphertext: &u128) -> u128;
9}