Documentation ¶
Overview ¶
Package eddsa implements EdDSA signature, suitable for OpenPGP, as specified in https://datatracker.ietf.org/doc/html/draft-ietf-openpgp-crypto-refresh-06#section-13.7
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Validate ¶
func Validate(priv *PrivateKey) error
Types ¶
type PrivateKey ¶
func GenerateKey ¶
func GenerateKey(rand io.Reader, c ecc.EdDSACurve) (priv *PrivateKey, err error)
func NewPrivateKey ¶
func NewPrivateKey(key PublicKey) *PrivateKey
func (*PrivateKey) MarshalByteSecret ¶
func (sk *PrivateKey) MarshalByteSecret() []byte
func (*PrivateKey) UnmarshalByteSecret ¶
func (sk *PrivateKey) UnmarshalByteSecret(d []byte) error
type PublicKey ¶
type PublicKey struct { X []byte // contains filtered or unexported fields }
func NewPublicKey ¶
func NewPublicKey(curve ecc.EdDSACurve) *PublicKey
func (*PublicKey) GetCurve ¶
func (pk *PublicKey) GetCurve() ecc.EdDSACurve
func (*PublicKey) MarshalPoint ¶
func (*PublicKey) UnmarshalPoint ¶
Click to show internal directories.
Click to hide internal directories.