x25519

package
v0.0.0-...-bab0a8c Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrivateFromEd25519

func PrivateFromEd25519(privateKey *[32]byte) (x25519Private [32]byte)

PrivateFromEd25519 - Converts ed25519 to X25519 private key.

func Public

func Public(seed *[32]byte) (pubkey [32]byte)

Public - Computes public key from seed.

func PublicFromEd25519

func PublicFromEd25519(publicKey *[32]byte) (x25519Public [32]byte, ok bool)

PublicFromEd25519 - Converts ed25519 to X25519 public key.

func RandUniform

func RandUniform() (_ [32]byte, _ [32]byte, _ [32]byte, err error)

RandUniform - Generates a secret key whose corresponding public key has a uniform representative.

func Shared

func Shared(secret, public *[32]byte) (shared [32]byte)

Shared - Computes shared secret key.

Types

This section is empty.

Jump to

Keyboard shortcuts

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