Numbers greater than 1 are usually non-negative.
authorDavid Benjamin <davidben@google.com>
Fri, 21 Apr 2017 16:07:03 +0000 (12:07 -0400)
committerDavid Benjamin <davidben@google.com>
Fri, 21 Apr 2017 16:22:37 +0000 (12:22 -0400)
commit8b24f94209676bbe9933affd2879a686b1ed044d
tree1628135e9184efa74f8df0de0c0315b8720d5729
parentdc99b885ded3cbc586d5ffec779f0e75a269bda3
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)
crypto/bn/bn_prime.c