func math/big.NewInt
22 uses
math/big (current package)
int.go#L77: func NewInt(x int64) *Int {
rat.go#L443: if f := NewInt(0).lehmerGCD(nil, nil, &z.a, &z.b); f.Cmp(intOne) != 0 {
crypto/dsa
dsa.go#L189: two := big.NewInt(2)
crypto/ecdsa
ecdsa.go#L676: c.nMinus2 = new(big.Int).Sub(params.N, big.NewInt(2)).Bytes()
crypto/rsa
rsa.go#L42: var bigOne = big.NewInt(1)
rsa.go#L427: e := big.NewInt(int64(priv.E))
crypto/x509
oid.go#L93: if n.Cmp(big.NewInt(0)) == 0 {
oid.go#L100: if n.Cmp(big.NewInt(0)) == 0 {
oid.go#L105: o := byte(big.NewInt(0).Rsh(n, uint(i)*7).Bits()[0])
oid.go#L149: first = big.NewInt(0)
oid.go#L150: second = big.NewInt(0)
oid.go#L160: if first.Cmp(big.NewInt(2)) > 0 || (first.Cmp(big.NewInt(2)) < 0 && second.Cmp(big.NewInt(40)) >= 0) {
oid.go#L164: firstComponent := first.Mul(first, big.NewInt(40))
oid.go#L172: b, ok := big.NewInt(0).SetString(strNum, 10)
oid.go#L311: bigVal = bigVal.Lsh(bigVal, bitsPerByte).Or(bigVal, big.NewInt(int64(curVal)))
oid.go#L315: bigVal = bigVal.Sub(bigVal, big.NewInt(80))
encoding/asn1
asn1.go#L131: var bigOne = big.NewInt(1)
github.com/golang-jwt/jwt/v5
ecdsa.go#L72: r := big.NewInt(0).SetBytes(sig[:m.KeySize])
ecdsa.go#L73: s := big.NewInt(0).SetBytes(sig[m.KeySize:])
vendor/golang.org/x/crypto/cryptobyte
asn1.go#L313: var bigOne = big.NewInt(1)
 |
The pages are generated with Golds v0.7.6. (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. |