curve25519

package
v0.0.0-...-3bb107c Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Verify

func Verify(message []byte, signature *Signature, pk *PublicKey, enforceCanonical bool) bool

Types

type PrivateKey

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

func GenerateKey

func GenerateKey() (sk *PrivateKey)

func NewPrivateKey

func NewPrivateKey(bytes []byte) (sk *PrivateKey)

func (*PrivateKey) Public

func (sk *PrivateKey) Public() (pk *PublicKey)

func (*PrivateKey) SharedSecret

func (sk *PrivateKey) SharedSecret(pk *PublicKey) []byte

func (*PrivateKey) Sign

func (sk *PrivateKey) Sign(message []byte) (signature *Signature)

type PublicKey

type PublicKey [32]byte

func NewPublicKey

func NewPublicKey(bytes []byte) (pk *PublicKey)

type Signature

type Signature [64]byte

func NewSignature

func NewSignature(bytes []byte) (s *Signature)

Jump to

Keyboard shortcuts

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