ed25519

package
v1.19.28 Latest Latest
Warning

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

Go to latest
Published: May 17, 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

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

func Generate

func Generate() (*KeyPair, error)

func (KeyPair) MarshalPem

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

func (KeyPair) MarshalSSH

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

type Loader

type Loader struct {
	Dir string
}

func (Loader) LoadPem added in v1.19.3

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

func (Loader) LoadPrivateKey

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

func (Loader) LoadPublicKey

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