sshutil

package
v0.0.0-...-3f85c9d Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2020 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

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