math/big.Int.SetBytes (method)

69 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#L141: 	k = new(big.Int).SetBytes(b)
		ecdsa.go#L175: 	ret := new(big.Int).SetBytes(hash)

	crypto/elliptic
		elliptic.go#L304: 		if new(big.Int).SetBytes(priv).Cmp(N) >= 0 {
		elliptic.go#L349: 	x = new(big.Int).SetBytes(data[1 : 1+byteLen])
		elliptic.go#L350: 	y = new(big.Int).SetBytes(data[1+byteLen:])
		elliptic.go#L372: 	x = new(big.Int).SetBytes(data[1:])
		p224.go#L777: 	return new(big.Int).SetBytes(buf[:])
		p256_asm.go#L197: 	return new(big.Int).SetBytes(xOut)
		p256_asm.go#L215: 	n := new(big.Int).SetBytes(in)
		p256_asm.go#L331: 	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)

	golang.org/x/crypto/openpgp/elgamal
		elgamal.go#L55: 	m := new(big.Int).SetBytes(em)

	golang.org/x/crypto/openpgp/packet
		encrypted_key.go#L86: 		c1 := new(big.Int).SetBytes(e.encryptedMPI1.bytes)
		encrypted_key.go#L87: 		c2 := new(big.Int).SetBytes(e.encryptedMPI2.bytes)
		private_key.go#L315: 	rsaPriv.D = new(big.Int).SetBytes(d)
		private_key.go#L317: 	rsaPriv.Primes[0] = new(big.Int).SetBytes(p)
		private_key.go#L318: 	rsaPriv.Primes[1] = new(big.Int).SetBytes(q)
		private_key.go#L341: 	dsaPriv.X = new(big.Int).SetBytes(x)
		private_key.go#L360: 	priv.X = new(big.Int).SetBytes(x)
		private_key.go#L379: 		D:         new(big.Int).SetBytes(d),
		public_key.go#L331: 		N: new(big.Int).SetBytes(pk.n.bytes),
		public_key.go#L363: 	dsa.P = new(big.Int).SetBytes(pk.p.bytes)
		public_key.go#L364: 	dsa.Q = new(big.Int).SetBytes(pk.q.bytes)
		public_key.go#L365: 	dsa.G = new(big.Int).SetBytes(pk.g.bytes)
		public_key.go#L366: 	dsa.Y = new(big.Int).SetBytes(pk.y.bytes)
		public_key.go#L388: 	elgamal.P = new(big.Int).SetBytes(pk.p.bytes)
		public_key.go#L389: 	elgamal.G = new(big.Int).SetBytes(pk.g.bytes)
		public_key.go#L390: 	elgamal.Y = new(big.Int).SetBytes(pk.y.bytes)
		public_key.go#L535: 		if !dsa.Verify(dsaPublicKey, hashBytes, new(big.Int).SetBytes(sig.DSASigR.bytes), new(big.Int).SetBytes(sig.DSASigS.bytes)) {
		public_key.go#L541: 		if !ecdsa.Verify(ecdsaPublicKey, hashBytes, new(big.Int).SetBytes(sig.ECDSASigR.bytes), new(big.Int).SetBytes(sig.ECDSASigS.bytes)) {
		public_key.go#L585: 		if !dsa.Verify(dsaPublicKey, hashBytes, new(big.Int).SetBytes(sig.DSASigR.bytes), new(big.Int).SetBytes(sig.DSASigS.bytes)) {
		public_key_v3.go#L107: 	rsa := &rsa.PublicKey{N: new(big.Int).SetBytes(pk.n.bytes)}

	golang.org/x/crypto/ssh
		kex.go#L475: 	ki := new(big.Int).SetBytes(secret[:])
		kex.go#L523: 	ki := new(big.Int).SetBytes(secret[:])
		keys.go#L481: 	r := new(big.Int).SetBytes(sig.Blob[:20])
		keys.go#L482: 	s := new(big.Int).SetBytes(sig.Blob[20:])
		messages.go#L635: 		out.SetBytes(notBytes)
		messages.go#L640: 		out.SetBytes(contents)

	google.golang.org/api/idtoken
		validate.go#L176: 		N: new(big.Int).SetBytes(dn),
		validate.go#L177: 		E: int(new(big.Int).SetBytes(de).Int64()),
		validate.go#L202: 		X:     new(big.Int).SetBytes(dx),
		validate.go#L203: 		Y:     new(big.Int).SetBytes(dy),
		validate.go#L205: 	r := big.NewInt(0).SetBytes(sig[:es256KeySize])
		validate.go#L206: 	s := big.NewInt(0).SetBytes(sig[es256KeySize:])

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