Abstract
In symmetric cryptography, the security of many encryption modes relies on the indistinguishability of a Random Permutation (RP) from a Random Function (RF). While the standard Switching Lemma provides a bound based on the birthday paradox, it assumes an adversary with unlimited memory. This paper presents the first unconditional, information-theoretic proof of the "Streaming Switching Lemma," demonstrating that an attacker's advantage is significantly reduced when their internal memory is constrained. By utilizing Kullback–Leibler (KL) divergence and information bottleneck principles, we show that the distinguishing advantage is bounded by $O(q \cdot s / N)$, where $s$ is the memory size and $q$ is the number of queries.
1. Introduction
The "Switching Lemma" is a foundational pillar of symmetric-key cryptography. It justifies the common practice of substituting a Random Permutation (RP)—such as a block cipher like AES—with a Random Function (RF) in security proofs. This substitution is critical because RFs are easier to analyze, effectively acting as perfect one-time pads. However, the standard bound for this transition is $q^2/2N$, where $q$ is the number of queries and $N$ is the size of the domain. This "birthday bound" implies that after $\sqrt{N}$ queries, the two become distinguishable.
Crucially, the birthday bound assumes the adversary can store all previous outputs to detect collisions. In high-speed streaming contexts or memory-constrained environments, this assumption is unrealistic. This paper addresses the "Streaming Switching Lemma," which seeks to quantify the security gain when the adversary has limited internal memory $s$.
2. The Memory-Constrained Challenge
The core problem is that if an attacker cannot remember the specific values they have seen, they cannot effectively identify the lack of collisions that characterizes a permutation. Previous attempts to bound the advantage of a memory-limited attacker relied on complex combinatorial arguments or unproven conjectures (specifically by Jaeger and Tessaro).
This work shifts the paradigm toward a purely information-theoretic framework. Instead of measuring the Total Variation (TV) distance—the standard metric in cryptography—the authors utilize Kullback–Leibler (KL) divergence. KL divergence offers mathematical advantages, such as the chain rule of entropy, which allows for a more granular analysis of how information accumulates within the attacker's state over time.
3. Methodology: Information Bottlenecks
The proof strategy centers on treating the attacker's internal memory as an information bottleneck. The process is modeled as a sequence of steps where the algorithm maintains an internal state $\Sigma$.
3.1 KL Divergence and the Chain Rule
By using KL divergence, the authors decompose the total distinguishing advantage into the sum of conditional divergences at each query step. This allows them to bound the information that the current state $\Sigma_{i-1}$ carries about the next sample $X_i$.
3.2 The Core Technical Lemma
The breakthrough lies in a new technical lemma (Lemma 5) that utilizes the properties of the binary entropy function. It establishes a rigorous bound on the mutual information between the attacker's state and the sequence of samples. This ensures that unless the state $\Sigma$ is large, it cannot "remember" enough about the history of the permutation to distinguish it from a random function.
3.3 Accumulated Memory Usage
A significant contribution of this model is the consideration of accumulated memory. Rather than just looking at the peak memory $s$, the proof accounts for the memory used at each step $i$. This implies that an adversary cannot gain a significant advantage by using a lot of memory only occasionally; the average memory usage over the duration of the attack is what determines the success probability.
4. Key Results
The paper provides an unconditional proof for the following main bound on the KL divergence: $$D(P_{RP} || P_{RF}) \leq (1 + o(1)) \cdot \frac{\sum s_i + q \log N}{N \log(N/q)}$$
4.1 Asymptotic Tightness
When the number of queries $q$ is bounded (specifically $q \leq N^{1-\epsilon}$), the result simplifies to $O(q \cdot s / N \log N)$. The authors also provide a matching lower bound (Theorem 3), proving that this information-theoretic limit is essentially tight. This confirms that memory $s$ acts as a linear dampener on the attacker's advantage.
4.2 Practical Implications
For a block cipher like AES-128 ($N = 2^{128}$), these results provide a formal guarantee that even with a massive number of ciphertexts, the security of the system is robust against any attacker whose hardware memory is significantly smaller than the total data processed.
5. Discussion and Future Work
While this work provides a major theoretical advancement, two primary areas for future research remain:
- The KL-to-TV Gap: Cryptographers typically prefer Total Variation (TV) distance. Converting the KL bound to a TV bound using Pinsker’s inequality results in a square root loss ($O(\sqrt{q \cdot s / N})$). Closing this gap to reach the conjectured $O(q \cdot s / N)$ in TV distance remains an open challenge.
- Adaptive Adversaries: The current proof focuses on non-adaptive streaming (similar to Counter Mode). Extending these information-theoretic techniques to fully adaptive Chosen Plaintext Attacks (CPA), where the attacker chooses inputs based on previous outputs, is a natural next step.
6. Conclusion
This paper provides the first unconditional proof of the Streaming Switching Lemma, grounding a long-held cryptographic intuition in rigorous information theory. By showing that memory constraints are a fundamental barrier to distinguishing permutations from functions, the authors provide a stronger theoretical basis for the long-term security of symmetric encryption in the real world.
Summary updated