]> git.ipfire.org Git - thirdparty/openssl.git/commit
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>
Thu, 12 Jul 2018 13:08:16 +0000 (15:08 +0200)
commitcc1fef6308ec6cb8ba6c00b20e4a8014d7847db2
tree3cf9bfeac60531c614b8bbf29c975509c10b9d64
parentdcb8333087d56eef97c482aabb506b8be8299cde
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>
Reviewed-by: David Benjamin <davidben@google.com>
(Merged from https://github.com/openssl/openssl/pull/6662)

(cherry picked from commit e42395e637c3507b80b25c7ed63236898822d2f1)
crypto/bn/bn_lib.c