Research
Masked Differential-linear Distinguishers and Quantum Approaches
Overview Research area: Quantum cryptanalysis of symmetric-key primitives — specifically the analysis of block ciphers through correlation-based distinguishers, combined with quantum query algorithms.

- arXiv
- 2608.24799
- Published
- 2026-08-25
- Authors
- Shobhit Pandey, Sarbani Sen, Debajyoti Bera, Ravi Anand
AI summary
Overview
Research area: Quantum cryptanalysis of symmetric-key primitives — specifically the analysis of block ciphers through correlation-based distinguishers, combined with quantum query algorithms.
Technical level: Advanced. The paper assumes familiarity with linear and differential cryptanalysis, Walsh–Hadamard/Fourier analysis over $\mathbb{F}_2^n$, capacity and $\chi^2$ statistics, and the quantum query model (Hadamard transforms, amplitude estimation, query lower bounds).
Scope (one sentence): The paper introduces masked auto-correlation as a new cryptanalytic primitive, shows that finding high-correlation mask pairs is provably hard classically but easy quantumly, and builds classical and quantum distinguishers and key-recovery attacks on top of it, validated on 16-bit 3-round Mini-AES and a toy Simon cipher.
What This Paper Is About
Classical linear and differential-linear cryptanalysis typically assumes a good approximation is already known, and then spends its effort on collecting enough plaintext–ciphertext data to exploit it. This paper attacks both halves of that assumption: it defines a general object — masked auto-correlation, which measures the correlation between $\alpha \cdot f(x)$ and $\beta \cdot f(x \oplus w)$ for a permutation $f$, output masks $\alpha,\beta$ and input difference $w$ — and then asks how one finds the mask pairs $(\alpha,\beta)$ that produce large correlations. The authors show this search, which they call MAC Fishing, can be solved with a constant-query quantum algorithm but requires $\Omega(N/\log N)$ classical queries, and they then convert the resulting high-correlation masks into capacity-based distinguishers and last-round key-recovery attacks.
Key Contributions
-
A unifying primitive (masked auto-correlation) and the MDL approximation. The authors extend cross-correlation to vectorial Boolean functions and define (multidimensional) masked differential-linear approximations. Ordinary linear cryptanalysis, differential-linear cryptanalysis, their multidimensional variants, and the DLCT all arise as strict special cases by constraining the output masks or the input difference.
-
Constant-query quantum mask sampling with a matching classical lower bound. A quantum algorithm using $3n$ qubits and two oracle calls to $f$ prepares a state that samples mask pairs with probability proportional to $C_w(\alpha,\beta)^2$. On the hardness side, MAC Fishing is proven to require $\Omega(N/\log N)$ classical queries (Theorem 4.1), by adapting the Aaronson–Chen hardness proof for Fourier Fishing. The authors state this is the first pairing of a quantum upper bound with a classical lower bound for the core task of identifying high-correlation approximations.
-
A distributional theory of masked auto-correlation. They characterize $C_w(\alpha,\beta)$ for a random permutation across all mask cases (Table 1), and conjecture (Conjecture 1) that the capacity of a $t$-dimensional MDL approximation with non-trivial masks follows a central $\chi^2$ distribution with $2^t-1$ degrees of freedom — the same law across the whole family of classical techniques the framework subsumes.
-
Classical and quantum attacks, empirically validated. A capacity-based distinguisher and a last-round key recovery using signed template matching (needed because the subkey enters as a sign, invisible to unsigned capacity ranking), plus MAC-Fishing-driven quantum versions where each correlation is read by amplitude estimation, replacing $O(1/\tau)$ verification with $O(1/\sqrt{\tau})$ for a quadratic query advantage.
Main Findings
-
Parseval-type identity holds exactly. For any permutation and any $w$, $\sum_{\alpha,\beta} C_f^w(\alpha,\beta)^2 = 2^{2n} = N^2$, and summing over $w$ as well gives $2^{3n} = N^3$. This makes $\mathcal{MACD}_w$, which places mass $\frac{1}{N^2}C_f^w(\alpha,\beta)^2$ on each mask pair, a valid distribution.
-
Trivial masks are pinned down. $C_w(0^n,0^n) = \sqrt{N}$, while $C_w(0^n,\beta) = 0$ and $C_w(\alpha,0^n) = 0$ for non-zero masks. Consequently $\mathcal{MACD}_w$ never samples a pair in which exactly one of $\alpha,\beta$ is all-zeroes: it outputs $(0^n,0^n)$ with probability $1/N$ and a pair of non-zero masks with probability $(N-1)/N$.
-
Random-permutation behaviour splits by case. For $w = 0^n$: $C_{0^n}(\alpha,\alpha) = \sqrt{N}$ always, and $C_{0^n}(\alpha,\beta) = 0$ for distinct $\alpha,\beta$. For $w \neq 0^n$: $C_w(0^n,0^n) = \sqrt{N}$, $C_w(\alpha,\alpha) \sim \mathcal{N}(0,2)$ and $C_w(\alpha,\beta) \sim \mathcal{N}(0,1)$ for $\alpha \neq \beta$.
-
Squared correlations have explicit moments. For non-zero $w,\alpha,\beta$: if $\alpha \neq \beta$, $\mathbb{E}_B[C_w(\alpha,\beta)^2] = 1$ and $\mathrm{Var}_B = 2$; if $\alpha = \beta$, $\mathbb{E}_B = 2$ and $\mathrm{Var}B = 8$. Averaging over masks as well gives $\mathbb{E}{\alpha,\beta}\mathbb{E}_B[C_w(\alpha,\beta)^2] = 1 + 1/N$ and variance $2 + 7/N - 1/N^2$.
-
Heavy mask pairs are abundant and key-stable in Mini-AES. On 16-bit 3-round Mini-AES, with the full codebook allowing every correlation to be measured exactly, heavy mask pairs exist for the vast majority of keys and the good ones are stable across keys. The random baseline sits at a known $\sigma = 2^{-8}$. The shift $w = 0\text{x}0003$ — which essentially flips the two rightmost bits — produced a surprising amount of auto-correlation.
-
The $\chi^2$ capacity law is confirmed empirically. Random-permutation capacity matches the predicted $\chi^2$ distribution (Sections 4 and 5, Figures 1, 2 and 3). The paper notes the known degrees-of-freedom correction: trivial mask pairs of the form $(\alpha,0)$ or $(0,\beta)$ have constant zero correlation and reduce the effective degrees of freedom from the naive $2^l-1$ to $2^l - 2\cdot 2^n + 1$.
-
Simon's structure separates capacity from key recovery. In the toy Simon cipher, the Feistel last round contributes $\mathrm{Cor}_i(k) = (-1)^{\langle k, m_i\rangle}\mathrm{Cor}_i^{\star}$ with key-mask $m_i = \alpha_i \oplus \beta_i$, so magnitudes are key-blind and all key information lives in the signs. The capacity distinguisher separates the cipher from a random permutation at the predicted data complexity, and the signed template recovers the last-round subkey where unsigned energy cannot. Mini-AES's nonlinear last round gives no such clean phase, which is why it is used for the statistics rather than the key recovery.
-
Classical enumeration is infeasible; the quantum sampler is not. The mask search is a search over an exponential space ($N^2$ pairs), and the classical lower bound of $\Omega(N/\log N)$ queries formalizes why no efficient classical algorithm exists for the search step.
Methodology in Plain English
The authors start from a classical idea: if you take a cipher and look at one linear combination of its output bits, then look at a different linear combination of the output bits of a slightly shifted input, the two either behave independently (like a random permutation) or they are correlated (a weakness). Sweeping over all possible shifts gives an auto-correlation, and letting the two output combinations be arbitrary masks $\alpha$ and $\beta$ generalizes the standard linear-cryptanalysis correlation.
To find good masks, they use the fact that the function $C_w(\alpha,\beta)$ is essentially a Fourier-type transform of the cipher as a whole. Computing that transform coherently on a quantum computer — with $3n$ qubits and two calls to the cipher oracle — puts all $N^2$ mask pairs in superposition with amplitudes equal to the (normalized) correlations. Measuring then returns a pair with probability proportional to its squared correlation, so the strong approximations are exactly the likely outcomes. This is the same trick as Aaronson–Chen Fourier Fishing, transplanted to cross-correlation.
To argue that this is genuinely necessary rather than a convenience, they adapt Aaronson and Chen's adversary argument for Fourier Fishing to the masked cross-correlation setting, obtaining the $\Omega(N/\log N)$ classical query lower bound.
For the attacks, they borrow the notion of capacity (squared Euclidean imbalance) from Biryukov et al.: aggregate the squared correlations of a basis of mask pairs and threshold the total. For key recovery, they exploit that a wrong subkey guess randomizes the partially decrypted cipher, so the correct guess is the one whose correlation profile matches a reference template — but since the subkey enters the masked bits as a sign, the match has to be done on signed values, not on unsigned energies.
Validation uses two ciphers chosen for different reasons. Mini-AES has a 16-bit block, so every correlation can be computed over the entire codebook across many keys, with a known random baseline $\sigma = 2^{-8}$; that makes it right for checking the statistics. Toy Simon has a Feistel last round that inserts the subkey as a constant phase on the masked output bits, realizing exactly the sign structure the recovery is designed to resolve; that makes it right for exercising the attack pipeline end to end. Several experiments used Wilson's score for high-confidence interval estimates (Appendix 0.D).
Why This Matters
Impact on research. The paper reframes a task that the cryptanalysis community usually takes for granted — finding good approximations — as a search problem with a provable quantum–classical separation. If the lower bound holds up as a template, it suggests a broader program: identify other cryptanalytic substeps where the quantum advantage is not merely a quadratic speedup from amplitude amplification on top of a classical algorithm, but a genuinely different query complexity class. The $\chi^2$ capacity conjecture, if proven, would also give a single distributional statement covering multidimensional linear, differential-linear, and DLCT analysis at once. The paper also explicitly criticizes prior quantum cryptanalysis for porting classical distinguishers into a quantum query model rather than finding properties that are inherently quantum.
Real-world applications (as the framework suggests, not as deployed systems):
- Security evaluation of new lightweight block ciphers, where designers need to know the full distribution of correlations, not just the best single linear trail.
- Reassessing security margins of deployed AES-like designs against an adversary with a quantum computer, using resource estimates that account for mask-finding rather than assuming masks are free.
- Auditing the differential-linear and DLCT analyses reported in design documents, since those become special cases of the MDL framework and inherit its statistics.
- Guiding standardization discussions (for example NIST-style processes) on how quantum adversaries change the relevant security claims for symmetric primitives.
Industry relevance. Block ciphers remain the workhorse of deployed cryptography, and their security claims are stated against classical data complexities. A result showing that the identification of exploitable approximations has an exponential classical cost but a constant quantum cost changes how post-quantum security margins should be argued — even if the concrete demonstrations here are on reduced-round Mini-AES and a toy Simon cipher, not on deployed ciphers. The measurements are explicitly on toy parameters, so any extrapolation to production ciphers is speculative and not claimed by the authors.
Future Directions
-
Prove or refute Conjecture 1. The claim that capacity of a $t$-dimensional MDL approximation with non-trivial masks follows a central $\chi^2$ with $2^t-1$ degrees of freedom is stated as a conjecture, supported by experiments on random permutations. A proof would unify the distributional theory; a counterexample would delimit the framework.
-
Scale beyond reduced-round toy instances. The validation uses a 16-bit 3-round Mini-AES and a toy Simon cipher. Extending the capacity distinguisher and signed-template recovery to larger blocks and more rounds — where the full codebook is unavailable and correlations must be estimated — is the obvious next step, and would require confronting the estimation noise the exact-codebook setting avoids.
-
Generalize the MAC Fishing hardness argument. The lower bound is obtained by adapting Aaronson–Chen for Fourier Fishing and is noted to sit in the forrelation family. Whether other cryptanalytic search problems (for example, finding good differential characteristics, or integral/zero-correlation properties) admit analogous provable separations is open.
-
Characterize the full quantum attack cost end to end, including key-sample overhead. The paper notes the sampling algorithm "is easily generalizable to sample across all keys with minimal overhead," but a complete resource accounting — qubits, oracle calls, and repetitions as a function of block size and threshold $\tau$ — for a realistic cipher is not reported.
Target Audience
Researchers in symmetric-key cryptanalysis and quantum algorithms who already know linear/differential cryptanalysis and the quantum query model; designers of block ciphers who want to understand how quantum adversaries change the cost of finding approximations; and graduate students in cryptography looking for a worked example of how to convert a classical statistical distinguisher into a provably separated quantum algorithm. Readers without background in capacity, $\chi^2$ statistics, or quantum query complexity will find Sections 3 through 6 heavy going, though Section 1.1 provides a readable technical overview.
Authors’ abstract
We introduce masked auto-correlation, a new primitive for the cryptanalysis of symmetric-key primitives, together with a quantum attack pipeline built on it. For a permutation $f$, output masks $α,β$, and an input difference $w$, masked auto-correlation (MAC) measures the correlation between the masked outputs $α\cdot f(x)$ and $β\cdot f(x\oplus w)$. The associated masked differential-linear (MDL) approximations strictly generalize several classical techniques; ordinary linear cryptanalysis, differential-linear cryptanalysis, and the differential-linear connectivity table all arise as special cases. Our central object of study is the problem of finding mask pairs with large masked cross-correlation -- those that yield powerful distinguishers -- which we call MAC Fishing. We give a constant-query quantum algorithm that samples such pairs according to their squared correlation, and we prove an exponential classical lower bound of $Ω(N/\log N)$ queries, by adapting the hardness of Fourier Fishing. To our knowledge this is the first result pairing a quantum upper bound with a classical lower bound for the core task of identifying high-correlation approximations, making quantum algorithms an absolute necessity. Building on this, we analyse the distribution of masked auto-correlation for random permutations, and then construct capacity-based distinguishers and key-recovery attacks, both classically and with a quadratic quantum speed-up using amplitude estimation. We validate our claims with experiments on reduced-round mini-AES.