math/big.Int.SetBytes (method)

40 uses

	math/big (current package)
		int.go#L443: 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#L137: 	k = new(big.Int).SetBytes(b)
		ecdsa.go#L168: 	ret := new(big.Int).SetBytes(hash)

	crypto/elliptic
		elliptic.go#L351: 		if new(big.Int).SetBytes(priv).Cmp(N) >= 0 {
		elliptic.go#L398: 	x = new(big.Int).SetBytes(data[1 : 1+byteLen])
		elliptic.go#L399: 	y = new(big.Int).SetBytes(data[1+byteLen:])
		elliptic.go#L421: 	x = new(big.Int).SetBytes(data[1:])
		p256_asm.go#L198: 	return new(big.Int).SetBytes(xOut)
		p256_asm.go#L216: 	n := new(big.Int).SetBytes(in)
		p256_asm.go#L332: 	return new(big.Int).SetBytes(xOut), new(big.Int).SetBytes(yOut)

	crypto/rand
		util.go#L71: 		p.SetBytes(bytes)
		util.go#L138: 		n.SetBytes(bytes)

	crypto/rsa
		pkcs1v15.go#L61: 	m := new(big.Int).SetBytes(em)
		pkcs1v15.go#L146: 	c := new(big.Int).SetBytes(ciphertext)
		pkcs1v15.go#L252: 	m := new(big.Int).SetBytes(em)
		pkcs1v15.go#L285: 	c := new(big.Int).SetBytes(sig)
		pss.go#L216: 	m := new(big.Int).SetBytes(em)
		pss.go#L294: 	s := new(big.Int).SetBytes(sig)
		rsa.go#L441: 	m.SetBytes(em)
		rsa.go#L606: 	c := new(big.Int).SetBytes(ciphertext)

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

	encoding/asn1
		asn1.go#L145: 		ret.SetBytes(notBytes)
		asn1.go#L150: 	ret.SetBytes(bytes)

	github.com/aws/aws-sdk-go-v2/internal/v4a
		v4a.go#L62: 	nMinusTwoP256 = new(big.Int).SetBytes(p256.Params().N.Bytes())
		v4a.go#L135: 			d.SetBytes(key)

	github.com/aws/aws-sdk-go-v2/internal/v4a/internal/crypto
		ecc.go#L23: 	return ECDSAKeyFromPoint(curve, (&big.Int{}).SetBytes(d))
		ecc.go#L46: 	xPoint := (&big.Int{}).SetBytes(x)
		ecc.go#L47: 	yPoint := (&big.Int{}).SetBytes(y)

	golang.org/x/tools/internal/gcimporter
		bexport.go#L658: 	return new(big.Rat).SetInt(new(big.Int).SetBytes(bytes))
		iimport.go#L686: 	x.SetBytes(b)

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

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