bn/bn_div.c: make conditional addition unconditional
authorAndy Polyakov <appro@openssl.org>
Wed, 7 Nov 2018 21:18:33 +0000 (22:18 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 5 Dec 2018 10:38:22 +0000 (10:38 +0000)
commita7e8ab41fd6d53abba3f63cb34c9bcccb31efda7
treed680ecbf0276b41d12df12cd1b4e9263da531353
parent2007474f19fa434e669b944895b22af32f934933
bn/bn_div.c: make conditional addition unconditional

and add template for constant-time bn_div_3_words.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7589)

(cherry picked from commit 3da2e9c4ee45989a426ff513dc6c6250d1e460de)
crypto/bn/bn_div.c