ssh

package
v0.0.0-...-c325cbb Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ECDSAP256

func ECDSAP256() (crypto.PrivateKey, error)

ECDSAP256 returns a ECDSA 256 private key

func ECDSAP384

func ECDSAP384() (crypto.PrivateKey, error)

ECDSA384 returns a ECDSA 384 private key

func ECDSAP521

func ECDSAP521() (crypto.PrivateKey, error)

ECDSAP521 returns a ECDSA 521 private key

func ED25519

func ED25519() (crypto.PrivateKey, error)

ED25519 returns a ed25519 private key

func FormatKey

func FormatKey(pk crypto.PrivateKey, comment string) (private string, public string, keyAlgorithm string, err error)

FormatKey formats the crypto key into PKCS8 encoded private key and openssh public keyline.

func GenerateHostKeys

func GenerateHostKeys() ([]crypto.PrivateKey, error)

GenerateHostKeys returns newly generated keys of various algorithms/curves/parameters to be used as ssh host heys.

func RSA2048

func RSA2048() (crypto.PrivateKey, error)

RSA2048 returns a RSA 2048 private key

func RSA3072

func RSA3072() (crypto.PrivateKey, error)

RSA3072 returns a RSA 3072 private key

Types

type KeyProfile

type KeyProfile func() (crypto.PrivateKey, error)

Jump to

Keyboard shortcuts

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