ctGetBitBigInt

fnuint ctGetBitBigInt(BigInt scalar, size_t bitIndex) pure nothrow @safe

Extracts a bit from a BigInt scalar in constant time.

Parameters

scalarThe BigInt value.
bitIndexThe index of the bit to extract (0 = LSB).

Returns

0 or 1 depending on the bit value.