ArticleslgStudy

science

Grain 128a

Grain 128a 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 Grain 128a rather than just read about it. In short: The Grain 128a stream cipher was first purposed at Symmetric Key Encryption Workshop (SKEW) in 2011 as an improvement of the predecessor Grain 128, which added security enhancements and optional message authentication using the Encrypt & MAC approach. One of the important features of the Grain family is that the throughput can be increased at the expense of additional hardware.

Grain 128a — main illustration
Grain 128a — illustration

Key takeaways

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

Reference excerpt

The Grain 128a stream cipher was first purposed at Symmetric Key Encryption Workshop (SKEW) in 2011 as an improvement of the predecessor Grain 128, which added security enhancements and optional message authentication using the Encrypt & MAC approach. One of the important features of the Grain family is that the throughput can be increased at the expense of additional hardware. Grain 128a is designed by Martin Ågren, Martin Hell, Thomas Johansson and Willi Meier.

Description of the cipher

Grain 128a consists of two large parts: Pre-output function and MAC. The pre-output function has an internal state size of 256 bits, consisting of two registers of size 128 bit: NLFSR and LFSR. The MAC supports variable tag lengths w such that 0 < w ≤ 32 {\displaystyle 0<w\leq 32} . The cipher uses a 128 bit key. The cipher supports two modes of operation: with or without authentication, which is configured via the supplied I V 0 {\displaystyle IV_{0}} such that if I V 0 = 1 {\displaystyle IV_{0}=1} then authentication of the message is enabled, and if I V 0 = 0 {\displaystyle IV_{0}=0} authentication of the message is disabled.

Pre-output function The pre-output function consists of two registers of size 128 bit: NLFSR ( b {\displaystyle b} ) and LFSR ( s {\displaystyle s} ) along with 2 feedback polynomials f {\displaystyle f} and g {\displaystyle g} and a boolean function h {\displaystyle h} .

f ( x ) = 1 + x 32 + x 47 + x 58 + x 90 + x 121 + x 128 {\displaystyle f(x)=1+x^{32}+x^{47}+x^{58}+x^{90}+x^{121}+x^{128}}

g ( x ) = 1 + x 32 + x 37 + x 72 + x 102 + x 128 + x 44 x 60 + x 61 x 125 + x 63 x 67 x 69 x 101 + x 80 x 88 + x 110 x 111 + x 115 x 117 + x 46 x 50 x 58 + x 103 x 104 x 106 + x 33 x 35 x 36 x 40 {\displaystyle g(x)=1+x^{32}+x^{37}+x^{72}+x^{102}+x^{128}+x^{44}x^{60}+x^{61}x^{125}+x^{63}x^{67}x^{69}x^{101}+x^{80}x^{88}+x^{110}x^{111}+x^{115}x^{117}+x^{46}x^{50}x^{58}+x^{103}x^{104}x^{106}+x^{33}x^{35}x^{36}x^{40}}

h ( x ) = b i + 12 s i + 8 + s i + 13 s i + 20 + b i + 95 s i + 42 + s i + 60 s i + 79 + b i + 12 b i + 95 s i + 94 {\displaystyle h(x)=b_{i+12}s_{i+8}+s_{i+13}s_{i+20}+b_{i+95}s_{i+42}+s_{i+60}s_{i+79}+b_{i+12}b_{i+95}s_{i+94}}

In addition to the feedback polynomials, the update functions for the NLFSR and the LFSR are:

… excerpt ends here. Continue reading the full article.

Illustrations

Grain 128a: Diagram showing the start up procedure of the pre-output which feeds the pre-output stream back into the functions 
  
    
      
        g
      
    
    {\displaystyle g}
  
 and 
  
    
      
        f
      
    
    {\displaystyle f}
Diagram showing the start up procedure of the pre-output which feeds the pre-output stream back into the functions g {\displaystyle g} and f {\displaystyle f}
Grain 128a: View of grain 128a
View of grain 128a

Worked examples

Example 1 — a first encounter with Grain 128a

Start with the simplest possible case. Write down what Grain 128a 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 Grain 128a 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 Grain 128a 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 Grain 128a

In research
Grain 128a 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 Grain 128a 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
Grain 128a 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 Grain 128a 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 “Grain 128a” →

Affiliate

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

How to study Grain 128a in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Grain 128a 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 Grain 128a out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Grain 128a in simple terms?

The Grain 128a stream cipher was first purposed at Symmetric Key Encryption Workshop (SKEW) in 2011 as an improvement of the predecessor Grain 128, which added security enhancements and optional message authentication using the Encrypt & MAC approach. One of the important features of the Grain fami…

Why does Grain 128a 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 Grain 128a?

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 Grain 128a.

Tags

  • Stream ciphers

Keep exploring