Skip to main content

linear_cryptanalysis

Function linear_cryptanalysis 

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

The linear-cryptanalysis profile of a combining/filter function given as its 2ⁿ truth table: the whole Walsh spectrum distilled into the best linear approximation, its nonlinearity, and its correlation-immunity order. Where scan_for_combiner_leaks (Rung E) reads only weight-1 masks, this reads them ALL — surfacing the multi-register approximation (mask_weight ≥ 2) that E is blind to, even on a first-order correlation-immune function. None for a malformed table.