Expand description
Constant-time utilities.
FunctionsΒ§
- bool_
to_ πchoice - Convert a boolean into a Choice.
- bytes_
eq π - Return true if two slices are equal. Performs its operation in constant time, but returns a bool instead of a subtle::Choice.
- is_zero π
- Returns true if all bytes of the input are zero (including if the slice is empty). Executes in constant time for a given length of input.