math/big.Int.Bytes (method)

37 uses

	math/big (current package)
		int.go#L523: func (x *Int) Bytes() []byte {

	crypto/ecdsa
		ecdsa.go#L139: 	return subtle.ConstantTimeCompare(a.Bytes(), b.Bytes()) == 1
		ecdsa.go#L322: 	s, err := bigmod.NewNat().SetBytes(priv.D.Bytes(), c.N)
		ecdsa.go#L433: 	md.Write(priv.D.Bytes()) // the private key,
		ecdsa.go#L671: 	c.nMinus2 = new(big.Int).Sub(params.N, big.NewInt(2)).Bytes()
		ecdsa_legacy.go#L29: 	priv.PublicKey.X, priv.PublicKey.Y = c.ScalarBaseMult(k.Bytes())
		ecdsa_legacy.go#L95: 			r, _ = c.ScalarBaseMult(k.Bytes())
		ecdsa_legacy.go#L112: 	return encodeSignature(r.Bytes(), s.Bytes())
		ecdsa_legacy.go#L122: 	sig, err := encodeSignature(r.Bytes(), s.Bytes())
		ecdsa_legacy.go#L155: 	x1, y1 := c.ScalarBaseMult(u1.Bytes())
		ecdsa_legacy.go#L156: 	x2, y2 := c.ScalarMult(pub.X, pub.Y, u2.Bytes())

	crypto/rsa
		rsa.go#L149: 	return subtle.ConstantTimeCompare(a.Bytes(), b.Bytes()) == 1
		rsa.go#L661: 		m = bigmod.NewNat().Exp(c, priv.D.Bytes(), N)
		rsa.go#L665: 		Qinv, err := bigmod.NewNat().SetBytes(priv.Precomputed.Qinv.Bytes(), P)
		rsa.go#L675: 		m = bigmod.NewNat().Exp(t0.Mod(c, P), priv.Precomputed.Dp.Bytes(), P)
		rsa.go#L677: 		m2 := bigmod.NewNat().Exp(t0.Mod(c, Q), priv.Precomputed.Dq.Bytes(), Q)

	crypto/x509
		x509.go#L2380: 	if numBytes := template.Number.Bytes(); len(numBytes) > 20 || (len(numBytes) == 20 && numBytes[0]&0x80 != 0) {

	encoding/asn1
		marshal.go#L209: 		bytes := nMinus1.Bytes()
		marshal.go#L221: 		bytes := n.Bytes()

	github.com/gotd/td/internal/crypto
		rsa.go#L37: 	return m.Bytes(), nil
		rsa_fingerprint.go#L20: 	buf.PutBytes(key.N.Bytes())
		rsa_fingerprint.go#L21: 	buf.PutBytes(e.Bytes())
		temp_keys.go#L11: 	buf = append(buf, a.Bytes()...)
		temp_keys.go#L12: 	buf = append(buf, b.Bytes()...)
		temp_keys.go#L33: 	iv = append(iv, newNonce.Bytes()[:4]...)

	github.com/gotd/td/internal/exchange
		client_flow.go#L78: 	pBytes := p.Bytes()
		client_flow.go#L79: 	qBytes := q.Bytes()
		client_flow.go#L194: 			GB:          gB.Bytes(),
		server_flow.go#L128: 		Pq:          pq.Bytes(),
		server_flow.go#L204: 		GA:          ga.Bytes(),
		server_flow.go#L205: 		DhPrime:     dhPrime.Bytes(),

	vendor/golang.org/x/crypto/cryptobyte
		asn1.go#L80: 			bytes := nMinus1.Bytes()
		asn1.go#L91: 			bytes := n.Bytes()