Versions in this module Expand all Collapse all go1 go1.18.10 Jan 10, 2023 Changes in this version + var ErrInvalidPublicKey = errors.New("crypto/dsa: invalid public key") + func GenerateKey(priv *PrivateKey, rand io.Reader) error + func GenerateParameters(params *Parameters, rand io.Reader, sizes ParameterSizes) error + func Sign(rand io.Reader, priv *PrivateKey, hash []byte) (r, s *big.Int, err error) + func Verify(pub *PublicKey, hash []byte, r, s *big.Int) bool + type ParameterSizes int + const L1024N160 + const L2048N224 + const L2048N256 + const L3072N256 + type Parameters struct + G *big.Int + P *big.Int + Q *big.Int + type PrivateKey struct + X *big.Int + type PublicKey struct + Y *big.Int