Frank Denis
d8d2aa9af4
crypto.pcurves.common: generalize invert() ( #23039 )
...
The Bernstein-Yang inversion code was meant to be used only with the
fields we currently use for the NIST curves.
But people copied that code and were confused that it didn't work as
expected with other field sizes.
It doesn't cost anything to make it work with other field sizes,
that may support in the future. So let's do it.
This also reduces the diff with the example zig code in fiat crypto.
Suggested by @Rexicon226 -- Thank you!
2025-03-02 11:27:04 +01:00
..
2025-02-28 01:37:10 -08:00
2025-02-17 19:18:19 +01:00
2025-01-22 23:34:57 +09:00
2025-03-02 11:27:04 +01:00
2025-02-24 04:36:14 -05:00
2024-12-19 17:10:03 -05:00
2024-08-28 08:39:59 +01:00
2025-02-17 19:18:19 +01:00
2025-02-22 14:32:48 -08:00
2025-02-22 21:06:00 -05:00
2025-02-22 17:09:20 -08:00
2025-02-06 15:00:48 +01:00
2025-02-13 00:19:03 -08:00
2025-02-23 11:25:35 +00:00
2025-02-06 14:50:20 -08:00
2025-01-16 12:49:58 +00:00
2025-02-22 22:21:24 -08:00
2025-02-21 06:05:04 +01:00
2025-02-20 08:44:09 +01:00
2025-02-03 17:07:27 -08:00
2024-08-27 00:44:35 +01:00
2024-10-04 13:50:25 -07:00
2025-02-24 19:12:33 +01:00
2025-02-06 14:23:23 -08:00
2025-02-17 19:18:19 +01:00
2024-08-15 17:54:27 -07:00
2024-11-04 10:56:32 +01:00
2025-02-28 01:37:10 -08:00
2025-01-17 22:55:55 +01:00
2025-02-21 21:40:57 -05:00
2025-02-22 00:44:35 -05:00
2025-02-26 11:42:03 -08:00
2024-11-29 12:26:23 -08:00
2025-02-22 03:48:09 +01:00
2024-09-04 08:10:12 +00:00
2024-09-19 17:06:23 -07:00
2025-02-09 11:46:15 +00:00
2025-02-28 01:37:10 -08:00
2025-02-17 19:18:19 +01:00
2025-02-22 17:09:20 -08:00
2024-08-23 19:56:24 +02:00
2025-02-05 13:58:15 +01:00
2025-02-22 20:21:09 -05:00
2025-02-23 08:28:58 +00:00
2024-08-22 08:44:08 +02:00
2025-02-22 17:33:49 -05:00
2025-02-22 17:33:49 -05:00
2025-01-16 12:49:58 +00:00
2025-02-06 14:23:23 -08:00
2025-02-12 14:45:38 -08:00
2024-10-17 01:08:58 +02:00
2025-02-18 18:07:31 +03:30
2025-02-06 14:23:23 -08:00
2025-02-22 14:32:48 -08:00
2025-02-25 11:22:33 -08:00
2024-08-07 00:48:32 -07:00
2025-01-16 12:49:58 +00:00
2024-08-28 08:39:59 +01:00
2024-08-28 08:39:59 +01:00
2024-07-31 16:57:42 -07:00
2025-02-12 09:48:17 -05:00
2025-02-25 11:22:33 -08:00
2025-02-18 23:35:16 +01:00
2025-02-13 00:19:03 -08:00
2025-02-22 19:52:47 -08:00
2024-08-27 00:44:35 +01:00
2025-01-16 20:42:08 -05:00
2024-08-29 23:43:52 +01:00
2025-02-24 04:36:14 -05:00
2025-02-01 19:02:39 +01:00
2025-02-06 14:23:23 -08:00
2025-01-16 12:46:29 +00:00
2025-02-03 17:07:28 -08:00
2024-08-28 08:39:59 +01:00
2024-10-31 20:42:53 +00:00
2025-01-16 20:42:08 -05:00
2024-09-23 13:03:06 -07:00
2025-02-06 14:23:23 -08:00
2025-02-25 11:22:33 -08:00
2024-10-04 13:50:25 -07:00
2025-02-25 20:30:43 +01:00
2025-02-16 15:51:40 +01:00
2025-02-24 04:36:14 -05:00
2025-02-21 09:03:46 +01:00
2024-07-28 19:47:55 -07:00
2024-08-21 01:30:46 +01:00
2024-11-04 12:39:48 +01:00
2025-01-15 15:11:36 -08:00
2025-02-27 01:32:49 -05:00
2025-02-06 14:23:23 -08:00
2025-02-03 09:14:37 +00:00