13 #include "../field/modfield.hpp"
15 using namespace arithm;
19 mpz_class gen, uint8_t encoding) :
29 bt->getChild(1)->toInteger(),
30 bt->getChild(2)->toInteger())
34 std::cout<<
"ERROR: in ModPGrp(bt), bt is not a node. "
61 unsigned int np = mpz_sizeinbase(
addOrder.get_mpz_t(),2);
62 unsigned int tiLength = (np+nr)/8;
67 mpz_pow_ui(modulo.get_mpz_t(),
70 for (
unsigned int i=0; i<n0; i++)
73 for (
unsigned int j=0; j<=tiLength; j++)
78 mpz_powm(ti.get_mpz_t(),