Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeyPairExists ¶
Returns true if key pair with a given name exists in a specified directory.
Types ¶
type KeyFileError ¶
type KeyFileError struct {
// contains filtered or unexported fields
}
func NewKeyFileError ¶
func NewKeyFileError(keyType, fileName string, err error) KeyFileError
func (KeyFileError) Error ¶
func (e KeyFileError) Error() string
type KeyPair ¶
func NewKeyPair ¶
NewKeyPair generates new private and public key pair.
func ReadKeyPair ¶
ReadKeyPair reads public and private keys with a given name from the specified directory.
Click to show internal directories.
Click to hide internal directories.