pub trait SmallCryptor<T, const N: usize> {
// Required methods
fn move_to_next_key(&mut self);
fn encrypt_unit(&mut self, message: T) -> T;
fn decrypt_unit(&mut self, cipher: T) -> T;
fn turn_inverse(&mut self);
fn turn_encryptor(&mut self);
fn turn_decryptor(&mut self);
}Expand description
SmallCryptor<u128, 16> and SmallCryptor<u64, 8> are the traits for the components for BigCryptor128 and BigCryptor64, respectively.