sshutil

package
v4.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: 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