[][src]Trait speck_rs::cipher_modes::ECB

pub trait ECB {
    fn encrypt(&self, plaintext: &u128) -> u128;
fn decrypt(&self, ciphertext: &u128) -> u128; }

A trait for the Electronic Codebook (ECB) ciphermode. WARNING: ECB is generally unsafe to use because it lacks diffusion. See: https://blog.filippo.io/the-ecb-penguin/ for details.

TODO: Implement other ciphermodes

Required methods

fn encrypt(&self, plaintext: &u128) -> u128

fn decrypt(&self, ciphertext: &u128) -> u128

Loading content...

Implementors

impl ECB for Speck[src]

Loading content...