Understanding Cryptography by Christof Paar and Jan Pelzl - Chapter 4 Solutions - Ex4.5

- 2 mins

Exercise 4.5

Multiplication in : Compute in using the irreducible polynomial . What is the influence of the choice of the reduction polynomial on the computation?

  1.  
  2.  

Solution

This solution is verified as correct by the official Solutions for Odd-Numbered Questions manual.

The influence of the reduction polynonomial choice is that different irreducible polynomials will produce different results for any multiplications that require modulo reduction to bring them back into the field.

1. Since a naive multiplication would produce an order 5 polynomial, this must be reduced using the reduction polynomial. The naive multiplication produces this output:

In order to finish, we must reduce :

The effect of the reduction polynomial is that it would produce a different output given a different irreducible polynomial.

The remainder of this division is . This answer can be verified as correct (assuming my code is correct) by placing the following python code in the __main__ section of the script written for Ex4.3:

    mod = Mod2Polynomial([1, 1, 0, 0, 1])
    a = Mod2Polynomial([1, 0, 1])
    b = Mod2Polynomial([1, 0, 1, 1])

    print a * b % mod

2. No modulo reduction is required to calculate this multiplication (since the output is still in the field):


Thomas Busby

Thomas Busby

I write about computing stuff

comments powered by Disqus
rss facebook twitter github youtube mail spotify instagram linkedin google google-plus pinterest medium vimeo stackoverflow reddit quora