Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodePrivateKey ¶
func DecodePrivateKey(k []byte) (crypto.PrivateKey, error)
DecodePrivateKey encodes public and private key to PEM format, returning them in that order.
func DecodePublicKey ¶
DecodePublicKey decodes public keys
func GenerateKeys ¶
GenerateKeys creates an RSA keypair and returns the public and private key, in that order.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.