math/big.Int.Bytes (method)
27 uses
math/big (current package)
int.go#L452: func (x *Int) Bytes() []byte {
crypto/ecdsa
ecdsa.go#L158: priv.PublicKey.X, priv.PublicKey.Y = c.ScalarBaseMult(k.Bytes())
ecdsa.go#L216: md.Write(priv.D.Bytes()) // the private key,
ecdsa.go#L260: r, _ = priv.Curve.ScalarBaseMult(k.Bytes())
ecdsa.go#L323: x, y = opt.CombinedMult(pub.X, pub.Y, u1.Bytes(), u2.Bytes())
ecdsa.go#L325: x1, y1 := c.ScalarBaseMult(u1.Bytes())
ecdsa.go#L326: x2, y2 := c.ScalarMult(pub.X, pub.Y, u2.Bytes())
crypto/elliptic
p224.go#L727: bytes := in.Bytes()
encoding/asn1
marshal.go#L209: bytes := nMinus1.Bytes()
marshal.go#L221: bytes := n.Bytes()
golang.org/x/crypto/openpgp/elgamal
elgamal.go#L84: em := s.Bytes()
golang.org/x/crypto/openpgp/packet
packet.go#L560: return writeMPI(w, uint16(i.BitLen()), i.Bytes())
public_key.go#L177: bytes: n.Bytes(),
signature.go#L533: sig.DSASigR.bytes = r.Bytes()
signature.go#L535: sig.DSASigS.bytes = s.Bytes()
golang.org/x/crypto/ssh
kex.go#L255: secret, _ := kex.curve.ScalarMult(x, y, ephKey.D.Bytes())
kex.go#L346: secret, _ := kex.curve.ScalarMult(clientX, clientY, ephKey.D.Bytes())
keys.go#L519: rb := r.Bytes()
keys.go#L520: sb := s.Bytes()
keys.go#L1036: r := asn1Sig.R.Bytes()
keys.go#L1037: s := asn1Sig.S.Bytes()
keys.go#L1427: x, y := curve.ScalarBaseMult(key.D.Bytes())
messages.go#L707: bytes := nMinus1.Bytes()
messages.go#L722: bytes := n.Bytes()
vendor/golang.org/x/crypto/cryptobyte
asn1.go#L80: bytes := nMinus1.Bytes()
asn1.go#L91: bytes := n.Bytes()
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |