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:44:47 +0000 (06:44 +0200)
commitbe4e1f79f631e49c76d02fe4644b52f907c374b2
tree6d214cf8dcd898f0d5b3be8a4c5e2e0364ce1b37
parent7a23bff90ef4466d741e46c5cf9e467b25c6ad4f
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
(cherry picked from commit feac7a1c8be49fbcb76fcb721ec9f02fdd91030e)
CHANGES
crypto/bn/bn.h
doc/crypto/BN_generate_prime.pod