math/big.Int.SetBytes (method)
46 uses
math/big (current package)
int.go#L514: func (z *Int) SetBytes(buf []byte) *Int {
crypto/dsa
dsa.go#L106: q.SetBytes(qBytes)
dsa.go#L120: p.SetBytes(pBytes)
dsa.go#L172: x.SetBytes(xBytes)
dsa.go#L226: k.SetBytes(buf)
dsa.go#L245: z := k.SetBytes(hash)
dsa.go#L296: z := new(big.Int).SetBytes(hash)
crypto/ecdsa
ecdsa.go#L192: priv.D = new(big.Int).SetBytes(k.Bytes(c.N))
ecdsa.go#L606: x = new(big.Int).SetBytes(out[1 : 1+byteLen])
ecdsa.go#L607: y = new(big.Int).SetBytes(out[1+byteLen:])
ecdsa_legacy.go#L43: ret := new(big.Int).SetBytes(hash)
ecdsa_legacy.go#L134: r, s := new(big.Int).SetBytes(rBytes), new(big.Int).SetBytes(sBytes)
ecdsa_legacy.go#L183: k = new(big.Int).SetBytes(b)
crypto/elliptic
elliptic.go#L94: if new(big.Int).SetBytes(priv).Cmp(N) >= 0 {
elliptic.go#L166: x = new(big.Int).SetBytes(data[1 : 1+byteLen])
elliptic.go#L167: y = new(big.Int).SetBytes(data[1+byteLen:])
elliptic.go#L193: x = new(big.Int).SetBytes(data[1:])
nistec.go#L169: x = new(big.Int).SetBytes(out[1 : 1+byteLen])
nistec.go#L170: y = new(big.Int).SetBytes(out[1+byteLen:])
nistec.go#L201: s := new(big.Int).SetBytes(scalar)
nistec.go#L264: x = new(big.Int).SetBytes(data[1 : 1+byteLen])
nistec.go#L265: y = new(big.Int).SetBytes(data[1+byteLen:])
nistec_p256.go#L28: return new(big.Int).SetBytes(inverse)
crypto/rand
util.go#L54: p.SetBytes(bytes)
util.go#L94: n.SetBytes(bytes)
crypto/x509
sec1.go#L109: k := new(big.Int).SetBytes(privKey.PrivateKey)
encoding/asn1
asn1.go#L146: ret.SetBytes(notBytes)
asn1.go#L151: ret.SetBytes(bytes)
github.com/gotd/td/bin
int128.go#L26: return big.NewInt(0).SetBytes(i[:])
int256.go#L26: return big.NewInt(0).SetBytes(i[:])
github.com/gotd/td/internal/crypto
rsa.go#L33: c := new(big.Int).SetBytes(sig)
rsa.go#L41: z := new(big.Int).SetBytes(data)
rsa.go#L50: c := new(big.Int).SetBytes(data)
rsa_pad.go#L105: keyAESEncryptedBig := big.NewInt(0).SetBytes(keyAESEncrypted)
github.com/gotd/td/internal/crypto/srp
new_hash.go#L18: x = new(big.Int).SetBytes(s.secondary(password, clientSalt, serverSalt))
new_hash.go#L37: p := new(big.Int).SetBytes(i.P)
srp.go#L54: return new(big.Int).SetBytes(b)
github.com/gotd/td/internal/exchange
client_flow.go#L62: pq := big.NewInt(0).SetBytes(res.Pq)
client_flow.go#L170: dhPrime := big.NewInt(0).SetBytes(innerData.DhPrime)
client_flow.go#L175: gA := big.NewInt(0).SetBytes(innerData.GA)
generator.go#L34: return big.NewInt(0).SetBytes(data), nil
server_flow.go#L248: gB := big.NewInt(0).SetBytes(clientInnerData.GB)
github.com/gotd/td/telegram/dcs
dns.go#L53: x := new(big.Int).SetBytes(input[:])
vendor/golang.org/x/crypto/cryptobyte
asn1.go#L326: out.SetBytes(neg)
asn1.go#L330: out.SetBytes(bytes)
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. |