Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Stream ciphers hold a special place in lightweight cryptography because their internal state machines map naturally to small, fast digital circuits. Unlike block ciphers, which must process data in fixed-size chunks, stream ciphers generate a continuous keystream that can be XORed with plaintext of arbitrary length — a property that is particularly valuable in protocols with variable-length packets. ISO/IEC 29192-3 standardises lightweight stream ciphers that achieve extremely compact hardware footprints while providing at least 80-bit security.
Trivium uses a 288-bit internal state organised as three non-linear feedback shift registers (NLFSRs) of lengths 93, 84, and 111 bits. At each clock tick, the state is updated by tapping specific bit positions, feeding them through AND and XOR gates, and cycling the registers. The design is remarkable for its simplicity: the entire cipher can be described in fewer than 20 lines of C code, and a hardware implementation fits in approximately 2 600 GE — including key and IV setup logic. Each clock cycle produces one keystream bit, giving a throughput of 1 bit per cycle.
Enocoro is a family of lightweight stream ciphers also included in the standard. Enocoro-128v2 uses a 320-bit internal state and produces 64 bits of keystream per clock cycle, offering higher throughput than Trivium at the cost of a modest area increase (~3 500 GE). Enocoro was designed with a focus on resistance to time-memory-data trade-off attacks, which can be a concern for Trivium when the IV length is short.
| Parameter | Trivium | Enocoro-128v2 | Grain-128a |
|---|---|---|---|
| Internal state (bits) | 288 | 320 | 256 |
| Key size (bits) | 80 | 128 | 128 |
| Keystream per cycle | 1 bit | 64 bits | 1 bit |
| Gate count (GE) | ~2 600 | ~3 500 | ~2 900 |
| Setup cycles | 1 152 | 640 | 256 |
| Target security | 80-bit | 128-bit | 128-bit |
Stream ciphers operate in a synchronous mode by default — the keystream depends only on the key and IV, not on the plaintext or ciphertext. This makes them naturally parallelisable and suitable for pipelined hardware. However, it also means that bit errors in transmission propagate 1:1 (no error extension), which is beneficial in noisy wireless channels. The downside: there is no built-in authentication. Engineers must combine a stream cipher with a separate MAC (such as those in ISO/IEC 29192-6) to provide authenticated encryption.
The standard mandates that implementations document resistance to simple power analysis (SPA) and fault injection. For Trivium, the linear feedback structure makes certain fault-injection attacks feasible if the state can be frozen. Recommended countermeasures include dual-rail logic, temporal redundancy, and state-masking techniques that add approximately 15–30 % to the area cost.