sshutil

package
v4.2.0-alpha.1+incompa... Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: Apache-2.0 Imports: 5 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