Galois Fields Implementations of arithmetic operations of polynomials with coefficients from GF(2). Implemented are also: Check if a polynomial is primitive. Generate the finite field GF(2^q) given a primitive polynomial of degree q.