Documentation ¶
Overview ¶
Package x25519ell2 implements obfuscated X25519 ECDH, via the Elligator2 mapping.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RepresentativeToPublicKey ¶
func RepresentativeToPublicKey(publicKey, representative *[32]byte)
RepresentativeToPublicKey converts a uniform representative value for a curve25519 public key, as produced by ScalarBaseMult, to a curve25519 public key.
func ScalarBaseMult ¶
ScalarBaseMult computes a curve25519 public key from a private key and also a uniform representative for that public key. Note that this function will fail and return false for about half of private keys.
The `privateKey` input MUST be the full 32-bytes of entropy (X25519-style "clamping" will result in non-uniformly distributed representatives).
WARNING: The underlying scalar multiply explicitly does not clear the cofactor, and thus the public keys will be different from those produced by normal implementations.
Types ¶
This section is empty.