sshutil

package
v4.1.1-rc2+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2019 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