# I calculated multiplicative inverses of my polynomial in AES using the EEA. How do I find the multiplicative inverses using Fermat's Little Theorem? [duplicate]

How do we find multiplicative inverses using Fermat's Little Theorem? I have the basic understanding of how we compute inverses of numbers, but can someone help with calculating inverses of polynomials in $$GF(2^8)$$
• Fermat's little theorem is that $a^p = a$ in $\operatorname{GF}(p)$ for prime $p$, or equivalently $F(a) = a$ where $F(a) = a^p$ is the Frobenius map. Obviously $F$ is not the identity on $\operatorname{GF}(p^k)$ for $k > 1$, but is there another relation involving $F$ that you could think of as an extension of Fermat's little theorem to finite field extensions? – Squeamish Ossifrage Mar 11 at 22:33