Bent function
A Boolean function that sits as far from every linear function as it is mathematically possible to get.
Linear cryptanalysis feeds on any part of a cipher that resembles a linear function slightly more than chance would allow. A bent function is the mathematical antidote: its Walsh–Hadamard spectrum is perfectly flat, every correlation with a linear function is exactly equally small, and its nonlinearity hits the ceiling of 2n−1 − 2n/2−1. Oscar Rothaus coined the term in classified work in the 1960s and published it openly in 1976.
The catch is that bent functions only exist for an even number of inputs and are never balanced; they output more zeros than ones. So they rarely go straight into a cipher. Instead they serve as building blocks and benchmarks for S-box design, notably in the CAST family. Perfection, as usual, turned out to be impractical.