Package constant-time provides functions for performing algorithmically constant-time operations.
Returns 1 if a and b are of equal length and their contents are equal, or 0 otherwise.
Note that unlike in equal(), zero-length inputs are considered the same, so this function will return 1.
Returns true if a and b are of equal non-zero length, and their contents are equal, or false otherwise.
Note that unlike in compare() zero-length inputs are considered not equal, so this function will return false.
Returns 1 if a <= b, or 0 if not. Arguments must be positive 32-bit integers less than or equal to 2^31 - 1.
Returns resultIfOne if subject is 1, or resultIfZero if subject is 0.
Supports only 32-bit integers, so resultIfOne or resultIfZero are not integers, they'll be converted to them with bitwise operations.
Generated using TypeDoc