Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrivateKey ¶
type PrivateKey struct {
// contains filtered or unexported fields
}
PrivateKey represents a loaded ECDSA private key.
func FromBytes ¶
func FromBytes(data []byte) (*PrivateKey, error)
FromBytes loads an ECDSA private key from PEM data.
func (*PrivateKey) Bytes ¶
func (p *PrivateKey) Bytes() []byte
Bytes returns the bytes of the ECDSA private key.
func (*PrivateKey) PrivateKey ¶
func (p *PrivateKey) PrivateKey() *ecdsa.PrivateKey
PrivateKey returns the ECDSA private key.
func (*PrivateKey) PublicKey ¶
func (p *PrivateKey) PublicKey() *ecdsa.PublicKey
PublicKey returns the ECDSA public key.
Click to show internal directories.
Click to hide internal directories.