ed25519

package
v1.19.14 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyPair added in v1.17.32

type KeyPair struct {
	Public  ed25519.PublicKey
	Private ed25519.PrivateKey
}

func Generate

func Generate() (*KeyPair, error)

func (KeyPair) MarshalPem added in v1.17.32

func (a KeyPair) MarshalPem() (public, private []byte, err error)

func (KeyPair) MarshalSSH added in v1.17.32

func (a KeyPair) MarshalSSH(comment string) (public, private []byte, err error)

type Loader added in v1.19.1

type Loader struct {
	Dir string
}

func (Loader) LoadPem added in v1.19.3

func (loader Loader) LoadPem(filename string) ([]byte, error)

func (Loader) LoadPrivateKey added in v1.19.1

func (loader Loader) LoadPrivateKey(filename string) (ed25519.PrivateKey, error)

func (Loader) LoadPublicKey added in v1.19.1

func (loader Loader) LoadPublicKey(filename string) (ed25519.PublicKey, error)

Jump to

Keyboard shortcuts

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