sig_ed25519

package
v0.0.0-...-cb92b4e Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: MPL-2.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 PrivateKey

type PrivateKey = [ed25519.PrivateKeySize]byte

func PrivateKeyFromStandard

func PrivateKeyFromStandard(x ed25519.PrivateKey) (ret PrivateKey)

type PublicKey

type PublicKey = [ed25519.PublicKeySize]byte

func PublicKeyFromStandard

func PublicKeyFromStandard(x ed25519.PublicKey) (ret PublicKey)

type Scheme

type Scheme struct{}

func New

func New() Scheme

func (Scheme) DerivePublic

func (s Scheme) DerivePublic(priv *PrivateKey) (ret PublicKey)

func (Scheme) Generate

func (s Scheme) Generate(rng io.Reader) (retPub PublicKey, retPriv PrivateKey, _ error)

func (Scheme) MarshalPrivate

func (s Scheme) MarshalPrivate(dst []byte, priv *PrivateKey)

func (Scheme) MarshalPublic

func (s Scheme) MarshalPublic(dst []byte, pub *PublicKey)

func (Scheme) ParsePrivate

func (s Scheme) ParsePrivate(x []byte) (PrivateKey, error)

func (Scheme) ParsePublic

func (s Scheme) ParsePublic(x []byte) (PublicKey, error)

func (Scheme) PrivateKeySize

func (s Scheme) PrivateKeySize() int

func (Scheme) PublicKeySize

func (s Scheme) PublicKeySize() int

func (Scheme) Sign

func (s Scheme) Sign(dst []byte, priv *PrivateKey, msg []byte)

func (Scheme) Sign512

func (s Scheme) Sign512(dst []byte, priv *PrivateKey, input *sign.Input512)

func (Scheme) SignatureSize

func (s Scheme) SignatureSize() int

func (Scheme) Verify

func (s Scheme) Verify(pub *PublicKey, msg, sig []byte) bool

func (Scheme) Verify512

func (s Scheme) Verify512(pub *PublicKey, input *sign.Input512, sig []byte) bool

Jump to

Keyboard shortcuts

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