Generic and optimized implementations of operations for elements in Galois fields.