Legendre PRF (Multiple) Key Attacks and the Power of Preprocessing
Attacks the Legendre PRF (used in LegRoast and Ethereum 2.0): a multi-key attack in sqrt(mp) time and key-independent precomputation attacks beating the birthday bound.
Schemes: Legendre PRF, LegRoast, Khovratovich collision attack
Findings (quotes checked against the source text)
-
Multiple-key attack recovers m Legendre keys in time sqrt(mp), amortized sqrt(p/m) per key, with small memory.
we present a small memory multiple-key attack on $m$ Legendre keys $k_1, \ldots, k_m$ in time $\sqrt{mp}$, i.e. with amortized cost $\sqrt{p/m}$ per key.
-
Precomputation depending only on public p yields a hint that lets an online attacker recover the key in time p^(1/3), beating the birthday bound.
Namely, an attacker may compute e.g. in precomputation time $p^{\frac 2 3}$ a hint of size $p^{\frac 1 3}$.
-
Precomputation attack combines with multi-key attack, giving a tradeoff where all m keys fall in online time p^(1/3).
In an online phase, one then finds {\em all $m$ keys in total time} only $p^{\frac 1 3}$.
-
Khovratovich's collision-based algorithm recovers k in sqrt(p) time with constant memory, and beating this birthday bound was an open problem.
Khovratovich's collision-based algorithm recovers $k$ using $L_k(\cdot)$ in time $\sqrt{p}$ with constant memory.
Numbers (as extracted, not quote-checked)
- Single-key online attack time with precomputation: p^(1/3)
- Precomputation time for hint: p^(2/3)
- Hint size: p^(1/3)
- Baseline birthday-bound single-key time (Khovratovich): sqrt(p)
For builders
If a chain uses Legendre PRF keys (e.g. LegRoast or Ethereum 2.0 components), assume key-independent precomputation and multi-key attacks reduce security below the sqrt(p) birthday bound, so pick a much larger p.
Limits
Cryptanalysis of Legendre PRF only, not of PQ signature schemes like ML-DSA or SPHINCS+; based on the abstract only, full text not read; attack constants and feasibility not verified.
Topics: cryptanalysis hash-functions sig-other ethereum-migration implementation-sidechannel