curve25519

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratePrivateKey

func GeneratePrivateKey() [keySize]byte

GeneratePrivateKey returns random bytes.

func PublicKey

func PublicKey(privateKey [keySize]byte) [keySize]byte

PublicKey returns a Curve25519 public key derived from privateKey.

func SharedSecret

func SharedSecret(privateKey, otherPublicKey [keySize]byte) [keySize]byte

SharedSecret returns a Curve25519 shared secret derived from privateKey and otherPublicKey.

Types

This section is empty.

Jump to

Keyboard shortcuts

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