math/big.Int.Sub (method)
57 uses
math/big (current package)
int.go#L162: func (z *Int) Sub(x, y *Int) *Int {
int.go#L263: z.Mul(z, t.Sub(&N, &i))
int.go#L316: z.Sub(z, intOne)
int.go#L334: z.Sub(z, y0)
int.go#L365: m.Sub(m, y0)
int.go#L367: z.Sub(z, intOne)
int.go#L743: Ub.Sub(Ub, q)
int.go#L854: y.Sub(A, y)
int.go#L1011: beta.Sub(beta, intOne)
int.go#L1024: s.Sub(p, intOne)
natmul.go#L208: tx.Sub(x0, x1)
natmul.go#L209: ty.Sub(y1, y0)
natmul.go#L228: tx = new(Int).Sub(x1, x0)
natmul.go#L229: ty = new(Int).Sub(y0, y1)
natmul.go#L295: tx.Sub(x0, x1)
natmul.go#L313: tx = new(Int).Sub(x0, x1)
rat.go#L518: z.a.Sub(&a1, &a2)
crypto/dsa
dsa.go#L127: rem.Sub(rem, one)
dsa.go#L128: p.Sub(p, rem)
dsa.go#L147: pm1 := new(big.Int).Sub(p, one)
dsa.go#L199: pMinus2 := new(big.Int).Sub(P, two)
crypto/elliptic
params.go#L43: x3.Sub(x3, threeX)
params.go#L151: h := new(big.Int).Sub(u2, u1)
params.go#L166: r := new(big.Int).Sub(s2, s1)
params.go#L179: x3.Sub(x3, j)
params.go#L180: x3.Sub(x3, v)
params.go#L181: x3.Sub(x3, v)
params.go#L185: v.Sub(v, x3)
params.go#L189: y3.Sub(y3, s1)
params.go#L194: z3.Sub(z3, z1z1)
params.go#L195: z3.Sub(z3, z2z2)
params.go#L228: alpha := new(big.Int).Sub(x, delta)
params.go#L243: x3.Sub(x3, beta8)
params.go#L251: z3.Sub(z3, gamma)
params.go#L255: z3.Sub(z3, delta)
params.go#L262: beta.Sub(beta, x3)
params.go#L272: y3.Sub(y3, gamma)
crypto/rand
util.go#L76: n.Sub(max, n.SetUint64(1))
crypto/rsa
rsa.go#L503: pminus1.Sub(prime, bigOne)
rsa.go#L633: precomputed.Dp = new(big.Int).Sub(priv.Primes[0], bigOne)
rsa.go#L636: precomputed.Dq = new(big.Int).Sub(priv.Primes[1], bigOne)
rsa.go#L650: values.Exp = new(big.Int).Sub(prime, bigOne)
crypto/x509
oid.go#L325: bigVal = bigVal.Sub(bigVal, big.NewInt(80))
encoding/asn1
marshal.go#L206: nMinus1.Sub(nMinus1, bigOne)
github.com/gotd/td/crypto
check_dh.go#L47: sub := big.NewInt(0).Sub(p, big.NewInt(1))
dh.go#L14: dhPrimeMinusOne := big.NewInt(0).Sub(dhPrime, one)
dh.go#L33: safetyRangeMax := big.NewInt(0).Sub(dhPrime, safetyRangeMin)
pq.go#L64: whatNext.Sub(what, value1)
pq.go#L83: c.Sub(c, what)
pq.go#L88: a.Sub(a, what)
pq.go#L97: z.Sub(z, y)
pq.go#L99: z.Sub(x, y)
github.com/gotd/td/crypto/srp
hash.go#L54: if t.Sub(t, kv).Cmp(big.NewInt(0)) == -1 {
github.com/gotd/td/exchange
generator.go#L52: dhPrimeMinusOne := big.NewInt(0).Sub(dhPrime, one)
generator.go#L55: safetyRangeMax := big.NewInt(0).Sub(dhPrime, safetyRangeMin)
golang.org/x/crypto/cryptobyte
asn1.go#L79: nMinus1.Sub(nMinus1, bigOne)
vendor/golang.org/x/crypto/cryptobyte
asn1.go#L79: nMinus1.Sub(nMinus1, bigOne)
 |
The pages are generated with Golds v0.8.4. (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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |