hcrypto: trim number of trials in prime number generation
authorLuke Howard <lukeh@padl.com>
Sun, 12 Apr 2020 10:39:16 +0000 (20:39 +1000)
committerLuke Howard <lukeh@padl.com>
Fri, 24 Apr 2020 01:59:54 +0000 (11:59 +1000)
commitdfb1e6fcf8e1b7b0ed507f32ad91e531ea3bcd3e
tree8b1bd37a19db033657de3b845963f34096ed6398
parent7eb397834e596ddb28bc0d3ce720b86b3d8d12a9
hcrypto: trim number of trials in prime number generation

Reduce the number of trials when generating RSA keys by calling
mp_prime_rabin_miller_trials() with the number of desired bits.

See libtom/libtommath#482.
lib/hcrypto/rsa-ltm.c