Evaluation of polynomial modulo in GF(2). In paragraph 1.2 on Finite Fields, the author gives an example of polynomial modulo in F_2(x)/f(x)F_2(x) as such: (1+x+x^2)(x+x^3) (mod x^4+1)=x^2+1
Mark Rosales
Answered question
2022-11-15
Evaluation of polynomial modulo in GF(2)
I'm new to this forum and I have a question about about modular arithmetics. My background is in computational chemistry and I work now as a software developer. For my work I need to learn about cryptography and I'm reading the book "Cryptography Made Simple" by Nigel P. Smart.
In paragraph 1.2 on Finite Fields, the author gives an example of polynomial modulo in as such:
However, when I do the evaluation myself I get a different result, which is confirmed by using the PolynomialMod function in Mathematica. I will show the steps I took below. First of all I expand the multiplication and evaluate modulo 2:
Then:
Which finally results in:
I put in attachment a screenshot 1 from Mathematica to confirm it matches my result. Initially I thought it was an error in the book, but in a following section the author gives another example:
Again, evaluating the expression manually I obtain:
Which is confirmed once more by Mathematica, see screenshot 2.
Does anyone know if there is a reason behind the difference in the results? Any help would be much appreciated.