Merge probable_prime_dh_safe with bn_probable_prime_dh
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Fri, 5 Jul 2019 09:55:56 +0000 (11:55 +0200)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Thu, 19 Mar 2020 02:18:14 +0000 (03:18 +0100)
commit0032bfea12054da94be04ac26fd0ebcb955dbe67
tree8d05715cdfaa82caaca18fa8a573a611dcef50f6
parent7eccef219714366d87fe847b105260a0fc84f464
Merge probable_prime_dh_safe with bn_probable_prime_dh

This should avoid half of the trial divisions in probable_prime_dh_safe
and avoid bn_probable_prime_dh generating primes with special properties.

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/9387)
crypto/bn/bn_local.h
crypto/bn/bn_prime.c