math/big.Int.Sign (method)
68 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#L242: if N.Sign() == 0 {
ecdsa.go#L262: if r.Sign() != 0 {
ecdsa.go#L272: if s.Sign() != 0 {
ecdsa.go#L296: if r.Sign() <= 0 || s.Sign() <= 0 {
ecdsa.go#L330: if x.Sign() == 0 && y.Sign() == 0 {
crypto/elliptic
elliptic.go#L86: if x.Sign() != 0 || y.Sign() != 0 {
elliptic.go#L95: if z.Sign() == 0 {
elliptic.go#L121: if z1.Sign() == 0 {
elliptic.go#L127: if z2.Sign() == 0 {
elliptic.go#L144: xEqual := h.Sign() == 0
elliptic.go#L145: if h.Sign() == -1 {
elliptic.go#L159: if r.Sign() == -1 {
elliptic.go#L162: yEqual := r.Sign() == 0
elliptic.go#L208: if alpha.Sign() == -1 {
elliptic.go#L223: if x3.Sign() == -1 {
elliptic.go#L231: if z3.Sign() == -1 {
elliptic.go#L235: if z3.Sign() == -1 {
elliptic.go#L242: if beta.Sign() == -1 {
elliptic.go#L252: if y3.Sign() == -1 {
p224.go#L85: if bigX1.Sign() != 0 || bigY1.Sign() != 0 {
p224.go#L90: if bigX2.Sign() != 0 || bigY2.Sign() != 0 {
p256_asm.go#L114: if k.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
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 {
x509.go#L936: if p.N.Sign() <= 0 {
x509.go#L966: if p.Sign() <= 0 || params.P.Sign() <= 0 || params.Q.Sign() <= 0 || params.G.Sign() <= 0 {
encoding/asn1
marshal.go#L202: if n.Sign() < 0 {
marshal.go#L217: } else if n.Sign() == 0 {
golang.org/x/crypto/ssh
kex.go#L107: if x.Sign() > 0 {
kex.go#L169: if y.Sign() > 0 {
kex.go#L290: if x.Sign() == 0 && y.Sign() == 0 {
kex.go#L567: if theirPublic.Sign() <= 0 || theirPublic.Cmp(gex.p) >= 0 {
messages.go#L662: if n.Sign() < 0 {
messages.go#L671: } else if n.Sign() == 0 {
messages.go#L700: if n.Sign() < 0 {
messages.go#L719: } else if n.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.3.2-preview. (GOOS=darwin 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. |