math/big.Int.SetBytes (method)

44 uses

	math/big (current package)
		int.go#L511: 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#L239: 			k.SetBytes(buf)
		dsa.go#L258: 		z := k.SetBytes(hash)
		dsa.go#L313: 	z := new(big.Int).SetBytes(hash)

	crypto/ecdsa
		ecdsa.go#L393: 	return &PrivateKey{PublicKey: *pub, D: new(big.Int).SetBytes(priv.Bytes())}, nil
		ecdsa.go#L438: 	x = new(big.Int).SetBytes(p[1 : 1+byteLen])
		ecdsa.go#L439: 	y = new(big.Int).SetBytes(p[1+byteLen:])
		ecdsa_legacy.go#L49: 	ret := new(big.Int).SetBytes(hash)
		ecdsa_legacy.go#L164: 	r, s := new(big.Int).SetBytes(rBytes), new(big.Int).SetBytes(sBytes)
		ecdsa_legacy.go#L210: 		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#L58: 		p.SetBytes(bytes)
		util.go#L99: 		n.SetBytes(bytes)

	crypto/rsa
		rsa.go#L351: 			N: new(big.Int).SetBytes(N),
		rsa.go#L354: 		D: new(big.Int).SetBytes(d),
		rsa.go#L356: 			new(big.Int).SetBytes(p),
		rsa.go#L357: 			new(big.Int).SetBytes(q),
		rsa.go#L361: 			Dp:        new(big.Int).SetBytes(dP),
		rsa.go#L362: 			Dq:        new(big.Int).SetBytes(dQ),
		rsa.go#L363: 			Qinv:      new(big.Int).SetBytes(qInv),
		rsa.go#L562: 	precomputed.Dp = new(big.Int).SetBytes(dP)
		rsa.go#L563: 	precomputed.Dq = new(big.Int).SetBytes(dQ)
		rsa.go#L564: 	precomputed.Qinv = new(big.Int).SetBytes(qInv)

	crypto/x509
		sec1.go#L109: 	k := new(big.Int).SetBytes(privKey.PrivateKey)

	encoding/asn1
		asn1.go#L147: 		ret.SetBytes(notBytes)
		asn1.go#L152: 	ret.SetBytes(bytes)

	golang.org/x/tools/internal/gcimporter
		iexport.go#L1369: 	return new(big.Rat).SetInt(new(big.Int).SetBytes(bytes))
		iimport.go#L787: 	x.SetBytes(b)

	golang.org/x/tools/internal/pkgbits
		decoder.go#L461: 	v := new(big.Int).SetBytes([]byte(r.String()))

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