Ask Your Question
0

Roots in a polynomial over $GF(2^8)$?

asked 2013-07-16 12:50:49 +0200

Gustavo Banegas gravatar image

updated 2015-01-13 18:17:06 +0200

FrédéricC gravatar image

Hi, I have a polynomial $x^8+x^7+x^5+x^3+1$ and I want to find the roots of this polynomial over $GF(2^8)$? In the paper of Patrick Ekdahl and Thomas Johansson about a new version of SNOW they used this roots ($\beta^{23}, \beta^{48}, \beta^{239}$ and $\beta^{245}$, but I want all roots for this polynomial.

Thanks

edit retag flag offensive close merge delete

4 Answers

Sort by » oldest newest most voted
2

answered 2013-07-16 19:54:41 +0200

Luca gravatar image
sage: _.<x> = GF(2^8, 'a')[]       
sage: P = x^8 + x^7 + x^5 + x^3 + 1
sage: P.roots()
[(a^5 + a + 1, 1),
 (a^6 + a^5 + a^4 + 1, 1),
 (a^6 + a^5 + a^4 + a^2 + a, 1),
 (a^6 + a^5 + a^4 + a^3 + a, 1),
 (a^7 + a^5 + a^2 + 1, 1),
 (a^7 + a^5 + a^3 + a, 1),
 (a^7 + a^5 + a^4, 1),
 (a^7 + a^6 + a^5, 1)]
edit flag offensive delete link more
1

answered 2013-07-16 16:54:52 +0200

Volker Braun gravatar image
sage: AA.<x> = AffineSpace(GF(2^8, 'a'), 1)
sage: S = AA.subscheme(x^8 + x^7 + x^5 + x^3 + 1)
sage: S.rational_points()
[(a^5 + a + 1),
 (a^6 + a^5 + a^4 + 1),
 (a^6 + a^5 + a^4 + a^2 + a),
 (a^6 + a^5 + a^4 + a^3 + a),
 (a^7 + a^5 + a^2 + 1),
 (a^7 + a^5 + a^3 + a),
 (a^7 + a^5 + a^4),
 (a^7 + a^6 + a^5)]
edit flag offensive delete link more
0

answered 2017-03-01 19:45:26 +0200

dan_fulea gravatar image

If $b$ is a root (in some field of characteristic two) of a polynomial defined over the prime field GF(2), then $b$, $b^2 = F(b)$, $b^4=F^2(b), b^8=F^3(b)$, and so on are also roots. Here, $F$ is the Frobenius map.

So if $\beta^{23}$ is in the list, then $F(\beta^{23})=(\beta^{23})^2=\beta^{46}$ should be also on the list. So i suspected some typo first. At some point, i decided to look for the cited data. The net gave me an article with the following data:

<<< To be more precise, the feedback polynomial of SNOW 2.0 is given by $$\pi(x) = \alpha x^{16}+x^{14} + \alpha^{-1} x^5 +1\in F_{2^{32}}[x]\ ,$$ where $\alpha$ is a root of $x^4 + \beta^{23}x^3 + \beta^{245}x^2 +\beta^{48} x +\beta^{239}\in F_{2^8}[x]$,

and $\beta$ is a root of $x^8 + x^7 + x^5 + x^3 + 1\in\mathbb{F}_{2}[x]$ .>>>

In the wish from the post we do not have the information, that $\beta$ is a root of $P$.

But we have the other information, that $\beta^{23}, \beta^{245},\beta^{48},\beta^{239}$ are roots of $P$.

This is false, since with $\beta$ we have the other roots $\beta^n$ for n among

sage: print [ 23*2^k % 255 for k in [0..7] ]
[23, 46, 92, 184, 113, 226, 197, 139]

And we miss 245, 48, 239.

edit flag offensive delete link more
0

answered 2013-07-16 21:01:57 +0200

Gustavo Banegas gravatar image

updated 2013-07-16 21:12:29 +0200

Thanks, I need for this and for others polynomials. But Can the sage asnwer like $\beta^n$ ?

edit flag offensive delete link more

Comments

Whats beta? A multiplicative unit? That is not unique, and Sage doesn't know your choice. You can solve the discrete log with beta.log(a^5 + a + 1), say.

Volker Braun gravatar imageVolker Braun ( 2013-07-16 23:09:46 +0200 )edit

Thanks, I will be this and see what is the result.

Gustavo Banegas gravatar imageGustavo Banegas ( 2013-07-17 11:08:16 +0200 )edit

Hi, the beta is the exponential form of the root over $GF(2^8)$, Sage print the exponential form?

Gustavo Banegas gravatar imageGustavo Banegas ( 2013-07-17 17:02:14 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-07-16 12:50:49 +0200

Seen: 1,282 times

Last updated: Mar 01 '17