ourssh

package module
v0.0.0-...-650f787 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateDSAKeys

func GenerateDSAKeys(bitSize int, passphrase string) (pubKey string, privKey string, err error)

GenerateDSAKeys generates DSA public and private key pair with given size for SSH.

func GenerateECDSAKeys

func GenerateECDSAKeys(bitSize int, passphrase string) (pubKey string, privKey string, err error)

GenerateECDSAKeys generates ECDSA public and private key pair with given size for SSH.

func GenerateEd25519Keys

func GenerateEd25519Keys(passphrase string) (pubKey string, privKey string, err error)

GenerateEd25519Keys generates Ed25519 public and private key pair with given size for SSH.

func GenerateRSAKeys

func GenerateRSAKeys(bitSize int, passphrase string) (pubKey string, privKey string, err error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL