bn/bn_lib.c: remove bn_check_top from bn_expand2.
authorAndy Polyakov <appro@openssl.org>
Fri, 6 Jul 2018 11:16:40 +0000 (13:16 +0200)
committerAndy Polyakov <appro@openssl.org>
Wed, 1 Aug 2018 14:14:16 +0000 (16:14 +0200)
commit7cca1f96bf82b22ab49f179bae7df1562d0a104b
treef118931c19bb9d25faa63d2f0ef9e275f4fa9dce
parentd69f31fcc38878769c8c917f8724c5aef10fd847
bn/bn_lib.c: remove bn_check_top from bn_expand2.

Trouble is that addition is postponing expansion till carry is
calculated, and if addition carries, top word can be zero, which
triggers assertion in bn_check_top.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6810)

(cherry picked from commit e42395e637c3507b80b25c7ed63236898822d2f1)

Resolved conflicts:
crypto/bn/bn_lib.c
crypto/bn/bn_lib.c