IT lexicon › Security › Equivalent keys

Equivalent keys

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

Different keys that produce exactly the same cipher — quietly shrinking the key space, and ruinous when the cipher is used as a hash.

The textbook case is TEA. In 1996 John Kelsey, Bruce Schneier and David Wagner showed that every 128-bit key has three equivalents, because flipping two particular pairs of bits cancels out. The effective key length drops to 126 bits. As far as encryption goes that is cosmetic; brute force just runs four times faster.

Microsoft paid more for it. The original Xbox used TEA as a hash to verify its boot code, and equivalent keys mean collisions by construction. Hackers could change the code without changing the hash. The lesson: a block cipher that is fine for encryption is not automatically fine inside a hash construction.

← Back to the lexicon