Skip to main content

correlation_immunity_order

Function correlation_immunity_order 

Source
pub fn correlation_immunity_order(truth: &[bool]) -> Option<usize>
Expand description

The correlation-immunity order of a Boolean function (Xiao–Massey): the largest m such that every Walsh coefficient at a mask of Hamming weight 1..=m vanishes. Order ≥ 1 ⇒ IMMUNE to the first-order correlation attack (Rung E finds nothing) — yet a higher-weight coefficient may still leak, which best_linear_approximation surfaces. None for a malformed table.