Grain 128a
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. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.
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. The cipher supports two modes of operation: with or without authentication, which is configured via the supplied IV_0 such that if IV_0=1 then authentication of the message is enabled, and if IV_0=0 authentication of the message is disabled. 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} 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: b_{i+128}=s_i+b_{i}+b_{i+26}+b_{i+56}+b_{i+91}+b_{i+96}+b_{i+3}b_{i+67}+b_{i+11}b_{i+13}+b_{i+17}b_{i+18}+b_{i+27}b_{i+59}+b_{i+40}b_{i+48}+b_{i+61}b_{i+65}+b_{i+68}b_{i+84}+b_{i+88}b_{i+92}b_{i+93}b_{i+95}+b_{i+22}b_{i+24}b_{i+25}+b_{i+70}b_{i+78}b_{i+82} s_{i+128}=s_i+s_{i+7}+s_{i+38}+s_{i+70}+s_{i+81}+s_{i+96} The pre-output stream ( y ) is defined as: y_i=h(x)+s_{i+93}+b_{i+2}+b_{i+15}+b_{i+36}+b_{i+45}+b_{i+64}+b_{i+73}+b_{i+89} s_i = IV_i for 0 \leq i \leq 95 s_i = 1 for 96 \leq i \leq 126 s_{127} = 0 The last 0 bit ensures that similar key-IV pairs do not produce shifted versions of each other. The NLFSR is initialised by copying the entire 128 bit key ( k ) into the NLFSR: b_i = k_i for 0 \leq i \leq 127 z_i = y_{2w+2i} If authentication is disabled: z_i = y_i Grain 128a supports tags of size w up to 32 bit, to do this 2 registers of size w is used, a shift register( r ) and an accumulator( a ). To create a tag of a message m where L is the length of m+1 as we have to set m_L = 1 to ensure that i.e. m1 = 1 and m2 = 10 has different tags, and also making it impossible to generate a tag that completely ignores the input from the shift register after initialisation. For each bit 0 \leq j \leq 31 in the accumulator we at time 0 \leq i \leq L we denounce a bit in the accumulator as a_{i}^{j} . r_i = y_{i+31} for 0\leq i \leq 31 Accumulator: a_0^j = y_j for 0 \leq j \leq 31 r_{i+31} = y_{64+2i+1} Accumulator: a_{i+1}^j = a_i^j + m_i r_{i+j} for 0 \leq i \leq L t_i = a_{L+1}^i for 0 \leq i \leq 31
Cite this
"Grain 128a". 1711822637. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1216396811 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy