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!