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:39:10 +0000 (08:39 -0400)
commit74bcd775aa74697c1f7b8fd793e80ef0207276c4
tree65aff530bc3971e1ca99be6a92a66dad291a7fe8
parente8f2e2fb3d82485af297717b93358f488e15eae0
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