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