math/big.Int.Cmp (method)
49 uses
math/big (current package)
int.go#L256: for i.Cmp(&K) < 0 {
int.go#L373: func (x *Int) Cmp(y *Int) (r int) {
int.go#L916: if d.Cmp(intOne) != 0 {
int.go#L959: if b.Cmp(intOne) == 0 {
int.go#L1062: for t.Cmp(intOne) != 0 {
int.go#L1093: if x.neg || x.Cmp(p) >= 0 { // ensure 0 <= x < p
rat.go#L444: if f := NewInt(0).lehmerGCD(nil, nil, &z.a, &z.b); f.Cmp(intOne) != 0 {
rat.go#L488: return a.Cmp(&b)
crypto/dsa
dsa.go#L147: if g.Cmp(one) == 0 {
dsa.go#L173: if x.Sign() != 0 && x.Cmp(priv.Q) < 0 {
dsa.go#L231: if k.Sign() > 0 && k.Cmp(priv.Q) < 0 {
dsa.go#L280: if r.Sign() < 1 || r.Cmp(pub.Q) >= 0 {
dsa.go#L283: if s.Sign() < 1 || s.Cmp(pub.Q) >= 0 {
dsa.go#L308: return v.Cmp(r) == 0
crypto/ecdsa
ecdsa_legacy.go#L142: if r.Cmp(N) >= 0 || s.Cmp(N) >= 0 {
ecdsa_legacy.go#L163: return x.Cmp(r) == 0
ecdsa_legacy.go#L184: if k.Sign() != 0 && k.Cmp(N) < 0 {
crypto/elliptic
elliptic.go#L94: if new(big.Int).SetBytes(priv).Cmp(N) >= 0 {
elliptic.go#L168: if x.Cmp(p) >= 0 || y.Cmp(p) >= 0 {
elliptic.go#L194: if x.Cmp(p) >= 0 {
nistec_p256.go#L19: if k.Cmp(c.params.N) >= 0 {
params.go#L63: if x.Sign() < 0 || x.Cmp(curve.P) >= 0 ||
params.go#L64: y.Sign() < 0 || y.Cmp(curve.P) >= 0 {
params.go#L72: return curve.polynomial(x).Cmp(y2) == 0
crypto/rand
util.go#L95: if n.Cmp(max) < 0 {
crypto/rsa
rsa.go#L239: if prime.Cmp(bigOne) <= 0 {
rsa.go#L244: if modulus.Cmp(priv.N) != 0 {
rsa.go#L259: if congruence.Cmp(bigOne) != 0 {
rsa.go#L402: if prime.Cmp(primes[j]) == 0 {
crypto/tls
tls.go#L310: if pub.N.Cmp(priv.N) != 0 {
tls.go#L318: if pub.X.Cmp(priv.X) != 0 || pub.Y.Cmp(priv.Y) != 0 {
crypto/x509
sec1.go#L111: if k.Cmp(curveOrder) >= 0 {
github.com/gotd/td/internal/crypto
dh.go#L46: return x.Cmp(min) > 0 && x.Cmp(max) < 0
pq.go#L51: for !(g.Cmp(value1) == 1 && g.Cmp(what) == -1) {
pq.go#L78: for b.Cmp(value0) == 1 {
pq.go#L80: if b2.And(b, value1).Cmp(value0) == 1 {
pq.go#L82: if c.Cmp(what) >= 0 {
pq.go#L87: if a.Cmp(what) >= 0 {
pq.go#L95: if x.Cmp(y) == -1 {
pq.go#L108: if g.Cmp(value1) != 0 {
pq.go#L118: if p.Cmp(q) == 1 {
rsa_pad.go#L106: if keyAESEncryptedBig.Cmp(key.N) >= 0 {
github.com/gotd/td/internal/crypto/srp
hash.go#L54: if t.Sub(t, kv).Cmp(big.NewInt(0)) == -1 {
github.com/gotd/td/internal/exchange
client_flow.go#L65: if pq.Cmp(pqMax) > 0 {
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |