crypto/internal/bigmod.Nat.Bytes (method)
10 uses
crypto/internal/bigmod (current package)
nat.go#L131: func (x *Nat) Bytes(m *Modulus) []byte {
crypto/ecdsa
ecdsa.go#L192: priv.D = new(big.Int).SetBytes(k.Bytes(c.N))
ecdsa.go#L236: p, err = c.newPoint().ScalarBaseMult(k.Bytes(c.N))
ecdsa.go#L335: return encodeSignature(r.Bytes(c.N), s.Bytes(c.N))
ecdsa.go#L368: kBytes, err := nistec.P256OrdInverse(k.Bytes(c.N))
ecdsa.go#L526: p1, err := c.newPoint().ScalarBaseMult(e.Mul(w, c.N).Bytes(c.N))
ecdsa.go#L531: p2, err := Q.ScalarMult(Q, w.Mul(r, c.N).Bytes(c.N))
crypto/rsa
rsa.go#L495: return bigmod.NewNat().ExpShort(m, e, N).Bytes(N), nil
rsa.go#L695: return m.Bytes(N), nil
|
The pages are generated with Golds v0.6.7. (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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |