So, I am trying to make a program in Magma which returns the value table of a given function F over a field $GF(2^n)$. To do so I need a irreducible polyomial. For example, I've considered $GF(2^3)$ and the irreducible polynomial $p(x)=x^3+x+1$.
My program started like this:
F<a>:=GF(2^3);
for i in F do
i mod a^3+a+1;
end for;
The 'mod' apperantly only works with integers, is there a polynomial version for this?
I managed to make the program.