Versions in this module Expand all Collapse all go1 go1.18.10 Jan 10, 2023 Changes in this version + func Sign(rand io.Reader, priv *PrivateKey, hash []byte) (r, s *big.Int, err error) + func SignASN1(rand io.Reader, priv *PrivateKey, hash []byte) ([]byte, error) + func Verify(pub *PublicKey, hash []byte, r, s *big.Int) bool + func VerifyASN1(pub *PublicKey, hash, sig []byte) bool + type PrivateKey struct + D *big.Int + func GenerateKey(c elliptic.Curve, rand io.Reader) (*PrivateKey, error) + func (priv *PrivateKey) Equal(x crypto.PrivateKey) bool + func (priv *PrivateKey) Public() crypto.PublicKey + func (priv *PrivateKey) Sign(rand io.Reader, digest []byte, opts crypto.SignerOpts) ([]byte, error) + type PublicKey struct + X *big.Int + Y *big.Int + func (pub *PublicKey) Equal(x crypto.PublicKey) bool