/* * MIRACL C++ Headerfile GF2m12x.h * * AUTHOR : M. Scott * * PURPOSE : Definition of class GF2m12x - Arithmetic over the extension * field GF(2^12m) - uses irreducible polynomial x^12+x^FA+x^FB+x^FC+1 * * NOTE : The underlying field basis must be set by the modulo() routine * * WARNING: This class has been cobbled together for a specific use with * the MIRACL library. It is not complete, and may not work in other * applications * */ #ifndef GF2m12x_H #define GF2m12x_H #include #include "gf2m.h" // set field and irreducible polynomial, undefine FB and FC for trinomials #define FM 12 #define FA 5 //#define FB 5 //#define FC 1 class GF2m12x { GF2m x[FM]; public: GF2m12x() {for (int i=0;i