-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to gen_safe_prime() for another keygen speed boost.
gen_safe_prime_exact() starts from gen_prime_exact(), which always sets the high bit. Since gen_safe_prime_exact() may actually return (p<<1)+1, this actually significantly increases the odds of generating a too-large key and forcing us to re-start the keygen loop.
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 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