Speck
Speck block cipher selector.
from oxcrypto.cipher.speck import SPECK
from oxcrypto.cipher.hazmat import decrypt_block, encrypt_block
cipher = SPECK.SPECK128_256
key = cipher.generate_key()
block = bytes(cipher.block_size)
assert decrypt_block(key, encrypt_block(key, block, cipher=cipher), cipher=cipher) == blockVariants: SPECK.SPECK32_64, SPECK.SPECK48_72, SPECK.SPECK48_96, SPECK.SPECK64_96, SPECK.SPECK64_128, SPECK.SPECK96_96, SPECK.SPECK96_144, SPECK.SPECK128_128, SPECK.SPECK128_192, SPECK.SPECK128_256.
Standard: NSA lightweight cipher (2013); rejected by ISO/IEC. Variant names are block and key size in bits.
Pass the selector as cipher= to any mode. Raw single-block functions live in oxcrypto.cipher.hazmat.
The RustCrypto block-ciphers README states that this crate is not implemented in constant time and has no published audit. oxcrypto has not verified its timing behavior.