Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalPrivateKey ¶
func MarshalPrivateKey(key *PrivateKey) ([]byte, error)
MarshalPrivateKey returns the PEM encoded private key.
func MarshalPublicKey ¶
MarshalPublicKey returns the PEM encoded public key.
Types ¶
type PrivateKey ¶
type PrivateKey = rsa.PrivateKey
func NewPrivateKey ¶
func NewPrivateKey() (*PrivateKey, error)
NewPrivateKey returns a new private key.
func UnmarshalPrivateKey ¶
func UnmarshalPrivateKey(b []byte) (*PrivateKey, error)
UnmarshalPrivateKey returns a private key from a PEM encoded key.
Click to show internal directories.
Click to hide internal directories.