math/big.Int.Sign (method)
79 uses
math/big (current package)
int.go#L38: func (x *Int) Sign() int {
rat.go#L397: return x.a.Sign()
crypto/dsa
dsa.go#L173: if x.Sign() != 0 && x.Cmp(priv.Q) < 0 {
dsa.go#L211: if priv.Q.Sign() <= 0 || priv.P.Sign() <= 0 || priv.G.Sign() <= 0 || priv.X.Sign() <= 0 || n%8 != 0 {
dsa.go#L231: if k.Sign() > 0 && k.Cmp(priv.Q) < 0 {
dsa.go#L241: if r.Sign() == 0 {
dsa.go#L253: if s.Sign() != 0 {
dsa.go#L276: if pub.P.Sign() == 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 {
crypto/ecdsa
ecdsa.go#L243: if N.Sign() == 0 {
ecdsa.go#L263: if r.Sign() != 0 {
ecdsa.go#L273: if s.Sign() != 0 {
ecdsa.go#L296: if r.Sign() <= 0 || s.Sign() <= 0 {
ecdsa.go#L331: if x.Sign() == 0 && y.Sign() == 0 {
crypto/elliptic
elliptic.go#L92: if x.Sign() < 0 || x.Cmp(curve.P) >= 0 ||
elliptic.go#L93: y.Sign() < 0 || y.Cmp(curve.P) >= 0 {
elliptic.go#L109: if x.Sign() != 0 || y.Sign() != 0 {
elliptic.go#L118: if z.Sign() == 0 {
elliptic.go#L150: if z1.Sign() == 0 {
elliptic.go#L156: if z2.Sign() == 0 {
elliptic.go#L173: xEqual := h.Sign() == 0
elliptic.go#L174: if h.Sign() == -1 {
elliptic.go#L188: if r.Sign() == -1 {
elliptic.go#L191: yEqual := r.Sign() == 0
elliptic.go#L243: if alpha.Sign() == -1 {
elliptic.go#L258: if x3.Sign() == -1 {
elliptic.go#L266: if z3.Sign() == -1 {
elliptic.go#L270: if z3.Sign() == -1 {
elliptic.go#L277: if beta.Sign() == -1 {
elliptic.go#L287: if y3.Sign() == -1 {
p224.go#L50: if x.Sign() == 0 && y.Sign() == 0 {
p224.go#L61: if x.Sign() == 0 && y.Sign() == 0 {
p224.go#L64: if x.Sign() < 0 || y.Sign() < 0 {
p256_asm.go#L115: if k.Sign() < 0 {
p384.go#L55: if x.Sign() == 0 && y.Sign() == 0 {
p384.go#L66: if x.Sign() == 0 && y.Sign() == 0 {
p384.go#L69: if x.Sign() < 0 || y.Sign() < 0 {
p521.go#L60: if x.Sign() == 0 && y.Sign() == 0 {
p521.go#L71: if x.Sign() == 0 && y.Sign() == 0 {
p521.go#L74: if x.Sign() < 0 || y.Sign() < 0 {
crypto/rand
util.go#L107: if max.Sign() <= 0 {
crypto/rsa
rsa.go#L495: if priv.N.Sign() == 0 {
rsa.go#L538: if m.Sign() < 0 {
rsa.go#L552: if m2.Sign() < 0 {
crypto/x509
parser.go#L260: if p.N.Sign() <= 0 {
parser.go#L322: if pub.Y.Sign() <= 0 || pub.Parameters.P.Sign() <= 0 ||
parser.go#L323: pub.Parameters.Q.Sign() <= 0 || pub.Parameters.G.Sign() <= 0 {
pkcs1.go#L67: if priv.N.Sign() <= 0 || priv.D.Sign() <= 0 || priv.P.Sign() <= 0 || priv.Q.Sign() <= 0 {
pkcs1.go#L82: if a.Prime.Sign() <= 0 {
pkcs1.go#L151: if pub.N.Sign() <= 0 || pub.E <= 0 {
encoding/asn1
marshal.go#L202: if n.Sign() < 0 {
marshal.go#L217: } else if n.Sign() == 0 {
go/constant
value.go#L666: return x.val.Sign()
golang.org/x/tools/internal/gcimporter
iexport.go#L1000: negative := x.Sign() < 0
iexport.go#L1079: if manti.Sign() != 0 {
golang.org/x/tools/internal/pkgbits
encoder.go#L377: w.Bool(v.Sign() < 0)
vendor/golang.org/x/crypto/cryptobyte
asn1.go#L73: if n.Sign() < 0 {
asn1.go#L88: } else if n.Sign() == 0 {
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)