Struct speck::Key
[−]
[src]
pub struct Key { /* fields omitted */ }
A precomputed key.
This precomputes a key schedule, which can then be used for both encrypting and decrypting messages.
Methods
impl Key
[src]
fn new(k: u128) -> Key
Generate a new key from some seed.
fn encrypt_block(&self, m: u128) -> u128
Encrypt a 128-bit block with this key.
fn decrypt_block(&self, c: u128) -> u128
Decrypt a 128-bit block with this key.