speck
pub struct Key { /* fields omitted */ }
A key, which can be used to encrypt and decrypt messages.
impl Key
fn new(k1: u64, k2: u64) -> Key
Generate a new key from some seed.
fn encrypt_block(&self, (m1, m2): (u64, u64)) -> (u64, u64)
Encrypt a 128-bit block with this key.
fn decrypt_block(&self, (c1, c2): (u64, u64)) -> (u64, u64)
Decrypt a 128-bit block with this key.