Stream cipher family

LEX

Biryukov's leak-extraction stream cipher, which outputs bytes from inside AES rounds

unverified 1 variant eSTREAM (phase 3)

Overview

LEX is a stream cipher designed by Alex Biryukov in 2005 and submitted to eSTREAM, where it reached the third phase. It runs AES in OFB-like fashion and outputs four bytes from the internal state after each round, rather than whole blocks.

LEX encrypts an IV under the key with AES, then repeatedly applies AES rounds to the result. After each round, four bytes at fixed positions of the 4x4 state are leaked as keystream. Because every round yields keystream, rather than every full ten-round encryption, the designer estimated it at about 2.5 times the speed of AES in OFB mode, while reusing existing AES implementations.

NextSSL includes LEX from source without verification. Reusing AES rounds means LEX benefits from AES hardware acceleration and from the extensive analysis of AES itself, but the leakage pattern created new attack surface that standard AES analysis did not cover. Its fate shows how carefully keystream extraction must be designed. Because the tier is unverified, outputs should be checked against independent reference values before they are relied on for anything beyond experimentation.

History

2004–2008
  1. ECRYPT launches eSTREAM to find new stream ciphers

    eSTREAM project
  2. LEX published by Alex Biryukov

  3. 34 designs submitted

    eSTREAM project
  4. Final eSTREAM portfolio published

    eSTREAM project

Security notes

Dunkelman and Keller published a key-recovery attack on LEX requiring about 2^36 bytes of keystream from many IVs, and LEX was not included in the eSTREAM portfolio. It should be treated as a research cipher.

Typical uses

Research on leak-extraction designseSTREAM-era comparisons

Variants in NextSSL

1
AlgorithmTierSizes (bytes)StandardsAPI
LEX
lex
unverified key 16 · nonce 16 — root

Frequently asked questions

Which LEX variants does NextSSL include?

NextSSL registers 1 LEX variant: lex.