ed25519

package
v1.16.30 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalOpenSshPrivateKey

func MarshalOpenSshPrivateKey(key ed25519.PrivateKey) []byte

Types

type Key

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

func Generate

func Generate(randRand *rand.Rand) (*Key, error)

func (Key) MarshalPem

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

func (Key) MarshalSSH

func (a Key) MarshalSSH() (public []byte, private []byte, err error)

Jump to

Keyboard shortcuts

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