aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_pubkey.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-04-17 11:12:13 -0400
committerJack Lloyd <[email protected]>2018-04-17 11:36:17 -0400
commit83d8a4871750df398e9a0438f70a7df96c13c66c (patch)
treefa2b429d8b0612c74125180f46f55527f8ba5923 /src/tests/test_pubkey.h
parent8e1ac525333fcb09aca9f9f5126e14f8389d82ec (diff)
Avoid potential side channel when generating RSA primes
Add a new function dedicated to generating RSA primes. Don't test for p.bits() > bits until the very end - rarely happens, and speeds up prime generation quite noticably. Add Miller-Rabin error probabilities for 1/2**128, which again speeds up RSA keygen and DL param gen quite a bit.
Diffstat (limited to 'src/tests/test_pubkey.h')
0 files changed, 0 insertions, 0 deletions