Frank Denis 030fa5e7eb
25519: remove unused const, safeguard against unreduced scalars (#8624)
* 25519: remove unused const, safeguard against unreduced scalars

No behavior change, but it makes the existing code better match
the forthcoming code for other curves.

Rename nonAdjacentForm() to slide(), remove an unneeded and
confusing constant, and do a reduction in slide() if 257 bits would
be required.

Note that in all the high-level functions, the top bit is always
cleared, so the reduction is never necessary. But since the low-level
functions are public, the check is a safe thing to have.

* 25519: make identityElement public, deprecate neutralElement

Also fix a few comments by the way.
2021-04-26 22:25:48 +02:00
..
2021-04-23 23:40:42 -05:00
2021-04-04 17:04:46 -07:00
2021-04-04 17:04:46 -07:00
2021-04-11 16:26:29 +02:00
2021-04-14 17:53:27 +02:00
2021-02-25 22:20:30 +02:00
2021-03-18 14:05:01 -07:00
2021-02-28 14:03:19 +01:00
2021-04-20 16:19:59 -04:00
2020-12-31 15:45:24 -08:00
2020-12-31 15:45:24 -08:00
2021-01-07 23:48:58 -08:00
2020-12-31 15:45:24 -08:00
2021-04-25 21:15:02 +09:00
2020-12-31 15:45:24 -08:00
2021-03-28 14:32:34 +02:00
2021-03-18 14:05:01 -07:00
2020-12-31 15:45:24 -08:00
2021-02-24 21:29:23 -07:00
2020-12-31 15:45:24 -08:00
2020-12-31 15:45:24 -08:00
2021-04-25 19:10:11 +02:00
2020-12-31 15:45:24 -08:00
2021-04-12 17:18:56 -04:00
2020-12-31 15:45:24 -08:00
2021-03-11 10:09:51 +11:00
2020-12-31 15:45:24 -08:00
2020-12-31 15:45:24 -08:00
2020-12-31 15:45:24 -08:00
2021-02-16 23:20:46 +01:00
2020-12-31 15:45:24 -08:00
2021-02-24 21:29:23 -07:00
2021-04-21 06:49:34 +02:00
2021-04-23 19:19:44 +02:00
2021-02-28 14:03:19 +01:00
2020-12-31 15:45:24 -08:00
2021-04-11 16:26:29 +02:00
2021-04-25 21:15:02 +09:00