Fixed range of random produced in BN_is_prime_fasttest_ex() to be 1 < rand < w-1...
authorShane Lontis <shane.lontis@oracle.com>
Thu, 21 Jun 2018 03:37:52 +0000 (13:37 +1000)
committerPauli <paul.dale@oracle.com>
Thu, 21 Jun 2018 21:07:20 +0000 (07:07 +1000)
commit7d79d13a564d5c065318aa47f4cd511eece449e8
tree977185435600f278fdb703f43f49ae2035437ed7
parentb8c32081e02b7008a90d878eccce46da256dfe86
Fixed range of random produced in BN_is_prime_fasttest_ex() to be 1 < rand < w-1. It was using 1<= rand < w (which is wrong by 1 on both ends)

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6547)
crypto/bn/bn_prime.c
test/bntest.c