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 ¶
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 ¶
ToCurve25519 casts given elliptic.Curve type to Curve25519 type, or returns nil, false if cast was unsuccessful.
Types ¶
This section is empty.