← Cryptography guide

K021 / Symmetric ciphers (block and stream)

SIMON and SPECK

Simon Speck ciphers NSA · Survey date 2026-12-05

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.

Scope: Limited implementation

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.

Open lab →

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

Examples are illustrative; they are not execution-tested implementations or operational recommendations.

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.

Diagram source ↗

References