math/big.Int.SetBytes (method)

57 uses

	math/big (current package)
		int.go#L518: func (z *Int) SetBytes(buf []byte) *Int {

	crypto/dsa
		dsa.go#L111: 		q.SetBytes(qBytes)
		dsa.go#L125: 			p.SetBytes(pBytes)
		dsa.go#L181: 		x.SetBytes(xBytes)
		dsa.go#L243: 			k.SetBytes(buf)
		dsa.go#L262: 		z := k.SetBytes(hash)
		dsa.go#L317: 	z := new(big.Int).SetBytes(hash)

	crypto/ecdsa
		ecdsa.go#L561: 	return &PrivateKey{PublicKey: *pub, D: new(big.Int).SetBytes(priv.Bytes())}, nil
		ecdsa.go#L629: 	x = new(big.Int).SetBytes(p[1 : 1+byteLen])
		ecdsa.go#L630: 	y = new(big.Int).SetBytes(p[1+byteLen:])
		ecdsa_legacy.go#L49: 	ret := new(big.Int).SetBytes(hash)
		ecdsa_legacy.go#L169: 	r, s := new(big.Int).SetBytes(rBytes), new(big.Int).SetBytes(sBytes)
		ecdsa_legacy.go#L215: 		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#L165: 	x = new(big.Int).SetBytes(out[1 : 1+byteLen])
		nistec.go#L166: 	y = new(big.Int).SetBytes(out[1+byteLen:])
		nistec.go#L197: 	s := new(big.Int).SetBytes(scalar)
		nistec.go#L240: 	x = new(big.Int).SetBytes(data[1 : 1+byteLen])
		nistec.go#L241: 	y = new(big.Int).SetBytes(data[1+byteLen:])

	crypto/rand
		util.go#L62: 		p.SetBytes(bytes)
		util.go#L103: 		n.SetBytes(bytes)

	crypto/rsa
		rsa.go#L387: 			N: new(big.Int).SetBytes(N),
		rsa.go#L390: 		D: new(big.Int).SetBytes(d),
		rsa.go#L392: 			new(big.Int).SetBytes(p),
		rsa.go#L393: 			new(big.Int).SetBytes(q),
		rsa.go#L397: 			Dp:        new(big.Int).SetBytes(dP),
		rsa.go#L398: 			Dq:        new(big.Int).SetBytes(dQ),
		rsa.go#L399: 			Qinv:      new(big.Int).SetBytes(qInv),
		rsa.go#L603: 	precomputed.Dp = new(big.Int).SetBytes(dP)
		rsa.go#L604: 	precomputed.Dq = new(big.Int).SetBytes(dQ)
		rsa.go#L605: 	precomputed.Qinv = new(big.Int).SetBytes(qInv)

	crypto/x509
		x509.go#L1699: 		serialNumber = new(big.Int).SetBytes(serialBytes)

	encoding/asn1
		asn1.go#L148: 		ret.SetBytes(notBytes)
		asn1.go#L153: 	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/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#L103: 		keyAESEncryptedBig := big.NewInt(0).SetBytes(keyAESEncrypted)

	github.com/gotd/td/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/exchange
		client_flow.go#L62: 	pq := big.NewInt(0).SetBytes(res.Pq)
		client_flow.go#L190: 		dhPrime := big.NewInt(0).SetBytes(innerData.DhPrime)
		client_flow.go#L195: 		gA := big.NewInt(0).SetBytes(innerData.GA)
		generator.go#L34: 	return big.NewInt(0).SetBytes(data), nil
		server_flow.go#L284: 	gB := big.NewInt(0).SetBytes(clientInnerData.GB)

	github.com/gotd/td/telegram/dcs
		dns.go#L53: 	x := new(big.Int).SetBytes(input[:])

	golang.org/x/crypto/cryptobyte
		asn1.go#L326: 		out.SetBytes(neg)
		asn1.go#L330: 		out.SetBytes(bytes)

	vendor/golang.org/x/crypto/cryptobyte
		asn1.go#L326: 		out.SetBytes(neg)
		asn1.go#L330: 		out.SetBytes(bytes)