Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateKeyPair ¶
func CreateKeyPair() (*rsa.PrivateKey, error)
func ParsePrivateKeyFromFile ¶
func ParsePrivateKeyFromFile(path string) (*rsa.PrivateKey, error)
func SaveKeyPairToFile ¶
func SaveKeyPairToFile(privateKey *rsa.PrivateKey)
Types ¶
type KeyPair ¶
type KeyPair struct { PublicKey PublicKey PrivateKey PrivateKey }
type PrivateKey ¶
type PrivateKey string
Click to show internal directories.
Click to hide internal directories.