ssh

package
v1.22.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPrivateKey

func NewPrivateKey(bits int) (*rsa.PrivateKey, error)

func NewPublicKey

func NewPublicKey(privateKey *rsa.PrivateKey) ([]byte, error)

func RSAToPEM

func RSAToPEM(privateKey *rsa.PrivateKey) ([]byte, error)

Types

type SSHKey

type SSHKey struct {
	Private []byte
	Public  []byte
}

func NewPrivatePublicKeyPair

func NewPrivatePublicKeyPair(bits int) (SSHKey, error)

Jump to

Keyboard shortcuts

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