To the best of my understanding, performing multiplication over finite-field elements looks like:
- Multiply the elements together in their polynomial representation; and then
- if the resulting polynomial is too large to fit in the group, take the remainder upon dividing by some reducing polynomial.
For example, for GCM-AES we do multiplications over $\text{GF}(2^{128})$ with reducing polynomial $x^{128} + x^7 + x^2 + x + 1$. However, the largest polynomial that could exist in $\text{GF}(2^{128})$ is $x^{127} + x^{126} + x^{125} + ... + x^2 + x + 1$. Then, my problem is that there are some polynomials that fit 'in between' the largest field element and the reducing polynomial, so there are some cases for multiplication that wouldn't end up resulting in field elements. I am sure this is somehow avoided, but I don't see immediately how.
How do we treat the result of multiplication if, after modulo the reducing polynomial, the result is still larger than the largest group element?
EDIT: To pose an example, one such element might be $x^{128} + x^7 + x^2 + x$, so one short of the modulus. This means that the number produced by the 'initial' step of the multiplication would have been $p(x) \cdot \left( x^{128} + x^7 + x^2 + x + 1 \right) + x^{128} + x^7 + x^2 + x$.
Taking the simplest case of $p(x) = 1$ would give (what seems to me to be, anyway) a nonsense result because the $x^{128}$ terms cancel and we get a result well within the field.
Taking instead $p(x) = x$ means that the result of the multiplication would have been $x^{129} + x^{128} + x^8 + x^7 + x^3$. This can then be factored into $x^3 \cdot \left(x^{126} + x^{125} + x^5 + x^4 + 1 \right)$, both of which are now field elements, but which, by my maths above, seem to multiply to give an element which ends up 'outside' the field after taking the remainder with respect to the reducing polynomial. So, how is this resolved?
My apologies in advance if I've made an arithmetic error, but I hope this example at least makes clear what I'm trying to get at, that there seems to be some 'space' between the number of field elements and the number of polynomials that exist modulo the reducing polynomials, and that I don't know how to deal with these. Thanks!