Block cipher family

XTEA

The 1997 revision of TEA that fixes its equivalent-key and related-key weaknesses

research 1 variant

Overview

XTEA is a 64-bit block cipher with a 128-bit key published by David Wheeler and Roger Needham in 1997 to correct weaknesses found in TEA. It remains popular in embedded code because of its small size.

XTEA keeps TEA's Feistel structure and golden-ratio constant but changes the key schedule: the key word used in each half-round is selected from bits of the running sum, and the order of shifts, XORs and additions is rearranged. The standard version uses 64 Feistel rounds. It remains a common teaching example.

NextSSL includes XTEA for research and legacy interoperability. XXTEA, a later variable-block variant, has published attacks and is not included here. XTEA's main use today is in small legacy firmware, where its minimal code size outweighs its limitations. Its 64-bit block means that no more than a few gigabytes should be encrypted under a single key, since block collisions become likely around 2^32 blocks.

History

1997–1997
  1. XTEA published by David Wheeler, Roger Needham

Security notes

Related-key attacks on reduced-round XTEA are known, but none threatens the full cipher in normal use. Its 64-bit block limits data per key, and it lacks the analysis of modern ciphers.

Typical uses

Small embedded firmwareLegacy interoperability

Variants in NextSSL

1
AlgorithmTierSizes (bytes)StandardsAPI
XTEA
xtea
research key 16 · block 8 — root

Frequently asked questions

Which XTEA variants does NextSSL include?

NextSSL registers 1 XTEA variant: xtea.