putty

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyTypeDSA      = "ssh-dss"
	KeyTypeECDSA256 = "ecdsa-sha2-nistp256"
	KeyTypeECDSA384 = "ecdsa-sha2-nistp384"
	KeyTypeECDSA521 = "ecdsa-sha2-nistp521"
	KeyTypeEd25519  = "ssh-ed25519"
	KeyTypeEd448    = "ssh-ed448"
	KeyTypeRSA      = "ssh-rsa"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Keypair

type Keypair interface {
	Type() string
	Private() crypto.PrivateKey
	Public() crypto.PublicKey
	Comment() string
}

func UnmarshalKeypair

func UnmarshalKeypair(privBytes, pubBytes []byte, comment string) (Keypair, error)

type PublicKey

type PublicKey interface {
	Type() string
	Key() crypto.PublicKey
	Comment() string
}

func UnmarshalPublicKey

func UnmarshalPublicKey(pubBytes []byte, comment string) (PublicKey, error)

Jump to

Keyboard shortcuts

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