Documentation ¶
Overview ¶
Package ecdsa provides a mockable wrapper for crypto/ecdsa.
Index ¶
- type Impl
- func (*Impl) GenerateKey(c elliptic.Curve, rand io.Reader) (*ecdsa.PrivateKey, error)
- func (*Impl) Sign(rand io.Reader, priv *ecdsa.PrivateKey, hash []byte) (r *big.Int, s *big.Int, err error)
- func (*Impl) SignASN1(rand io.Reader, priv *ecdsa.PrivateKey, hash []byte) ([]byte, error)
- func (*Impl) Verify(pub *ecdsa.PublicKey, hash []byte, r *big.Int, s *big.Int) bool
- func (*Impl) VerifyASN1(pub *ecdsa.PublicKey, hash []byte, sig []byte) bool
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Impl ¶
type Impl struct{}
func (*Impl) GenerateKey ¶
type Interface ¶
type Interface interface { GenerateKey(c elliptic.Curve, rand io.Reader) (*ecdsa.PrivateKey, error) Sign(rand io.Reader, priv *ecdsa.PrivateKey, hash []byte) (r *big.Int, s *big.Int, err error) SignASN1(rand io.Reader, priv *ecdsa.PrivateKey, hash []byte) ([]byte, error) Verify(pub *ecdsa.PublicKey, hash []byte, r *big.Int, s *big.Int) bool VerifyASN1(pub *ecdsa.PublicKey, hash []byte, sig []byte) bool }
Click to show internal directories.
Click to hide internal directories.