]> granicus.if.org Git - openssl/commit
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:35:45 +0000 (06:35 +0200)
commit707efcd64129c8010e192bd209bace0bc6d18ac9
tree13fee7f8100d6f6c7d2d5d36132c9196bdeaf574
parentacaa6ae936194362cb8011a2c145eb87aae1d1fa
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
doc/crypto/BN_generate_prime.pod
include/openssl/bn.h