1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-08 08:58:00 +00:00
putty-source/keygen
Simon Tatham 3bb12dff3b Make pcs_set_oneshot even more one-shot.
Previously, it would generate a prime candidate, test it, and abort if
that candidate failed to be prime. Now, it's even willing to fail
_before_ generating a prime candidate, if the first attempt to even do
that is unsuccessful.

This doesn't affect the existing use case of pcs_set_oneshot, which is
during generation of a safe prime (as implemented by test/primegen.py
--safe), where you want to make a PrimeCandidateSource that can only
return 2p+1 for your existing prime p, and then abort if that fails
the next step of testing. In that situation, the PrimeCandidateSource
will never fail to generate its first output anyway.

But these changed semantics will become useful in another use I'm
about to find for one-shot mode.
2021-08-27 18:04:49 +01:00
..
CMakeLists.txt Move key-generation code into its own subdir. 2021-04-22 18:09:13 +01:00
dsa.c Spelling: standardise on "DSA", not "DSS". 2021-04-22 18:34:47 +01:00
ecdsa.c Move key-generation code into its own subdir. 2021-04-22 18:09:13 +01:00
millerrabin.c Side-channel-safe rewrite of the Miller-Rabin test. 2021-08-27 18:04:49 +01:00
mpunsafe.c Make mp_unsafe_mod_integer not be unsafe. 2021-08-27 17:43:40 +01:00
mpunsafe.h Make mp_unsafe_mod_integer not be unsafe. 2021-08-27 17:43:40 +01:00
pockle.c Move key-generation code into its own subdir. 2021-04-22 18:09:13 +01:00
prime.c Move key-generation code into its own subdir. 2021-04-22 18:09:13 +01:00
primecandidate.c Make pcs_set_oneshot even more one-shot. 2021-08-27 18:04:49 +01:00
rsa.c Move key-generation code into its own subdir. 2021-04-22 18:09:13 +01:00
smallprimes.c Move key-generation code into its own subdir. 2021-04-22 18:09:13 +01:00