We know that the AES S-box is generated by determining the multiplicative inverse of a given number in GF$(2^8)$. Considering this information, we have to explain:
what is $\{07\}^{-1}$ in GF$(2^8)$? This problem must be solved with Extended Euclidean algorithm.
Could someone please explain how to do this with a step by step example?
0x1b
. Then the inverse of $x\ne 0$ isx'=PowerTab[255-LogTab[x]]
. With this you find, that the inverse of0x07
is0xD1
. The tables can also be used for fast multiplication and division in $GF(2^8).$ – gammatester Nov 04 '18 at 19:090x1b
a generator. I realize that when doing field arithmetic you will XOR with0x11b
whenever you get an overflow to bit in position $8$, but I wouldn't call0x1b
a generator because of this. The multiplicative group is generated by0x02
, i.e. the coset $x+\langle p(x)\rangle$ (= the base of thet discrete log table). But, if that's standard AES-slang, fine :-) Shrug. – Jyrki Lahtonen Nov 05 '18 at 06:29