Clean up BN_consttime_swap.
authorBilly Brumley <bbrumley@gmail.com>
Mon, 12 Nov 2018 13:47:54 +0000 (15:47 +0200)
committerNicola Tuveri <nic.tuv@gmail.com>
Mon, 26 Nov 2018 15:54:08 +0000 (17:54 +0200)
commit37b07c68ef55058cdb990e8cf81650ae58dbd3ee
tree78f9c12aeaaa888312c8aab7e4be9cb11939fbe2
parentca554c02df8fb207e346f07c70c5f4d3b84cdb1d
Clean up BN_consttime_swap.

Updated "condition" logic lifted from Theo Buehler's LibreSSL commit https://github.com/libressl-portable/openbsd/commit/517358603b4be76d48a50007a0d414c2072697dd

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/7619)

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