Documentation ¶
Index ¶
- func GenerateDSAKeys(bitSize int, passphrase string) (pubKey string, privKey string, err error)
- func GenerateECDSAKeys(bitSize int, passphrase string) (pubKey string, privKey string, err error)
- func GenerateEd25519Keys(passphrase string) (pubKey string, privKey string, err error)
- func GenerateRSAKeys(bitSize int, passphrase string) (pubKey string, privKey string, err error)
- func MarshalED25519PrivateKey(key ed25519.PrivateKey) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateDSAKeys ¶
GenerateDSAKeys generates DSA public and private key pair with given size for SSH.
func GenerateECDSAKeys ¶
GenerateECDSAKeys generates ECDSA public and private key pair with given size for SSH.
func GenerateEd25519Keys ¶
GenerateEd25519Keys generates Ed25519 public and private key pair with given size for SSH.
func GenerateRSAKeys ¶
GenerateRSAKeys generates RSA public and private key pair with given size for SSH.
func MarshalED25519PrivateKey ¶
func MarshalED25519PrivateKey(key ed25519.PrivateKey) []byte
MarshalED25519PrivateKey writes Ed25519 private keys into the new OpenSSH private key format.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.