Versions in this module Expand all Collapse all v0 v0.4.1 Sep 8, 2018 v0.4.0 Jun 21, 2018 Changes in this version + const DSA + const ECDSA + const ED25519 + const RSA + var ErrUnsuppontedCurve = errors.New("only P-256, P-384 and P-521 EC keys are supported") + var ErrUnsupportedKeyLength = errors.New("invalid key length") + var ErrUnsupportedKeyType = errors.New("unsupported key type") + type Keydgen struct + Bits uint16 + Curve uint16 + Type string + func (k *Keydgen) GenerateKey(rand io.Reader) (key interface{}, err error) + func (k *Keydgen) MarshalPrivateKey() ([]byte, error) + func (k *Keydgen) MarshalPublicKey() ([]byte, error)