eddsa

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package eddsa provides the Elliptic Curve Diffie-Hellman key agreement algorithm defined in RFC 8032.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() sig.Algorithm

Types

type Algorithm

type Algorithm struct{}

func (*Algorithm) NewSigningKey

func (alg *Algorithm) NewSigningKey(key sig.Key) sig.SigningKey

type Ed25519 added in v0.0.3

type Ed25519 struct {
	// contains filtered or unexported fields
}

func (*Ed25519) Sign added in v0.0.3

func (key *Ed25519) Sign(payload []byte) (signature []byte, err error)

func (*Ed25519) Verify added in v0.0.3

func (key *Ed25519) Verify(payload, signature []byte) error

type Ed448 added in v0.0.3

type Ed448 struct {
	// contains filtered or unexported fields
}

func (*Ed448) Sign added in v0.0.3

func (key *Ed448) Sign(payload []byte) (signature []byte, err error)

func (*Ed448) Verify added in v0.0.3

func (key *Ed448) Verify(payload, signature []byte) error

Jump to

Keyboard shortcuts

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