Eliminate the weird condition in the BN_swap_ct() API that at most one bit
authortb <tb@openbsd.org>
Fri, 13 Jul 2018 08:43:31 +0000 (08:43 +0000)
committertb <tb@openbsd.org>
Fri, 13 Jul 2018 08:43:31 +0000 (08:43 +0000)
commit9563ccbc0da9ed3dce9f38cd4d9d134dfc2138fe
tree383f3fd2b615fd88994759fc85c1f556bf9c6b9d
parent476d73d100cee30df751178c194252b2c9cc1cfd
Eliminate the weird condition in the BN_swap_ct() API that at most one bit
be set in condition. This makes the constant time bit-twiddling a bit
trickier, but it's not too bad. Thanks to halex for an extensive rubber
ducking session over a non-spicy spicy tabouleh falafel..

ok jsing, kn
lib/libcrypto/bn/bn_lib.c