curve25519

package module
v0.0.0-...-72b0f6e Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

README

curve25519

curve25519

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(x1, x2 []byte) []byte

func Decrypt

func Decrypt(priv []byte, c []byte) []byte

func Encrypt

func Encrypt(pub []byte, m []byte) []byte

func GenHash

func GenHash(h hash.Hash, data []byte) []byte

func IsOnCurve

func IsOnCurve(x []byte) bool

* -x^2 + y^2 = 1 + d * x^2 * y^2 * x = X / z, y = Y / z, y = Y/Z

func ScalarBaseMult

func ScalarBaseMult(k []byte) []byte

func ScalarMult

func ScalarMult(x1 []byte, k []byte) []byte

func Sign

func Sign(priv []byte, m []byte) []byte

func Sub

func Sub(x1, x2 []byte) []byte

func Verify

func Verify(pub []byte, m, s []byte) bool

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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