math/big.Int.Sign (method)
68 uses
math/big (current package)
int.go#L45: func (x *Int) Sign() int {
rat.go#L396: 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#L583: if x.Sign() < 0 || y.Sign() < 0 {
ecdsa_legacy.go#L82: if N.Sign() == 0 {
ecdsa_legacy.go#L97: if r.Sign() != 0 {
ecdsa_legacy.go#L107: if s.Sign() != 0 {
ecdsa_legacy.go#L119: if r.Sign() <= 0 || s.Sign() <= 0 {
ecdsa_legacy.go#L139: if r.Sign() <= 0 || s.Sign() <= 0 {
ecdsa_legacy.go#L159: if x.Sign() == 0 && y.Sign() == 0 {
ecdsa_legacy.go#L184: if k.Sign() != 0 && k.Cmp(N) < 0 {
crypto/elliptic
elliptic.go#L215: if x.Sign() == 0 && y.Sign() == 0 {
nistec.go#L132: if x.Sign() == 0 && y.Sign() == 0 {
nistec.go#L142: if x.Sign() == 0 && y.Sign() == 0 {
nistec.go#L146: if x.Sign() < 0 || y.Sign() < 0 {
nistec_p256.go#L15: if k.Sign() < 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#L80: if x.Sign() != 0 || y.Sign() != 0 {
params.go#L89: if z.Sign() == 0 {
params.go#L129: if z1.Sign() == 0 {
params.go#L135: if z2.Sign() == 0 {
params.go#L152: xEqual := h.Sign() == 0
params.go#L153: if h.Sign() == -1 {
params.go#L167: if r.Sign() == -1 {
params.go#L170: yEqual := r.Sign() == 0
params.go#L229: if alpha.Sign() == -1 {
params.go#L244: if x3.Sign() == -1 {
params.go#L252: if z3.Sign() == -1 {
params.go#L256: if z3.Sign() == -1 {
params.go#L263: if beta.Sign() == -1 {
params.go#L273: if y3.Sign() == -1 {
crypto/rand
util.go#L63: if max.Sign() <= 0 {
crypto/x509
parser.go#L240: if p.N.Sign() <= 0 {
parser.go#L309: if pub.Y.Sign() <= 0 || pub.Parameters.P.Sign() <= 0 ||
parser.go#L310: 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 {
x509.go#L1553: if template.SerialNumber.Sign() == -1 {
encoding/asn1
marshal.go#L202: if n.Sign() < 0 {
marshal.go#L217: } 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.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. |