Expand description
Constant-time operations to prevent timing attacks
Traits§
- Constant
Time Equals - Trait for types that can be compared in constant time
Functions§
- ct_and
- Apply a constant-time bitwise AND operation between two arrays
- ct_
assign - Constant-time conditional assignment
- ct_eq
- Constant-time comparison of two byte slices
- ct_
eq_ choice - Constant-time equality check that returns a Choice (0 or 1)
- ct_mask
- Constant-time mask generation for a boolean condition
- ct_op
- Generic constant-time conditional operation on byte arrays
- ct_or
- Apply a constant-time bitwise OR operation between two arrays
- ct_
select - Constant-time selection of a byte
- ct_xor
- Apply a constant-time bitwise XOR operation between two arrays