math/big.Int.FillBytes (method)
14 uses
math/big (current package)
int.go#L532: func (x *Int) FillBytes(buf []byte) []byte {
crypto/ecdsa
ecdsa.go#L108: return c.NewPrivateKey(k.D.FillBytes(make([]byte, size)))
ecdsa.go#L598: x.FillBytes(buf[1 : 1+byteLen])
ecdsa.go#L599: y.FillBytes(buf[1+byteLen : 1+2*byteLen])
crypto/elliptic
elliptic.go#L117: x.FillBytes(ret[1 : 1+byteLen])
elliptic.go#L118: y.FillBytes(ret[1+byteLen : 1+2*byteLen])
elliptic.go#L131: x.FillBytes(compressed[1:])
nistec.go#L156: x.FillBytes(buf[1 : 1+byteLen])
nistec.go#L157: y.FillBytes(buf[1+byteLen : 1+2*byteLen])
nistec.go#L206: return s.FillBytes(out)
nistec_p256.go#L23: scalar := k.FillBytes(make([]byte, 32))
crypto/x509
sec1.go#L64: PrivateKey: key.D.FillBytes(privateKey),
github.com/golang-jwt/jwt/v5
ecdsa.go#L127: r.FillBytes(out[0:keyBytes]) // r is assigned to the first half of output.
ecdsa.go#L128: s.FillBytes(out[keyBytes:]) // s is assigned to the second half of output.
![]() |
The pages are generated with Golds v0.7.6. (GOOS=linux 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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |