Numbers greater than 1 are usually non-negative.
authorDavid Benjamin <davidben@google.com>
Fri, 21 Apr 2017 16:07:03 +0000 (12:07 -0400)
committerRich Salz <rsalz@openssl.org>
Sat, 22 Apr 2017 12:38:59 +0000 (08:38 -0400)
commitbbe056fd676379067588cf823a7a7422c2077f6b
tree04a698d0a72a8339a4f313f052abe69ee0039796
parent48e017b9ca6876f709197de22b986e8238868ce4
Numbers greater than 1 are usually non-negative.

BN_is_prime_fasttest_ex begins by rejecting if a <= 1. Then it goes to
set A := abs(a), but a cannot be negative at this point.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3275)
(cherry picked from commit 8b24f94209676bbe9933affd2879a686b1ed044d)
crypto/bn/bn_prime.c