math/big.Int.SetBytes (method)

33 uses

	math/big (current package)
		int.go#L511: 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#L196: 	priv.D = new(big.Int).SetBytes(k.Bytes(c.N))
		ecdsa.go#L611: 	x = new(big.Int).SetBytes(out[1 : 1+byteLen])
		ecdsa.go#L612: 	y = new(big.Int).SetBytes(out[1+byteLen:])
		ecdsa_legacy.go#L43: 	ret := new(big.Int).SetBytes(hash)
		ecdsa_legacy.go#L137: 	r, s := new(big.Int).SetBytes(rBytes), new(big.Int).SetBytes(sBytes)
		ecdsa_legacy.go#L186: 		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/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#L326: 		out.SetBytes(neg)
		asn1.go#L330: 		out.SetBytes(bytes)