@ -580,7 +580,7 @@ public:
t += a_;
t *= x;
t += b_;
Fp::sqrRoot(y, t);
Fp::squareRoot(y, t);
if (Fp::isOdd(y) ^ isYodd) {
Fp::neg(y, y);
}
@ -133,7 +133,7 @@ public:
x.getBlock(b);
return (b.p[0] & 1) == 1;
static inline bool sqrRoot(FpT& y, const FpT& x)
static inline bool squareRoot(FpT& y, const FpT& x)
{
mpz_class mx, my;
x.getMpz(mx);
@ -164,7 +164,7 @@ struct Test {
R -= P;
void sqrRoot() const
void squareRoot() const
Fp x(para.gx);
Fp y(para.gy);
@ -279,7 +279,7 @@ mul 499.00usec
mul();
neg_mul();
mul_fp();
sqrRoot();
squareRoot();
str();
private: