I'm factoring polynomials in $GF(2^8)$ with modulo polynomial $m = 2^8 + 2^4 + 2^3 + 2^1 + 2^0$
In particular, I factored
a = 0x49 = $$2^6 + 2^3 + 2^0 = 2^1 * (2^1 + 2^0)^6 * (2^2 + 2^1 + 2^0) * (2^4 + 2^1 + 2^0) * (2^3 + 2^1 + 2^0) \bmod{m}$$
b = 0x64 = $$2^6 + 2^5 + 2^2 = (2^1)^3 * (2^1 + 2^0) * (2^3 + 2^1 + 2^0) * (2^3 + 2^2 + 2^0) \bmod{m}$$
these numbers are multiplicative inverses and I can calculate directly using long division that $ab\bmod{m} = 2^0$.
I assume GCD should also be $1$, i.e. $2^0$.
Now I want to calculate GCD using just factored irreducible polynomials.
I know that for integers GCD equals the product of prime numbers (including their powers) present in both factorization, does it still hold here?
$gcd = 2^1 * (2^1 + 2^0) * (2^3 + 2^1 + 2^0) \bmod{m} = 2^5 + 2^4 + 2^3 + 2^1$
Can anyone please tell me where I am mistaken?
Thank you!
A fundamental problem is that while there are primes in the ring of polynomials $GF(2)[x]$ (where you can also run the (extended) Euclidean algorithm, there are no primes in the field $GF(2^8)=GF(2)[x]/\langle m(x)\rangle$. The same holds in all fields. Technically, all the non-zero elements of a field are units, and hence divisible by each other.
This manifests in many ways (reverting to the notation that $2^k$ is the residue class of $x^k$ modulo $m(x)$):
It may be useful to look at the analogy of the residue class ring $\Bbb{Z}_{17}$ of integers modulo the prime $17$:
I'm afraid that...