Imagine a spy transmitting a secret message encrypted with a stream cipher. The cipher XORs the plaintext with a keystream — a long pseudorandom sequence of bits generated by a tiny piece of hardware called a linear feedback shift register (LFSR). The register holds bits of secret state. Each clock tick it shifts right, XORing chosen positions together to fill the left cell. The result looks random but is entirely deterministic — and therein lies the fatal flaw.
In 1965, Elwyn Berlekamp invented an algorithm to reconstruct the shortest LFSR consistent with a sequence of symbols observed from a Reed-Solomon decoder. In 1969, James Massey recast it as a shift-register synthesis problem and proved a stunning theorem: output bits are always enough to uniquely determine an LFSR of length — and his algorithm finds it in time.
The theorem is exact and proven. Give Berlekamp–Massey bits of keystream and it hands you back the secret internal state — the key — in quadratic time. Stream ciphers built on a single LFSR are completely broken.
Comments
Loading comments...