Provide BN_swap_ct(), a constant time function that conditionally swaps
authortb <tb@openbsd.org>
Tue, 10 Jul 2018 21:52:07 +0000 (21:52 +0000)
committertb <tb@openbsd.org>
Tue, 10 Jul 2018 21:52:07 +0000 (21:52 +0000)
commitbbd58ad841bba56e008bae48456c0bea752a9f41
treed339d982fac49242ab03ca05cfdb1e7b7f5d6935
parentd661569b5a4512d635997b6d03a657b043a8171b
Provide BN_swap_ct(), a constant time function that conditionally swaps
two bignums. It's saner and substantially less ugly than the existing
public BN_constantime_swap() function and will be used in forthcoming work
on constant time ECC code.

From Billy Brumley and his team. Thanks!

ok jsing
lib/libcrypto/bn/bn_lcl.h
lib/libcrypto/bn/bn_lib.c