Documentation ¶
Overview ¶
Package ecdsa implements ECDSA signature, suitable for OpenPGP, as specified in RFC 6637, section 5.
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.ECDSACurve) (priv *PrivateKey, err error)
func NewPrivateKey ¶
func NewPrivateKey(key PublicKey) *PrivateKey
func (*PrivateKey) MarshalIntegerSecret ¶
func (sk *PrivateKey) MarshalIntegerSecret() []byte
func (*PrivateKey) UnmarshalIntegerSecret ¶
func (sk *PrivateKey) UnmarshalIntegerSecret(d []byte) error
type PublicKey ¶
func NewPublicKey ¶
func NewPublicKey(curve ecc.ECDSACurve) *PublicKey
func (*PublicKey) GetCurve ¶
func (pk *PublicKey) GetCurve() ecc.ECDSACurve
func (*PublicKey) MarshalPoint ¶
func (*PublicKey) UnmarshalPoint ¶
Click to show internal directories.
Click to hide internal directories.