Read the Reference for Simplified AES ( S-AES )
Q1 Explain how the S- box is constructed taking example $b_0b_1b_2b_3=1010$
What I did
$\begin{bmatrix} 1 &0 &1 &1 \\ 1 & 1& 0&1 \\ 1& 1& 1 & 0\\ 0 &1 & 1& 1 \end{bmatrix} *\begin{bmatrix} b_0\\ b_1\\ b_2\\ b_3 \end{bmatrix}+\begin{bmatrix} 1\\ 0\\ 0\\ 1 \end{bmatrix}$
$= \begin{bmatrix} 1 &0 &1 &1 \\ 1 & 1& 0&1 \\ 1& 1& 1 & 0\\ 0 &1 & 1& 1 \end{bmatrix} *\begin{bmatrix} 1\\ 0\\ 1\\ 0 \end{bmatrix}+\begin{bmatrix} 1\\ 0\\ 0\\ 1 \end{bmatrix}$
$= \begin{bmatrix} (1011\times1) \bigoplus (1011\times0)\bigoplus (1011\times1)\bigoplus (1011\times0) \\ (1101\times1) \bigoplus (1101\times0)\bigoplus (1101\times1)\bigoplus (1101\times0)\\ (1110\times1) \bigoplus (1110\times0)\bigoplus (1110\times1)\bigoplus (1110\times0)\\ (0111\times1) \bigoplus (0111\times0)\bigoplus (0111\times1)\bigoplus (0111\times0) \end{bmatrix}+\begin{bmatrix} 1\\ 0\\ 0\\ 1 \end{bmatrix}$
$=\begin{bmatrix} 1011 \bigoplus 0\bigoplus 1011\bigoplus 0 \\ 1101 \bigoplus 0\bigoplus 1101\bigoplus 0\\ 1110 \bigoplus 0\bigoplus 1110\bigoplus 0\\ 0111 \bigoplus 0\bigoplus 0111\bigoplus 0 \end{bmatrix}+\begin{bmatrix} 1\\ 0\\ 0\\ 1 \end{bmatrix}$
$= \begin{bmatrix} 1011 \bigoplus1011 \\ 1101 \bigoplus1101\\ 1110 \bigoplus 1110\\ 0111\bigoplus 0111 \end{bmatrix}+\begin{bmatrix} 1\\ 0\\ 0\\ 1 \end{bmatrix}$
$=\begin{bmatrix} 0 \\ 0\\ 0\\ 0 \end{bmatrix}\bigoplus\begin{bmatrix} 1\\ 0\\ 0\\ 1 \end{bmatrix}$
Im getting S-box transformation of $1010$ as $1001$ . Where am i doing wrong ?
Q2 Also Explain the meaning of the statement and its relevance in construction of S-Box " The addition and multiplication in the equation above are being done modulo 2 (with XOR), but not in GF(16)