Documentation ¶
Overview ¶
Package edwards25519 extends filippo.io/edwards25519 to support hash-to-curve according to the specification.
Index ¶
- func AffineToEdwards(x, y *field.Element) *edwards25519.Point
- func Elligator2Montgomery(e *field.Element) (x, y *field.Element)
- func EncodeToEdwards25519(input, dst []byte) *edwards25519.Point
- func HashToEdwards25519(input, dst []byte) *edwards25519.Point
- func HashToEdwards25519Field(input, dst []byte) *edwards25519.Scalar
- func MapToEdwards(e *field.Element) *edwards25519.Point
- func MontgomeryToEdwards(u, v *field.Element) (x, y *field.Element)
- func MontgomeryUToEdwardsY(u *field.Element) *field.Element
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AffineToEdwards ¶
func AffineToEdwards(x, y *field.Element) *edwards25519.Point
AffineToEdwards takes the affine coordinates of an Edwards25519 and returns a pointer to Point represented in extended projective coordinates.
func Elligator2Montgomery ¶
Elligator2Montgomery implements the Elligator2 mapping to Curve25519.
func EncodeToEdwards25519 ¶
func EncodeToEdwards25519(input, dst []byte) *edwards25519.Point
EncodeToEdwards25519 implements encode-to-curve mapping to Edwards25519 of input with dst.
func HashToEdwards25519 ¶
func HashToEdwards25519(input, dst []byte) *edwards25519.Point
HashToEdwards25519 implements hash-to-curve mapping to Edwards25519 of input with dst.
func HashToEdwards25519Field ¶
func HashToEdwards25519Field(input, dst []byte) *edwards25519.Scalar
HashToEdwards25519Field implements hash-to-scalar mapping.
func MapToEdwards ¶
func MapToEdwards(e *field.Element) *edwards25519.Point
MapToEdwards maps the field element to a point on Edwards25519.
func MontgomeryToEdwards ¶
MontgomeryToEdwards lifts a Curve25519 point to its Edwards25519 equivalent.
Types ¶
This section is empty.