2082 4

BIT303 · 2082 · 5 marks

Perform polynomial addition, subtraction and multiplication of 2x2 + 4x + 2 and 5x + 6 over GF(7).

Perform polynomial addition, subtraction and multiplication of $2x^2 + 4x + 2$ and $5x + 6$ over $GF(7)$. [5]

Information SecurityChapter 2: Cryptographic FoundationsFinite fields and polynomial operationsNumerical: Polynomial arithmetic over GF(7)

Polynomial Arithmetic over GF(7)

Given

$$A(x) = 2x^2 + 4x + 2$$ $$B(x) = 5x + 6$$

Field: $GF(7)$, so all coefficients reduced $\bmod 7$.

Coefficient vectors:

  • $A: [x^2, x^1, x^0] = [2, 4, 2]$
  • $B: [x^2, x^1, x^0] = [0, 5, 6]$

Solution

1. Addition $A(x) + B(x)$

DegreeABSummod 7
$x^2$2022
$x^1$4592
$x^0$2681

$$\boxed{A(x) + B(x) = 2x^2 + 2x + 1}$$

2. Subtraction $A(x) - B(x)$

DegreeABDiffmod 7
$x^2$2022
$x^1$45-16
$x^0$26-43

$$\boxed{A(x) - B(x) = 2x^2 + 6x + 3}$$

3. Multiplication $A(x) \times B(x)$

Expand: $$(2x^2 + 4x + 2)(5x + 6)$$ $$= 10x^3 + 12x^2 + 20x^2 + 24x + 10x + 12$$

Collect: $$= 10x^3 + 32x^2 + 34x + 12$$

Reduce $\bmod 7$:

DegreeRawmod 7
$x^3$103
$x^2$324
$x^1$346
$x^0$125

$$\boxed{A(x) \times B(x) = 3x^3 + 4x^2 + 6x + 5}$$

Summary

OperationResult over $GF(7)$
$A + B$$2x^2 + 2x + 1$
$A - B$$2x^2 + 6x + 3$
$A \times B$$3x^3 + 4x^2 + 6x + 5$

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.