Documentation ¶
Overview ¶
Package dsa provides a mockable wrapper for crypto/dsa.
Index ¶
- type Impl
- func (*Impl) GenerateKey(priv *dsa.PrivateKey, rand io.Reader) error
- func (*Impl) GenerateParameters(params *dsa.Parameters, rand io.Reader, sizes dsa.ParameterSizes) error
- func (*Impl) Sign(rand io.Reader, priv *dsa.PrivateKey, hash []byte) (r *big.Int, s *big.Int, err error)
- func (*Impl) Verify(pub *dsa.PublicKey, hash []byte, r *big.Int, s *big.Int) 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 ¶
func (*Impl) GenerateParameters ¶
func (*Impl) GenerateParameters(params *dsa.Parameters, rand io.Reader, sizes dsa.ParameterSizes) error
type Interface ¶
type Interface interface { GenerateKey(priv *dsa.PrivateKey, rand io.Reader) error GenerateParameters(params *dsa.Parameters, rand io.Reader, sizes dsa.ParameterSizes) error Sign(rand io.Reader, priv *dsa.PrivateKey, hash []byte) (r *big.Int, s *big.Int, err error) Verify(pub *dsa.PublicKey, hash []byte, r *big.Int, s *big.Int) bool }
Click to show internal directories.
Click to hide internal directories.