Commit graph

18 commits

Author SHA1 Message Date
DataHoarder f0596f127a
Replace package name with git.gammaspectra.live/P2Pool/edwards25519 2024-04-05 09:03:06 +02:00
Cuong Manh Le f25ca2c5f0 edwards25519: drop Go builders noopt check 2023-12-10 20:00:03 +01:00
Filippo Valsorda 7873dc1956 edwards25519: extend benchmarks 2022-05-24 17:21:59 +02:00
Filippo Valsorda dd0c73fa20 all: sync with landed standard library upstream 2021-05-26 18:09:02 +02:00
Filippo Valsorda 32a46d7b75
edwards25519: document why this can't implement X25519
Thanks to @hdevalence for pointing out the issue with points on the twist.
2021-01-31 15:10:24 +01:00
Filippo Valsorda d791cf80f9 edwards25519: use testing.AllocsPerRun for TestAllocations 2020-12-13 18:17:45 +01:00
Filippo Valsorda 8cc8037b17 edwards25519: smooth a couple test coverage rough edges
Also, document the Pow22523 ladder. See also golang/go#39554.
2020-12-13 05:23:32 +01:00
Filippo Valsorda 9063a14176 edwards25519: test that operations cause zero heap allocations 2020-12-13 02:45:23 +01:00
Filippo Valsorda c1fe95af5a edwards25519: add MultByCofactor
The implementation is a bit of a hack, we can probably save some
operations by not doing the two projP2.FromP1xP1 conversions, but it's
unclear if the performance matters to anyone.

For hdevalence/ed25519consensus#5
2020-12-12 13:11:47 +01:00
Filippo Valsorda 132d95c169 edwards25519: sprinkle on-curve checks around tests 2020-12-12 12:01:36 +01:00
Filippo Valsorda ffb3e31d83 edwards25519: specify the behavior of Invert(0) and I.BytesMontgomery() 2020-12-05 02:30:18 +01:00
Filippo Valsorda 77d7b3141c edwards25519: add (*Point).BytesMontgomery 2020-11-28 04:38:15 +01:00
Filippo Valsorda 6e8d645c8b edwards25519: implement (*Point).Bytes and (*Point).SetBytes 2020-11-28 04:38:15 +01:00
Filippo Valsorda f28d75ad5d edwards25519: change constructors
We now don't have a NewPoint which maybe helps imply there isn't a zero
value for a Point, and renamed Zero and One to Identity and Generator.
2020-11-23 02:57:28 +01:00
Filippo Valsorda c5c2e9e1ac edwards25519: rename ProjP3 to Point and unexport other point types 2020-09-28 14:18:44 +02:00
Filippo Valsorda 07a7683e64 edwards25519: hide some more exposed symbols 2020-09-28 14:18:44 +02:00
Filippo Valsorda d3569cbbb3 all: flatten the package and make FieldElement opaque
For the license changes, see gtank/ristretto255-private#28 and
gtank/ristretto255#32, that contribute all code in those repositories to
the Go project under the Google CLA.
2020-09-28 14:18:44 +02:00
Filippo Valsorda 6f5f5828e1 all: expose edwards25519, base, and scalar packages 2020-08-27 00:35:09 -04:00
Renamed from internal/edwards25519/edwards25519_test.go (Browse further)