IT lexicon › Security › Linear approximation

Linear approximation

Security På svenska → Updated: 2026-10-12

A relation between input and output bits that holds slightly more often than chance would suggest.

A linear approximation of an S-box or a whole cipher states that the XOR of some input bits equals the XOR of some output bits, with a probability slightly different from one half. The deviation from one half is the bias, and it is what a linear attack measures. Given enough known plaintext–ciphertext pairs, the attacker counts how often the relation holds and infers key bits from the result.

S-box designers measure the largest bias in the table, called linearity, and aim to keep it low. If no approximation is strong enough to exploit cheaply, the S-box has passed that test.

← Back to the lexicon