curve25519

package
v1.1.7 Latest Latest
Warning

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

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

Documentation

Overview

Package curve25519 provides an implementation of scalar multiplication on the elliptic curve known as curve25519. See https://cr.yp.to/ecdh.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cv25519

func Cv25519() elliptic.Curve

Cv25519 returns a Curve which (partially) implements Cv25519. Only ScalarMult and ScalarBaseMult are valid for this curve. Add and Double should not be used.

func ScalarBaseMult

func ScalarBaseMult(dst, in *[32]byte)

ScalarBaseMult sets dst to the product in*base where dst and base are the x coordinates of group points, base is the standard generator and all values are in little-endian form.

func ScalarMult

func ScalarMult(dst, in, base *[32]byte)

ScalarMult sets dst to the product in*base where dst and base are the x coordinates of group points and all values are in little-endian form.

func ToCurve25519

func ToCurve25519(cv elliptic.Curve) (cv25519Curve, bool)

ToCurve25519 casts given elliptic.Curve type to Curve25519 type, or returns nil, false if cast was unsuccessful.

Types

This section is empty.

Jump to

Keyboard shortcuts

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