Commit Graph

4 Commits

Author SHA1 Message Date
Yawning Angel
0f7ce7e653 fixup! internal/x25519ell2: Initial import
Fix a comment, no functional changes.
2022-01-01 09:29:51 +00:00
Yawning Angel
c083c6309a internal/x25519ell2: Add a canonical import path annotation 2021-12-31 06:33:11 +00:00
Yawning Angel
393aca86cc internal/x25519ell2: Initial import
Replace agl's Elligator2 implementation with a different one, that fixes
the various distinguishers stemming from bugs in the original
implementation and "The Elligator paper is extremely hard to read".

All releases prior to this commit are trivially distinguishable with
simple math, so upgrading is strongly recommended.  The upgrade is fully
backward-compatible with existing implementations, however the
non-upgraded side will emit traffic that is trivially distinguishable
from random.

Special thanks to Loup Vaillant for his body of work on this primitive,
and for motivating me to fix it.
2021-12-31 02:36:56 +00:00
Yawning Angel
2d8f3c8bbf common: Replace the extra25519 import with an internal package
I really didn't want to do this, but this should make `go get` work
again, and maybe people will leave me alone.
2020-04-10 11:36:29 +00:00