Expand description
Constant-time primitives for cryptographic operations.
All functions in this module execute in constant time regardless of input values, preventing timing side-channel attacks.
Functionsยง
- ct_eq
- Constant-time equality comparison.
- ct_ge
- Constant-time greater-than-or-equal comparison.
- ct_gt
- Constant-time greater-than comparison.
- ct_le
- Constant-time less-than-or-equal comparison.
- ct_lt
- Constant-time less-than comparison.
- ct_mask
- Constant-time masking utility.
- ct_
select - Constant-time conditional selection.
- ct_
select_ u32 - Constant-time selection for u32.
- ct_
select_ u64 - Constant-time selection for u64.
- ct_swap
- Constant-time conditional swap.
- ct_
swap_ slice - Constant-time conditional swap for arrays.