Function speck::encrypt_block [] [src]

pub fn encrypt_block(m: u128, k: u128) -> u128

Encrypt a block with key schedule generated on-the-go.

This works great for one-time use of a key (such as usages other than encryption), because it should never read from memory (both the message and the keys are stored in the registers). As such, this should be really fast for such usage.

If you want to reuse the key, however, it is recommended that you use the precomputed schedule provided by the Key struct.