ArticleslgStudy

science

Trivium (cipher)

Trivium (cipher) is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Trivium (cipher) rather than just read about it. In short: Trivium is a synchronous stream cipher designed to provide a flexible trade-off between speed and gate count in hardware, and reasonably efficient software implementation. Trivium was submitted to the Profile II (hardware) of the eSTREAM competition by its authors, Christophe De Cannière and Bart Preneel, and has been selected as part of the portfolio for low area hardware ciphers (Profile 2) by the eSTREAM project.

Trivium (cipher) — main illustration
Trivium (cipher) — illustration

Key takeaways

  • Trivium (cipher) belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Trivium (cipher) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Trivium (cipher) from memory before moving on to harder problems.

Reference excerpt

Trivium is a synchronous stream cipher designed to provide a flexible trade-off between speed and gate count in hardware, and reasonably efficient software implementation. Trivium was submitted to the Profile II (hardware) of the eSTREAM competition by its authors, Christophe De Cannière and Bart Preneel, and has been selected as part of the portfolio for low area hardware ciphers (Profile 2) by the eSTREAM project. It is not patented and has been specified as an International Standard under ISO/IEC 29192-3. It generates up to 264 bits of output from an 80-bit key and an 80-bit IV. It is the simplest eSTREAM entrant; while it shows remarkable resistance to cryptanalysis for its simplicity and performance, recent attacks leave the security margin looking rather slim.

Description Trivium's 288-bit internal state consists of three shift registers of different lengths. At each round, a bit is shifted into each of the three shift registers using a non-linear combination of taps from that and one other register; one bit of output is produced. To initialize the cipher, the key and IV are written into two of the shift registers, with the remaining bits starting in a fixed pattern; the cipher state is then updated 4 × 288 = 1152 times, so that every bit of the internal state depends on every bit of the key and of the IV in a complex nonlinear way. No taps appear on the first 65 bits of each shift register, so each novel state bit is not used until at least 65 rounds after it is generated. This is the key to Trivium's software performance and flexibility in hardware.

Specification Trivium may be specified very concisely using three recursive equations. Each variable is an element of GF(2); they can be represented as bits, with "+" being XOR and "•" being AND.

ai = ci−66 + ci−111 + ci−110 • ci−109 + ai−69 bi = ai−66 + ai−93 + ai−92 • ai−91 + bi−78 ci = bi−69 + bi−84 + bi−83 • bi−82 + ci−87 The output bits r0 ... r264−1 are then generated by

ri = ci−66 + ci−111 + ai−66 + ai−93 + bi−69 + bi−84 Given an 80-bit key k0 ... k79 and an l-bit IV v0 ... vl−1 (where 0 ≤ l < 80), Trivium is initialized as follows:

(a−1245 ... a−1153) = (0, 0 ... 0, k0 ... k79) (b−1236 ... b−1153) = (0, 0 ... 0, v0 ... vl−1) (c−1263 ... c−1153) = (1, 1, 1, 0, 0 ... 0) The large negative indices on the initial values reflect the 1152 steps that must take place before output is produced. To map a stream of bits r to a stream of bytes R, we use the LSb-first mapping Ri = Σj=0, ..., 7 2j r8i+j.

Performance A straightforward hardware implementation of Trivium would use 3488 logic gates and produce one bit per clock cycle. However, because each state bit is not used for at least 64 rounds, 64 state bits can be generated in parallel at a higher hardware cost of 5504 gates. Different tradeoffs between speed and area are also possible. The same property allows an efficient bitslice implementation in software; performance testing by eSTREAM give bulk encryption speeds of around 4 cycles/byte on some x86 platforms, which compares well to the 19 cycles/byte of the AES reference implementation on the same platform.

Security [Trivium] was designed as an exercise in exploring how far a stream cipher can be simplified without sacrificing its security, speed or flexibility. While simple designs are more likely to be vulnerable to simple, and possibly devastating, attacks (which is why we strongly discourage the use of Trivium at this stage), they certainly inspire more confidence than complex schemes, if they survive a long period of public scrutiny despite their simplicity. As of 2025, no cryptanalytic attacks better than brute-force attack are known, but several attacks come close. The best published practical cube attacks recover the key of reduced-round Trivium with up to 832 of its 1,152 initialization rounds, with a reported time complexity not exceeding (2^{50}). Attacks reaching 978 rounds for key recovery and 1,108 rounds for distinguishing apply only in a weak-key setting; no comparable attack is known against the full cipher. Previous cube attacks required 268 steps to break a variant of Trivium where the number of initialization rounds is reduced to 799. Other authors speculated that these techniques could lead to a break for 1100 initialisation rounds, or "maybe even the original cipher". This builds on an attack due to Michael Vielhaber that breaks 576 initialization rounds in only 212.3 steps. Another attack recovers the internal state (and thus the key) of the full cipher in around 289.5 steps (where each step is roughly the cost of a single trial in exhaustive search). Reduced variants of Trivium using the same design principles have been broken using an equation-solving technique. These attacks improve on the well-known time-space tradeoff attack on stream ciphers, which with Trivium's 288-bit internal state would take 2144 steps, and show that a variant on Trivium which made no change except to increase the key length beyond the 80 bits mandated by eSTREAM Profile 2 would not be secure. Using optimised solving strategy, it is further possible to reduce the state-recovery complexity to 2132 steps. A detailed justification of the design of Trivium is given in a paper "A Stream Cipher Construction Inspired by Block Cipher Design Principles".

References

References Zhang, Min; Sun, Yao (2025) [2024]. "A New Practical Cube Attack via Recovering Numerous Superpolys". IACR Transactions on Symmetric Cryptology. 2024 (4): 38–63. doi:10.46586/tosc.v2024.i4.38-63. Ye, Chen-Dong; Tian, Tian; Zeng, Fan-Yang (2021). "The MILP-aided conditional differential attack and its application to Trivium". Designs, Codes and Cryptography. 89 (2): 317–339. doi:10.1007/s10623-020-00822-y.

External links eSTREAM page on Trivium Archived 2015-09-23 at the Wayback Machine eSTREAM Implementation Archived 2015-09-20 at the Wayback Machine

Illustrations

Trivium (cipher): Structure of Trivium
Structure of Trivium

Worked examples

Example 1 — a first encounter with Trivium (cipher)

Start with the simplest possible case. Write down what Trivium (cipher) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Trivium (cipher) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Trivium (cipher) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Trivium (cipher)

In research
Trivium (cipher) appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Trivium (cipher) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Trivium (cipher) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Stream ciphers, so understanding it makes those chapters shorter.
In everyday life
Look for Trivium (cipher) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Trivium (cipher)” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Trivium (cipher) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Trivium (cipher) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Trivium (cipher) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Trivium (cipher) in simple terms?

Trivium is a synchronous stream cipher designed to provide a flexible trade-off between speed and gate count in hardware, and reasonably efficient software implementation. Trivium was submitted to the Profile II (hardware) of the eSTREAM competition by its authors, Christophe De Cannière and Bart P…

Why does Trivium (cipher) matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Trivium (cipher)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Trivium (cipher).

Tags

  • Stream ciphers

Keep exploring