/* * MIRACL C++ Headerfile GF2m6x.h * * AUTHOR : M. Scott * * PURPOSE : Definition of class GF2m6x - Arithmetic over the extension * field GF(2^6m) - uses irreducible polynomial x^6+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 GF2m6x_H #define GF2m6x_H #include #include "gf2m.h" // set field and irreducible polynomial, undefine FB and FC for trinomials #define FM 6 #define FA 5 #define FB 3 #define FC 2 class GF2m6x { GF2m x[FM]; public: GF2m6x() { } GF2m6x(const GF2m6x & b) {for (int i=0;i