Expand description
Constant-time sorting network based on DJB’s design.
The sorting network is data-oblivious: the sequence of comparisons and swaps depends only on the array length, never on the values being sorted. This makes it immune to timing side-channels.
Two entry points:
Enums§
- Order
- Sort direction.
Traits§
- CtSwappable
- Marker trait for types safe to swap via bytewise XOR.
- Sortable
- Marker trait for types that can be sorted by the native SIMD path.