x25519

package
v0.0.0-...-d958ee8 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PublicKeySize  = 32
	PrivateKeySize = 32
)

Variables

This section is empty.

Functions

func ECDH

func ECDH(privateKey *PrivateKey, publicKey *PublicKey) ([]byte, error)

func Generate

func Generate() (*PublicKey, *PrivateKey)

Types

type PrivateKey

type PrivateKey = ecdh.PrivateKey

func PrivateKeyFromBytes

func PrivateKeyFromBytes(bytes []byte) (*PrivateKey, error)

type PublicKey

type PublicKey = ecdh.PublicKey

func PublicKeyFromBytes

func PublicKeyFromBytes(bytes []byte) (*PublicKey, error)

Jump to

Keyboard shortcuts

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