Lines Matching refs:cmp

29504     if (left.cmp(right) > 0) return left;
29509 if (left.cmp(right) < 0) return left;
30354 var cmp = this.cmp(num); // Optimization - zeroify
30356 if (cmp === 0) {
30366 if (cmp > 0) {
31823 if (num.length > this.length || this.cmp(num) < 0) {
31877 var cmp = mod.cmp(half); // Round down
31879 if (cmp < 0 || r2 === 1 && cmp === 0) return dm.div; // Round up
31980 if (x.cmp(y) >= 0) {
32050 if (a.cmp(b) >= 0) {
32096 var r = a.cmp(b);
32195 BN.prototype.cmp = function cmp(num) {
32232 return this.cmp(num) === 1;
32240 return this.cmp(num) >= 0;
32248 return this.cmp(num) === -1;
32256 return this.cmp(num) <= 0;
32264 return this.cmp(num) === 0;
32423 var cmp = rlen < this.n ? -1 : r.ucmp(this.p);
32425 if (cmp === 0) {
32428 } else if (cmp > 0) {
32625 if (res.cmp(this.m) >= 0) {
32637 if (res.cmp(this.m) >= 0) {
32724 while (this.pow(z, lpow).cmp(nOne) !== 0) {
32733 while (t.cmp(one) !== 0) {
32736 for (var i = 0; tmp.cmp(one) !== 0; i++) {
32871 if (u.cmp(this.m) >= 0) {
32887 if (u.cmp(this.m) >= 0) {
33093 if (left.cmp(right) > 0) return left;
33098 if (left.cmp(right) < 0) return left;
34038 var cmp = this.cmp(num); // Optimization - zeroify
34040 if (cmp === 0) {
34050 if (cmp > 0) {
35512 if (num.length > this.length || this.cmp(num) < 0) {
35566 var cmp = mod.cmp(half); // Round down
35568 if (cmp < 0 || r2 === 1 && cmp === 0) return dm.div; // Round up
35680 if (x.cmp(y) >= 0) {
35750 if (a.cmp(b) >= 0) {
35796 var r = a.cmp(b);
35897 BN.prototype.cmp = function cmp(num) {
35934 return this.cmp(num) === 1;
35942 return this.cmp(num) >= 0;
35950 return this.cmp(num) === -1;
35958 return this.cmp(num) <= 0;
35966 return this.cmp(num) === 0;
36125 var cmp = rlen < this.n ? -1 : r.ucmp(this.p);
36127 if (cmp === 0) {
36130 } else if (cmp > 0) {
36328 if (res.cmp(this.m) >= 0) {
36340 if (res.cmp(this.m) >= 0) {
36427 while (this.pow(z, lpow).cmp(nOne) !== 0) {
36436 while (t.cmp(one) !== 0) {
36439 for (var i = 0; tmp.cmp(one) !== 0; i++) {
36574 if (u.cmp(this.m) >= 0) {
36590 if (u.cmp(this.m) >= 0) {
38104 while (r.cmp(priv.modulus) >= 0 || !r.umod(priv.prime1) || !r.umod(priv.prime2)) {
38545 } while (k.cmp(q) !== -1);
38641 return v.cmp(r) === 0;
38646 if (b.cmp(q) >= q) throw new Error('invalid sig');
45355 if (prime.mod(TWENTYFOUR).cmp(ELEVEN)) {
45365 if (rem.cmp(THREE) && rem.cmp(SEVEN)) {
45572 if (!gen.cmp(TWO)) {
45573 while (num.mod(TWENTYFOUR).cmp(ELEVEN)) {
45576 } else if (!gen.cmp(FIVE)) {
45577 while (num.mod(TEN).cmp(THREE)) {
45801 if (points[a].y.cmp(points[b].y) === 0) {
45804 } else if (points[a].y.cmp(points[b].y.redNeg()) === 0) {
46055 if (y.redSqr().redSub(y2).cmp(this.zero) !== 0) throw new Error('invalid point');
46070 if (x2.cmp(this.zero) === 0) {
46075 if (x.redSqr().redSub(x2).cmp(this.zero) !== 0) throw new Error('invalid point');
46088 return lhs.cmp(rhs) === 0;
46139 …return this.x.cmpn(0) === 0 && (this.y.cmp(this.z) === 0 || this.zOne && this.y.cmp(this.curve.c) …
46358 …return this === other || this.getX().cmp(other.getX()) === 0 && this.getY().cmp(other.getY()) === …
46363 if (this.x.cmp(rx) === 0) return true;
46369 if (xc.cmp(this.curve.p) >= 0) return false;
46371 if (this.x.cmp(rx) === 0) return true;
46416 return y.redSqr().cmp(rhs) === 0;
46552 return this.getX().cmp(other.getX()) === 0;
46609 beta = betas[0].cmp(betas[1]) < 0 ? betas[0] : betas[1];
46619 if (this.g.mul(lambdas[0]).x.cmp(this.g.x.redMul(beta)) === 0) {
46623 assert(this.g.mul(lambda).x.cmp(this.g.x.redMul(beta)) === 0);
46692 if (!a1 && r.cmp(aprxSqrt) < 0) {
46715 if (len2.cmp(len1) >= 0) {
46764 …if (y.redSqr().redSub(y2).cmp(this.zero) !== 0) throw new Error('invalid point'); // XXX Is there …
46938 if (this.x.cmp(p.x) === 0) return this.curve.point(null, null);
46986 …return this === p || this.inf === p.inf && (this.inf || this.x.cmp(p.x) === 0 && this.y.cmp(p.y) =…
47383 if (this.x.cmp(rx) === 0) return true;
47389 if (xc.cmp(this.curve.p) >= 0) return false;
47391 if (this.x.cmp(rx) === 0) return true;
47630 if (priv.cmp(ns2) > 0) continue;
47639 if (!truncOnly && msg.cmp(this.n) >= 0) return msg.sub(this.n);else return msg;
47670 if (k.cmpn(1) <= 0 || k.cmp(ns1) >= 0) continue;
47679 …var recoveryParam = (kp.getY().isOdd() ? 1 : 0) | (kpX.cmp(r) !== 0 ? 2 : 0); // Use complement of…
47681 if (options.canonical && s.cmp(this.nh) > 0) {
47701 if (r.cmpn(1) < 0 || r.cmp(this.n) >= 0) return false;
47702 if (s.cmpn(1) < 0 || s.cmp(this.n) >= 0) return false; // Validate signature
47711 return p.getX().umod(this.n).cmp(r) === 0;
47734 …if (r.cmp(this.curve.p.umod(this.curve.n)) >= 0 && isSecondKey) throw new Error('Unable to find se…
61596 } while (a.cmp(n) >= 0);
61626 if (x.cmp(rone) === 0 || x.cmp(rn1) === 0) continue;
61630 if (x.cmp(rone) === 0) return false;
61631 if (x.cmp(rn1) === 0) break;
61659 if (x.cmp(rone) === 0 || x.cmp(rn1) === 0) continue;
61663 if (x.cmp(rone) === 0) return x.fromRed().subn(1).gcd(n);
61664 if (x.cmp(rn1) === 0) break;
70872 if (enc.length > k || new BN(enc).cmp(key.modulus) >= 0) {
71020 if (paddedMsg.cmp(key.modulus) >= 0) {