Documentation ¶
Overview ¶
Package elligator2 implements the Elligator 2 forward/reverse mapping for Curve25519. This implementation does NOT interoperate with the original codebase as the original codebase is wrong.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrKeygenFailed = errors.New("elligator2: failed to generate key pair")
ErrKeygenFailed is the error returned when a suitable base keypair was not generated after the maximum number of retries.
Functions ¶
func GenerateKey ¶
GenerateKey generates a Curve25519 key pair along with a uniform representative for the public key, using the random source random (Hint: crypto/rand.Reader).
func RepresentativeToPublicKey ¶
func RepresentativeToPublicKey(publicKey, representative *[32]byte)
RepresentativeToPublicKey converts a uniform representative value for a curve25519 public key, as produced by GenerateKey, to a curve25519 public key.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.