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>
Fri, 9 Aug 2019 09:41:08 +0000 (11:41 +0200)
commit28b4880b8b30c3c19ed34068f9cfa8a89af7e737
treec1d6d493b4b7c544ac7c1d6c144d4d82e046ad0f
parent3ce0566dab2406fa419465aa8aad1148aae23ceb
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: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9309)
crypto/bn/bn_lcl.h
crypto/bn/bn_prime.c