K021 / Symmetric ciphers (block and stream)
SIMON and SPECK
Lightweight block cipher families published by the NSA, with variants of different block and key sizes.
CRYPTOGRAPHY LAB / K021
Cryptography Lab · SIMON and SPECK
Run real computations and inspect intermediate states step by step.
Educational only. Never enter real passwords or secret keys. Computation stays in your browser; input and trace values are not sent to a server. Do not use this implementation in production.
SPECK64/128 (27 rounds; SIMON not implemented)
See the scope above for fixed examples, reduced parameters and supported variants. Standard operation names and formulas are retained.Output
Previous state
- Definition and overview
- Lightweight block cipher families published by the NSA, with variants of different block and key sizes. Source document ↗
- Classification and reversibility
- Block cipher families supporting decryption through inverse encryption operations. Source document ↗
- Key or secret requirements
- Keyed algorithms with key lengths of two, three or four times the word size. Source document ↗
- Operating principle and structure
- Simon uses AND, rotation and XOR; Speck uses addition, rotation and XOR in lightweight structures. Source document ↗
- Key size, block size and parameters
- Ten variants: 32–128-bit blocks and 64–256-bit keys. Source document ↗
- Security strength and recommendation
- NSA assesses security as corresponding to block and key sizes. Source document ↗
- Known attacks and vulnerabilities
- No known full-round attack; attacks are limited to reduced rounds. Source document ↗
- Standards and certification
- Previously rejected in ISO standardization. Source document ↗
- Typical uses
- Used in very constrained environments and IoT where AES may be unsuitable. Source document ↗
- Implementations, libraries and tools
- Implementations include 64/128-bit block variants in Crypto++ 6.1. Source document ↗
- Decryption or decoding
- Key schedules, encryption/decryption implementations and reference code are available. Source document ↗
- Advantages
- Aims for flexible, analyzable security and performance across lightweight platforms. Source document ↗
- Limitations and cautions
- Reference implementations are for research/recreation, not recommended for production; beware side channels. Source document ↗
- Distinguishing encryption, encoding and hashing
- Block encryption uses keys and inverse operations; distinguish it from hashing and encoding. Source document ↗
Practical examples
Example
Process plaintext blocks through multiple rounds using round keys derived from the key. Reverse the procedure with the same key to restore each block.
Procedure
Prepare key and schedule, input block, repeat round function, output ciphertext. Decrypt with reverse rounds or a decryption function. Base64 is a separate keyless transformation.
Scenario
Consider for ultra-light IoT sensors and tags where AES is burdensome. If regulation or standards apply, evaluate approved alternatives and modes first.
Pitfalls and alternatives
Do not use raw block ciphers alone; design modes and MAC/AEAD together. Avoid reference implementations in production; assess side channels, approval and trust. Do not confuse SIMON/SPECK with hashes or encoding.
References
- The SIMON and SPECK Families of Lightweight Block Ciphers ↗
- Galois - SIMON and SPECK in Cryptol ↗
- Simon (cipher) ↗
- The Simon and Speck Algorithms: Interactive Visualizer ↗
- Prompted by potential U.S. government requirements for lightweight ciphers, a team of designers within NSA's ↗
- Simon and Speck (block cipher) · Encryption Codex ↗
- Two NSA Algorithms Rejected by the ISO - Schneier on Security ↗
- Simon and Speck: Block Ciphers for Internet of Things ↗
- { rabeaul,djshors,jksmit,sgtreat,beweeks,lrwinge} ↗
- Implementations ↗
- Python/simonspeckciphers/Readme.md ↗