ed25519

package
v0.0.0-...-05098b9 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ED25519

type ED25519 struct{}

ED25519 struct to implement the IED25519 methods

func (*ED25519) Ed25519

func (e *ED25519) Ed25519() (ed25519.PrivateKey, ed25519.PublicKey, error)

Ed25519 generates a new ed25519 private/public keys

func (*ED25519) Ed25519PEM

Ed25519PEM generates new ed25519 private/public pem keys

func (*ED25519) FromPEM

func (e *ED25519) FromPEM(privatePEM p.PrivatePEM, publicPEM p.PublicPEM) (ed25519.PrivateKey, ed25519.PublicKey, error)

FromPEM takes pem keys and converts them into a ed25519 keys

func (*ED25519) FromPEMPrivateKey

func (e *ED25519) FromPEMPrivateKey(privatePEM p.PrivatePEM) (ed25519.PrivateKey, error)

FromPEMPrivateKey takes a private pem key and converts it into a ed25519 private key

func (*ED25519) FromPEMPublicKey

func (e *ED25519) FromPEMPublicKey(publicPEM p.PublicPEM) (ed25519.PublicKey, error)

FromPEMPublicKey takes a public pem key and converts it into a ed25519 public key

func (*ED25519) ToPEM

func (e *ED25519) ToPEM(privateKey ed25519.PrivateKey, publicKey ed25519.PublicKey) (p.PrivatePEM, p.PublicPEM, error)

ToPEM converts ed25519 private & public keys, into private & public PEM keys

func (*ED25519) ToPEMPrivateKey

func (e *ED25519) ToPEMPrivateKey(privateKey ed25519.PrivateKey) (p.PrivatePEM, error)

ToPEMPrivateKey converts a ed25519 private key into a private PEM key

func (*ED25519) ToPEMPublicKey

func (e *ED25519) ToPEMPublicKey(publicKey ed25519.PublicKey) (p.PublicPEM, error)

ToPEMPublicKey converts a ed25519 public key into a public PEM key

type IED25519

IED25519 interface for methods to generate ed25519 keys and conversion to PEM format

func NewED25519

func NewED25519() IED25519

NewED25519 gets a new ED25519 pointer

Jump to

Keyboard shortcuts

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