Function hacspec_lib::prelude::cswap_bit
source · [−]Expand description
Function that is not part of the language but is offered as a helper for tests, etc.
Conditional, constant-time swapping.
Returns (x, y) if c == 0 and (y, x) if c == 1.