diff options
author | Jack Lloyd <[email protected]> | 2018-04-17 11:12:13 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-04-17 11:36:17 -0400 |
commit | 83d8a4871750df398e9a0438f70a7df96c13c66c (patch) | |
tree | fa2b429d8b0612c74125180f46f55527f8ba5923 /src/tests/test_eckcdsa.cpp | |
parent | 8e1ac525333fcb09aca9f9f5126e14f8389d82ec (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_eckcdsa.cpp')
0 files changed, 0 insertions, 0 deletions