Has it been Pwned
ProtocolPractical impactMedium confidence

Xbox boot security defeated by using TEA as a hash

After the original Xbox's RC4-based boot check was broken, Microsoft's revised boot ROM (v1.1) verified the second-stage loader with the Tiny Encryption Algorithm in a Davies-Meyer hash. Because every TEA key has three equivalent keys, flipping bits 16 and 31 of a 32-bit word leaves the hash unchanged, so the Xbox Linux Project could patch the loader without failing verification.

A separate source-review date has not been recorded for this historical entry. Corrections.

Broken implementation. The underlying math is not broken by this. The failure is in code, hardware, or how the primitive is used.

Background

Kelsey, Schneier and Wagner had published TEA's equivalent-key and related-key weaknesses in the late 1990s, warning that it must not be used as a hash. TEA is fine as a cipher under random independent keys; the failure was building a compression function from a cipher whose key schedule lets different keys act identically, which is a misuse of the primitive.

The Xbox case is a much-cited example of engineers picking a small, fast primitive without checking its known limitations. Classed protocol (construction misuse) rather than math because TEA's equivalent keys do not break TEA as an encryption algorithm. XTEA and XXTEA fixed the key schedule but have their own related-key results.

Sources

  1. blog17 Mistakes Microsoft Made in the Xbox Security Systemxboxdevwiki, xboxdevwiki.net
  2. paperRelated-Key Cryptanalysis of 3-WAY, Biham-DES, CAST, DES-X, NewDES, RC2, and TEA (ICICS 1997)Schneier on Security, schneier.com
  3. wikiTiny Encryption AlgorithmWikipedia, en.wikipedia.org