Discover Packages
git.schwanenlied.me/yawning/basket2.git
internal
ext
x25519
elligator2
package
Version:
v0.0.0-...-796008b
Opens a new window with list of versions in this module.
Published: Jun 9, 2016
License: AGPL-3.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
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.
See http://elligator.cr.yp.to/elligator-20130828.pdf .
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.
func GenerateKey(random io .Reader , publicKey, representative, privateKey *[32]byte ) error
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(publicKey, representative *[32]byte )
RepresentativeToPublicKey converts a uniform representative value for a
curve25519 public key, as produced by GenerateKey, to a curve25519 public
key.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.