2019-08-31 10:49:28 +0200 | asked a question | How to define a polynomial function over a nonprime finite field What is the correct way to construct polynomial functions over nonprime finite fields? Here is the code I have come up with. Why is it treating P as a polynomial GF(3)->GF(3) instead of GF(27)->GF(27)? Also, is there something wrong with my understanding of the trace function? It seems to be true that the trace of GF(27) over GF(3) is supposed to be Tr(x)= x^9 + x^3 + x, but then Tr(1)=3 which isn't an element of GF(3). |