Make number of Miller-Rabin tests for a prime tests depend on the security level...
authorKurt Roeckx <kurt@roeckx.be>
Wed, 25 Jul 2018 16:55:16 +0000 (18:55 +0200)
committerKurt Roeckx <kurt@roeckx.be>
Thu, 26 Jul 2018 04:27:23 +0000 (06:27 +0200)
commitfeac7a1c8be49fbcb76fcb721ec9f02fdd91030e
tree88ede710c95c167bac310bdd7a1da9470b6508f0
parent74ee379651fb2bb12c6f7eb9fa10e70be89ac7c8
Make number of Miller-Rabin tests for a prime tests depend on the security level of the prime

The old numbers where all generated for an 80 bit security level. But
the number should depend on security level you want to reach. For bigger
primes we want a higher security level and so need to do more tests.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
GH: #6075
Fixes: #6012
CHANGES
doc/man3/BN_generate_prime.pod
include/openssl/bn.h