-
-
Notifications
You must be signed in to change notification settings - Fork 523
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gh-36805: fast path for Vélu isogenies with a single kernel generator
The current implementation of Vélu's formulas always assumes that the kernel subgroup is given by an arbitrary set of generators: The important special case of a single generator is handled using the same code as the general case. In this patch we add a fast path to handle a single generator, which can yield big speedups. Example: ```sage sage: E = EllipticCurve(GF(2^127-1), [1,1,1,1,1]) sage: P = E.lift_x(73833238617088645877502541346296796686) sage: P.set_order(2543) sage: %timeit E.isogeny(P) ``` Sage 10.2: ``` 63.6 ms ± 588 µs per loop (mean ± std. dev. of 7 runs, 10 loops each) ``` With this patch: ``` 33.3 ms ± 98.8 µs per loop (mean ± std. dev. of 7 runs, 10 loops each) ``` URL: #36805 Reported by: Lorenz Panny Reviewer(s): Giacomo Pope
- Loading branch information
Showing
1 changed file
with
90 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters