ctSelectBigInt

fnBigInt ctSelectBigInt(uint condition, BigInt a, BigInt b) pure nothrow @safe

Selects between two BigInt values in constant time.

Returns a copy of a if condition is 0, or a copy of b if condition is non-zero. The selection is performed without branching.

Parameters

conditionSelection flag (0 selects a, non-zero selects b).
aValue returned when condition is 0.
bValue returned when condition is non-zero.

Returns

A copy of a if condition is 0, a copy of b otherwise.