@ -1794,8 +1794,11 @@ public:
};
//typedef VintT<vint::VariableBuffer<mcl::vint::Unit> > Vint;
//typedef VintT<vint::FixedBuffer<mcl::vint::Unit, 10> > Vint;
#ifdef MCL_VINT_FIXED_BUFFER
typedef VintT<vint::FixedBuffer<mcl::vint::Unit, MCL_MAX_BIT_SIZE * 2> > Vint;
#else
typedef VintT<vint::Buffer<mcl::vint::Unit> > Vint;
#endif
} // mcl
@ -390,7 +390,7 @@ static void initForMont(Op& op, const Unit *p, Mode mode)
R = (t << (N * UnitBitSize)) % op.mp;
t = (R * R) % op.mp;
gmp::getArray(op.R2, N, t);
t = (R * R * R) % op.mp;
t = (t * R) % op.mp;
gmp::getArray(op.R3, N, t);
}
op.rp = getMontgomeryCoeff(p[0]);