Ensure that, when generating small primes, the result is actually of the
authorAdam Langley <agl@chromium.org>
Tue, 23 Apr 2013 18:36:06 +0000 (14:36 -0400)
committerBen Laurie <ben@links.org>
Tue, 4 Jun 2013 17:52:30 +0000 (18:52 +0100)
commit96a4c31be3344cb08994a9d460c0ebd55939cc5b
tree45882a374b9c9dd0c46c0df2f17d640de3448d82
parent2b0180c37fa6ffc48ee40caa831ca398b828e680
Ensure that, when generating small primes, the result is actually of the
requested size. Fixes OpenSSL #2701.

This change does not address the cases of generating safe primes, or
where the |add| parameter is non-NULL.

Conflicts:
crypto/bn/bn.h
crypto/bn/bn_err.c
crypto/bn/bn.h
crypto/bn/bn_err.c
crypto/bn/bn_prime.c
crypto/bn/bntest.c