1. Computations in GF(4).
Let \(F=\GF(2)\) and let the field \(E=\GF(4)\) be represented as \(F[\alpha]/(\alpha^2+\alpha+1)\text{.}\)
(a)
Let \(u_0,u_1,v_0,v_1 \in F\text{.}\) Show that the product of the elements \(u_0+u_1\alpha\) and \(v_0+v_1\alpha\) in \(E\) is given by
\begin{equation*}
(u_0v_0+u_1v_1)+(u_0v_1+u_1v_0+u_1v_1)\alpha
\end{equation*}
and so, it can be computed using three additions and four multiplications in \(F\text{.}\)
Solution.
We have
\begin{align*}
(u_0+u_1\alpha)(v_0+v_1\alpha) \amp =u_0v_0 + (u_0v_1+u_1v_0)\alpha + (u_1v_1)\alpha^2 \\
\amp= u_0v_0 + (u_0v_1+u_1v_0)\alpha + (u_1v_1)(1+\alpha) \\
\amp= (u_0v_0+u_1v_1)+(u_0v_1+u_1v_0+u_1v_1)\alpha \text{.}
\end{align*}
This requires four multiplications to compute the individual terms \(u_0v_0,u_1v_1,u_0v_1\text{,}\) and \(u_1v_0\text{.}\) Then it requires three additions to combine these to find the two coefficients in the product.
(b)
Show that two elements in \(E\) be multiplied using four additions and three multiplications in \(F\text{.}\)
Solution.
Notice that
\begin{equation*}
(u_0+u_1)(v_0+v_1) = u_0v_0+u_0v_1+u_1v_0+u_1v_1
\end{equation*}
so the coefficient of \(\alpha\) in the product is \((u_0+u_1)(v_0+v_1)+u_0v_0 \text{.}\) Hence we can compute the product using the three multiplications \(u_0v_0, u_1v_1\text{,}\) and \((u_0+u_1)(v_0+v_1)\text{.}\) This then needs four additions: adding \(u_0v_0\) and \(u_1v_1\) to get the constant coefficient, the two sums \(u_0+u_1 \) and \(v_0+v_1\text{,}\) and then the final sum to get the coefficient of \(\alpha\text{.}\)
(c)
(d)
Show that the mapping \(E\to E\) defined by \(x\mapsto \alpha x^2\) can be computed only by repositioning of elements of \(F\text{,}\) without any arithmetic operations in \(F\text{.}\)
Solution.
We have
\begin{align*}
(u_0+u_1\alpha) \mapsto \amp \alpha ((u_0+u_1)+u_1\alpha)\\
\amp = u_0\alpha+u_1\alpha + u_1\alpha^2\\
\amp = u_0\alpha+u_1\alpha + u_1 +u_1\alpha\\
\amp = u_1 + u_0\alpha\text{.}
\end{align*}
So this map just flips the coefficients and needs no arithmetic operations.
