Manuscript Offprint
arXiv:2609.35421Indistinguishability of Sum of Permutations: A Fourier Analytic Route to Classical and Quantum Security
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Ritam Bhaumik , Chun Guo , Xiaoning Guo , and Ashwin Jha
CRC, TII, Abu Dhabi, UAE
School of Cyber Science and Technology;
State Key Laboratory of Cryptography and Digital Economy Security;
Key Laboratory of Cryptologic Technology and Information Security of Ministry of Education,
Shandong University, Qingdao, China
chun.guo.sc@gmail.com, xxiaoningguo@gmail.com
University of Wuppertal, Wuppertal, Germany
Abstract. We study classical and quantum indistinguishability of sums of independent random permutations and related transformations from permutations to functions. Let G be a finite abelian group of order N, and let for independent uniform random permutations of G. We give a unified Fourier analytic treatment in which the construction is represented by its probability density and a distinguisher by its acceptance function, with the classical and quantum query models imposing different restrictions on the Fourier support of the latter.
Classically, we obtain the bound for every , and refine it below the birthday threshold to . In the quantum model, a simulation argument gives for , while Fourier interpolation gives concrete finite bounds up to and the query-dependent bounds
for and , respectively, throughout . For , the first bound sharpens to . Over , a one-query Fourier attack matches the order of our one-query bound, while an -query parity attack with advantage shows that our bounds reach the constant-advantage query threshold.
We further study two variants of sum of permutations over binary vector spaces. First, we allow arbitrary surjective linear postprocessing, which includes truncation, and obtain classical and quantum bounds that retain the output-size dependence. Second, we analyse Dinur's variable-output single-permutation construction, LXoP, for every fixed output width, and derive its classical and quantum security bounds; for one- and two-block outputs, we give concrete quantum security bounds.
Keywords: sum of permutations, LXoP, Fourier analysis, quantum security, PRP-to-PRF conversion
1 Introduction
Block ciphers, or pseudorandom permutation (PRP) candidates, are among the most thoroughly studied primitives in symmetric-key cryptography, while many applications [RS06, Che22, Nan24] require a pseudorandom function (PRF). Apart from a few examples like SURF [Ber97], SipHash [AB12], and some AES-based constructions [MN17b, BIL+21, FGL+24], relatively few dedicated PRF candidates have been proposed or analysed. This makes permutation-to-function transformation a natural route to pseudorandom function designs. It is well-known [Rao66, Fre77, BKR94, CN08] that a random permutation itself can be distinguished from a random function by looking for collisions, with constant advantage after about classical queries, where N denotes the ambient group size. A natural question is therefore how to combine a small number of random permutation calls so that the resulting function remains indistinguishable from random well beyond the birthday bound.
In this line of research, three simple constructions are the sum of permutations [BKR98], encrypted Davies-Meyer [CS16] and its dual [MN17a]. In particular, the sum of permutations construction has received a lot of attention from the community. Let G be a finite abelian group of order N, written additively, and let be independent uniform random permutations of G. For , define the sum of k permutations by
R. Bhaumik, C. Guo, X. Guo, A. Jha
When , this is the usual XOR-of-permutations construction. The two-permutation case goes back to Bellare et al. [BKR98], and the k-permutation generalisation [Luc00] is due to Lucks. The construction is simple to evaluate: the permutation calls are independent and can be made in parallel, followed by a group addition. Its security analysis, however, has proved considerably more involved, and has occupied the community for more than two decades.
Classical security of sum of permutations. A long line of work [BI99, Luc00, Pat08, CLP15, MP15, Ebe17, DHT17, DNS22, CP20, Din24] has investigated how much security this simple transformation provides. Adding independent permutation outputs allows collisions, so the absence of collisions no longer distinguishes the construction from a random function. The outputs nevertheless remain dependent, because each constituent permutation samples without replacement. An analysis must bound the effect of these dependencies on the joint distribution of all queried outputs, including when the number of queries is close to N. Over the years, different proof techniques have been used to prove this result when , with various degrees of success. The first verifiable proof [Luc00] was given by Lucks who employed the game-playing technique to prove PRF advantage of , where is the number of queries. Bellare and Impagliazzo, and later, Dai et al. devised new statistical techniques [BI99, DHT17] to show bounds of and , respectively. Patarin's mirror theory [Pat08, Pat10, Pat16] has been the main tool to study the problem from a combinatorial viewpoint, and a verified proof [DNS22] of the mirror theory result yields a bound of for (see also [CP20] for the single-permutation variant). On the other hand, for , the best-known attack [Pat13] due to Patarin only achieved an advantage of , leaving a tightness gap. This gap was recently filled [Din24] by Dinur who established a bound of for and , which is tight for . Shortly after, it came to light that Eberhard had already proved [Ebe17] the same bound for any finite abelian group and for every , in a work [Ebe17] that was largely unknown in the cryptography community. Both Eberhard and Dinur applied Fourier analytic techniques to study the problem. Dinur also studied the sum of permutations construction, and obtained a bound of for queries.
Variants of sum of permutations. Several variants of the sum of permutations have been proposed to obtain shorter outputs or to generate several output blocks from a single permutation. For shorter outputs, summation can be combined with the truncation technique [HWKS98]. Let , with , and let be a surjective linear map, where . The corresponding construction is
where and are independent random permutations of . When is a coordinate projection, Choi et al. [CKLL22] proved a classical distinguishing bound of for .
For outputs in the larger range , Iwata's XORP[w] construction [Iwa06] uses a single random permutation and is given by
Here the prefixes are encoded in bits and . The construction produces output blocks using permutation calls. For fixed , its classical distinguishing advantage is [Pat16, IMV16, BN18]. Dinur [Din25] introduced the LXoP family, which also produces output blocks from calls, but combines consecutive permutation outputs using a linear automorphism :
For , he proved a classical distinguishing advantage bound of for and , respectively, and .
Quantum security of sum of permutations. The quantum setting raises a different difficulty. For these input-symmetric constructions, a classical distinguisher can be reduced to observing the outputs on a fixed set of queried inputs. This remains true even when the queries are adaptive, as the labels of fresh inputs do not affect the distribution of the next answer. A quantum distinguisher may instead query a superposition of inputs and combine information from different positions by interference. Its behaviour is therefore not determined by the output distribution on any one fixed set of q inputs.
Quantum security of XOR-of-PRP constructions has been studied [MS17] by Mennink and Szepieniec, including key-recovery attacks and a security analysis. There, the construction oracle is queried classically, while the adversary may use offline quantum computation. This is the so-called Q1 security model. In this paper, we study information-theoretic security in the Q2 model, where the adversary can make quantum superposition queries to the construction. The adversary is computationally unbounded, and we count only queries to the construction. Thus the question concerns what can be learned from the oracle itself, independently of the time complexity of processing its answers.
The sum of permutations has a global constraint that makes this question particularly interesting. Every complete truth table satisfies
For a uniform random function, the sum on the left is uniform on G, so the same equality holds with probability exactly 1/N. The complete-table distribution of therefore has statistical distance at least 1 - 1/N from uniform. At the same time, the classical bounds show that every proper restriction is close to uniform. How much of this dependence can a quantum algorithm detect with few queries? At what query count does the checksum become visible?
Our bounds give a sharp answer to the second question in the binary setting. For every fixed , the advantage tends to zero for all , whereas an -query parity algorithm has advantage 1/2. For , we exploit the well-known fact [BBC 98, Zha12b] that the acceptance probability of a q-query quantum adversary depends only on the joint distributions of oracle outputs on all sets of at most 2q inputs. This allows us to focus on dependencies among small collections of outputs, even though each quantum query may involve a superposition over the entire domain.
Sum of independent permutations. For every finite abelian group G of order N, we prove the classical bounds
where is a uniform random function. This gives a single proof over arbitrary finite abelian groups, and refines the bound when . For , the bound above that threshold is Eberhard's bound; our proof extends it to every fixed .
For quantum queries, we obtain
throughout . For and , the bound improves to . The bounds involving describe the behaviour in the range , while the bounds independent of remain small throughout the stated range. We also give concrete bounds for and .
Over , a one-query algorithm has advantage , matching the order of our upper bound at one query. For , the -query parity attack, together with the uniform bound of throughout , establishes the exact number of queries required to achieve a constant advantage.
Linear-output-postprocessing. For , let be surjective and linear, and put . We prove a classical bound for throughout . In particular, for the truncated construction considered [CKLL22] by Choi et al., our bound improves their single-user bound by a factor . We also obtain quantum bounds that retain the same dependence on , both for small query counts and throughout .
R. Bhaumik, C. Guo, X. Guo, A. Jha
Variable output from a single permutation. We analyse Dinur’s LXoP family for every fixed width w, under the admissibility condition stated in Section 6. The construction produces w output blocks using permutation calls. We obtain classical advantage and quantum advantage for query counts up to a sufficiently small constant fraction of the construction’s input-domain size. We also give concrete quantum bounds for .
1.2 Technical Overview and Organisation
Densities and query restrictions. In Section 2, we represent the construction by its probability density and a distinguisher by its acceptance probability function . Relative to the reference product measure, the distinguishing advantage is then given by the inner product . To analyse this inner product, we first choose an orthonormal basis for functions on the output set, with respect to the reference output distribution, containing the constant function 1. We use this same basis for each truth-table entry . Taking products of these basis functions, with one factor for each input, gives an orthonormal basis for functions of the complete truth-table. We expand and in this product basis and group the terms according to the set of inputs at which the factor is nonconstant. These groups give the orthogonal pure-support components. A component indexed by depends only on the outputs at inputs in , and averaging over any one of these outputs, with the others fixed, gives zero. Orthogonality then expresses the distinguishing advantage as the absolute value of a sum of inner products between - and -components with matching supports.
This decomposition is defined for an arbitrary product measure, and the grouped components do not depend on the particular basis chosen. Under the uniform measure on a finite abelian group, we may choose the group characters as our basis. The components are then precisely the terms of the Fourier expansion grouped by their support. For the constructions studied in this paper, input symmetry lets us restrict a classical distinguisher to a fixed set Q of q inputs. Only supports contained in Q can contribute to its advantage. For a quantum distinguisher, Lemma 2, shows that only components supported on at most 2q inputs can contribute, although different components may involve different inputs. Since , Cauchy-Schwarz bounds the remaining inner product by one half of the norm of the corresponding density projection. This yields the Fourier interpolation bound of Theorem 1.
Injection moments and the first nonzero level. Section 3 applies this framework to sums of independent permutations. On a fixed set of distinct inputs, the outputs of one permutation form a uniformly random injection. Summing independent permutation outputs convolves their densities, so the Fourier coefficients of the sum are powers of those of one injection. Eberhard's fourth-moment bound [Ebe17], together with a bound on the largest nonconstant coefficient, gives the global classical bound for every . We also derive a higher-moment bound for the Fourier coefficients of the injection density, which controls the components involving three or more inputs. In the classical analysis, we apply it to the joint output distribution on q fixed inputs. In the quantum analysis, we apply it to the corresponding components of the distribution of the complete truth table, retaining only those involving at most 2q inputs. The detailed coefficient bounds and moment calculations are given in Appendices A and B.
We call the collection of components supported on exactly inputs level . Since the one-point marginals are uniform, level one vanishes. To obtain a more precise bound at small query counts, we treat level two separately before applying Cauchy-Schwarz. This component is a scalar multiple of the difference between the number of output collisions and its expected value under a uniform random function. The classical proof bounds its contribution in by summing over the queried pairs. For quantum queries, Appendix C bounds the correlation of this collision count with the acceptance function. We obtain an bound using Zhandry's small-range method [Zha12a]: the centred collision count is the first-order deviation from a uniform function when outputs are sampled through a large but finite intermediate range. The common moment estimate bounds the remaining levels.
Simulation from the checksum. To reach every quantum query count below , in Section 4, we use Eberhard's bound along with a checksum-based simulation argument. Any outputs of determine the last output. Start instead with independent uniform values on inputs and complete the table using the same checksum. The resulting function is uniform among all functions with that checksum and is -wise independent. It is therefore indistinguishable from a uniform random function whenever . It remains to compare the sum of permutations with this completed reference function. Both complete tables are determined by their restrictions to the chosen inputs, so their statistical distance is bounded by the classical estimate on those inputs. This gives the quantum bound throughout the required range.
Linear-output-postprocessing and shared permutation calls. Section 5 considers applying a surjective linear map to each output. A Fourier character of the projected output can also be viewed as a character of the original output : its index is replaced by . Thus only indices in the subspace , which has size , enter the analysis. To bound their contribution, we use the fact that applying the same invertible linear map to every output of a random injection preserves its distribution. This symmetry lets us average over subspaces of size and compare the Fourier moments restricted to such a subspace with the unrestricted moments. This is where the output size enters the bounds. For the refined quantum estimate, we also distinguish tuples of character indices according to the dimension of their span. The probability that all indices lie in a random subspace of size depends on this dimension. Keeping this dependence gives a sharper bound for the higher levels.
For the LXoP family studied in Section 6, each construction output consists of w blocks obtained from permutation calls. Expanding a character of the construction output gives a product of characters of the underlying permutation outputs, with one index for each call. These permutation outputs form a random injection, so we can again use its Fourier coefficients. The shared calls force the indices associated with each construction input to satisfy a linear relation. We exploit this relation when applying a Dinur-style recursive identity [Din25] that replaces an injection coefficient by a sum of coefficients involving fewer permutation outputs. To obtain a bound on the sum of squared coefficients, we must control how many original index tuples can give the same tuple after a reduction. By choosing the reductions in a suitable order, the linear relation and the admissibility condition let us recover the removed index. This controls the number of times each reduced coefficient is counted and gives the required second-moment bound. Summing over the supports permitted in each query model then gives the classical and quantum bounds.
2 Fourier Analytic Framework
This section first fixes the notation used throughout the paper and then develops a unified analytic framework for classical and quantum distinguishing games. The framework is inspired by the Fourier analytic methods employed by Eberhard [Ebe17] and Dinur [Din24, Din25].
Notation. For a positive integer , write and . For , let , with . Empty sums and products are understood as zero and one, respectively. The constants in and may depend only on the indicated fixed parameter.
Let Q be a probability measure on a non-empty finite set . We write to mean that is drawn according to Q, and write for its support. We denote the uniform measure on by , abbreviated to U when is clear. A density relative to Q is a function : satisfying . We sometimes identify with the probability distribution that assigns mass to each , when the reference measure is clear. The reference measure Q itself has density 1.
Let be the space of complex-valued functions on . For and , write
For densities and relative to Q, their statistical distance is given by
whence by Cauchy-Schwarz,
2.1 Product Spaces and Support Decomposition
We recall the standard support decomposition on a finite product space (see [O'D14, Sections 8.1 and 8.3]), which requires no algebraic structure on the output set.
Let and be finite sets, with . Fix a probability measure on and equip with the product measure . Unless stated otherwise, densities, expectations, inner products, and norms on this space are taken with respect to , whose subscript is omitted.
R. Bhaumik, C. Guo, X. Guo, A. Jha
Let . Choose an orthonormal basis of and put . For , define
We call supp( ) the pure support of . The functions form an orthonormal basis of .
For , let be the orthogonal projection onto the subspace
Then
The spaces depend only on the orthogonal decomposition , and not on the particular basis chosen for . The space consists of the constant functions, so . In particular, for every density . If the distribution represented by has marginal at , then
For integers , write
We shall repeatedly use the following coordinate dependence property of the product basis. A function depends only on the coordinates in if and only if
If these projections vanish, the expansion of contains only basis functions supported in , which depend only on . Conversely, if depends only on , every coefficient involving a mean zero basis function at a coordinate outside vanishes after averaging over that coordinate.
2.2 Distinguishing Advantage and Query Support Cutoffs
For any function , we denote the classical oracle corresponding to by the function itself, while the quantum oracle is denoted by .
Let and be oracles sampled according to densities and relative to , respectively, and accessed in the same model. For an oracle algorithm and a fixed function , let be the probability that outputs 1 given oracle access to . Define
We write for the supremum over all algorithms making at most queries in the indicated access model. We work in the information-theoretic setting: algorithms may be computationally unbounded, and only oracle queries are counted. Then,
where the final inequality follows by writing , since and , so that the inner product is at most . For the remainder of this paper, we assume .
We next apply the support decomposition (2) to the inner product in (5). The constant component of is zero, and its projection onto every non-empty support is . Orthogonality therefore gives
For , put
The first two levels will often be treated directly, while the remaining levels are bounded in .
Lemma 1. Let and be function oracles in the same access model. Suppose whenever . Then, for every integer ,
If a depends only on the coordinates in , the sum in the remainder may be restricted to .
Proof. By (6), only non-empty supports contribute to the advantage. Since for , we have
Put . Since ,
By Cauchy-Schwarz,
The triangle inequality gives the claim. If depends only on , then (4) gives whenever , so these supports may also be omitted.
Remark 1. The constructions considered below are invariant in distribution under input permutations, as is the product reference measure. Thus, for , a classical q-query distinguisher may be restricted to any fixed set Q of size q: answer its j-th fresh query using the j-th point of Q, and replay answers to repeated queries. Input symmetry preserves the transcript distribution under both oracle distributions. By (4), the resulting acceptance function satisfies whenever .
For a q-query quantum distinguisher, every nonzero pure-support component of the acceptance probability involves at most 2q input coordinates. We use the standard quantum function-oracle model, with a fixed injective encoding of Y into a finite abelian group and translation by the encoded output; all applications below instantiate it by the usual addition oracle on a finite abelian output group.
Lemma 2. Let be a quantum algorithm making at most queries to a function , and let be its acceptance probability. Then
Proof. Write the function oracle as
where translates the answer register by the fixed encoding of , and denotes the internal registers of the algorithm. For a basis label , every matrix entry therefore depends on only through the coordinate .
Let denote the density matrix of the algorithm after the -th query and the subsequent oracle-independent operation, with the initial state. We prove inductively that every matrix entry of , viewed as a function of , is a linear combination of functions each depending on at most input coordinates.
The claim is immediate for , since is independent of . Suppose it holds after queries, and consider the state immediately after the next oracle call,
R. Bhaumik, C. Guo, X. Guo, A. Jha
For basis labels and , we have
The first two factors depend only on and . By the induction hypothesis, the last factor is a linear combination of functions each depending on a set with . Multiplying any such function by the first two factors produces a function depending only on
which has size at most 2t. Hence every entry of has the required form.
If denotes the oracle-independent operation following the query, then every entry of is a fixed linear combination of entries of , with coefficients independent of . We emphasise that the density-matrix formulation also allows mixed initial states, classical randomness, and intermediate measurements, with their outcomes retained in the internal registers. The same coordinate-dependence bound therefore holds for . This completes the induction.
Finally, for a fixed acceptance measurement operator M,
is a fixed linear combination of entries of . Thus is a linear combination of functions each depending on at most input coordinates. For any such function , depending only on , and any with , we have . By (4), . Linearity of now gives
□
Lemmas 1 and 2, with and , yield the following Fourier interpolation result, which we use repeatedly.
Theorem 1 (Fourier interpolation). Let and be quantum function oracles. For every ,
2.3 Character Bases over Finite Abelian Groups
We now instantiate the support decomposition of Subsection 2.1. Let be a finite abelian group of order , written additively, and set and . Unless stated otherwise, all densities, expectations, inner products, and norms below are relative to the corresponding uniform measures.
Let denote the character group of . A character satisfies and , with . The principal character is the constant function 1. The characters form a canonical orthonormal basis of , abbreviated to ; the nonprincipal characters form a basis of its mean zero subspace. Thus, in Section 2.1, we may take and . We refer to [Ter99, Bab02] for the standard background in Fourier analysis.
For , the corresponding product basis function from Section 2.1 is
For , define its Fourier coefficient at by
Fourier inversion and Parseval's identity give
The support projections from Section 2.1 become
Thus is the level Fourier component. We call the diagonal subgroup of and write for the principal character on . For ,
is the -th Fourier moment of h at level t. For functions on , define their convolution by
Then
Walsh masks. When , we identify with its character group through
Here is the binary dot product. We call a mask and use the same term for tuples of masks. The principal character corresponds to 0. For a linear map between binary vector spaces,
so pulling a character back through L corresponds to applying to its mask.
2.4 Injection Densities and Fourier Coefficients
Let be a finite ambient set and let . Write for its indicator and
for the density of relative to the ambient measure .
Uniform Density on Injections. For , let denote the set of injections . Its density relative to is given by
We also refer to this as the injection density over . Fixing an ordering of identifies with the set of permutations of , and with the complete function space . In particular,
Restricting a uniform element of to any -subset gives a uniform element of . Indeed, each injective assignment of distinct outputs to has extensions to an injection on , and . Accordingly, if has support , with , then
Stated differently, inserting principal characters does not change the corresponding Fourier coefficient of the injection density. We also use (8) when , with identified with .
Two further symmetries will be useful. Negating every output preserves the injection distribution, so its Fourier coefficients are real. Translating every output by a fixed also preserves this distribution. Consequently,
R. Bhaumik, C. Guo, X. Guo, A. Jha
Indeed, translation multiplies the coefficient by , which must be one for every if the coefficient is nonzero.
Since permuting the input coordinates preserves the uniform injection distribution, the fixed-support moments of the injection density depend only on the size of the support. For and , we write
and abbreviate . Thus, is the -th Fourier moment of on one fixed support of size , while is the corresponding maximum Fourier coefficient. Accordingly, for every ,
where the first quantity is the -th Fourier moment of at level . The quantities and are referred to as the Fourier weights for and at level in [Din24], respectively. For , bounding all but two factors by the maximum gives
We shall also use Eberhard’s coefficient-merging identity [Ebe17, Section 4]. For and nonprincipal characters ,
Condition on the first distinct outputs . Since is nonprincipal,
Multiplying by and taking expectation over the uniform injection on the first coordinates gives the identity.
3 Sum of Independent Permutations
Given independent uniform random permutations of , define
For , this is the usual -XOR-of-permutations construction. We use for the number of permutations and reserve for a Fourier level. The density on any fixed set of distinct inputs is
so its Fourier coefficients are . We first record the two global estimates that will be used throughout the section, starting with Eberhard's result for .
Proposition 1 (Theorem 1.5 in [Ebe17]). Let G be a finite abelian group of order N. For every ,
Proof. The inequality follows directly from [Ebe17, Theorem 1.5]. The two equalities follow from Parseval, convolution-multiplication duality, and a grouping of the characters by their Fourier level.
We next record a slight generalisation of the smoothing argument used by Dinur that isolates the only additional step needed for .
Proposition 2. For every , every , and every set ,
where . In particular,
Proof. Fix , and pad it with principal characters to a character . By (8),
Since and is nonprincipal, the padded tuple has both a principal and a nonprincipal coordinate, and is not diagonal. Eberhard's non-diagonal coefficient bound [Ebe17, Proof of Theorem 1.4, p. 18], after multiplication by to pass to densities, gives . Hence
Summing over proves (10). Taking all nonprincipal characters and applying Proposition 1 gives (11).
Remark 2. The same bound also applies to the complete permutation density for every character with . Indeed, if and , then the restriction of a uniform permutation to is a uniform injection, and hence .
The next estimate controls the levels above two in both query models. The parameter m counts the input positions over which these levels are summed: we use m = q for the classical case and m = N for the quantum case.
Lemma 3. Let G be a finite abelian group of order . For every integer ,
and
Consequently, for integers and ,
The proof is given in Appendix B.
3.1 Refined Classical Security
The bound for every follows from the preceding smoothing argument. To improve the bound below the birthday threshold, we first compute the two-point distribution and then apply the moment bound to the levels above two.
Lemma 4. Let and let . The density of on satisfies
If is a surjective homomorphism and , the two-point density of satisfies
R. Bhaumik, C. Guo, X. Guo, A. Jha
Proof. For each permutation, put . The variable is uniform on , is uniform on , and the two are independent. The pairs are independent across . Hence is uniform and independent of , while . If , then convolution with the uniform distribution on gives
Subtracting 1/N and iterating from , for , yields
The claimed density identity follows from . Pushing forward through sends uniform measure on to uniform measure on , yielding (15).
For a fixed pair , the corresponding support-two density projection therefore has
and its total-variation contribution is
Consequently, after restricting to a fixed set Q of q inputs (by Remark 1),
The first estimate uses the pairwise total variation and the triangle inequality: since has mean zero, , as in (5). The second is Cauchy-Schwarz on level two.
Theorem 2. Fix , and let be uniform. For every ,
In particular, throughout .
Proof. The case is immediate. For the global estimate with , Remark 1 reduces the analysis to a fixed set of inputs. The density there is , and Proposition 1, followed by Proposition 2, gives
The statistical-distance bound follows from (1).
For , the advantage is zero because every one-point marginal is uniform. Assume now . By Remark 1, fix a set of queried inputs. Equation (3) removes level one, while (16) gives at level two. For and , apply (14) with . Lemma 1 then bounds the remainder by
For , the remainder is empty. The finitely many smaller group orders are absorbed into the implicit constant.
3.2 Quantum Security
We first state the bounds for the full range . They combine a direct analysis of the low-support Fourier components with the simulation argument of Section 4.
Theorem 3. Let G be a finite abelian group of order N, and let g: G → G be uniform. For ,
For every fixed ,
For , the bound sharpens to .
The bounds independent of q follow from Corollary 2. Appendix C treats level two using Zhandry's small-range distributions and proves the query-dependent bounds, including the one-query refinement.
The direct Fourier calculation also gives explicit constants. Lemma 3 applies up to support size 8N/15, which allows quantum queries. This extends the range obtained from moment estimates restricted to support size at most N/2.
Corollary 1. Let G be a finite abelian group of order , fix , and let be uniform. For , we have
Proof. The case is immediate, so assume . Regrouping the complete-table Fourier coefficients by support, and using Remark 2 and , gives
The exact support-two contribution is , by Lemma 4. Equation (14), with and , bounds the remaining contribution; this remainder is zero when . Consequently,
Theorem 1 gives the first inequality. For the second, when , so the square of the bound, after division by , is at most
□
3.3 Quantum Attacks over
We now take and . For distinct and nonzero , there exists a one-query quantum algorithm that returns with certainty. This is the usual two-point phase-query algorithm, written with an arbitrary output mask; see also Bonnetain et al. [BLNPS21]. The algorithm and its proof are given in Appendix D.
Proposition 3. For every , there exists a one-query quantum algorithm that distinguishes from with advantage .
Proof. Fix distinct and nonzero . The one-query algorithm computes . Use the acceptance function , which accepts exactly when . This bit is uniform under . By Lemma 4, under . Hence the distinguishing advantage is .
R. Bhaumik, C. Guo, X. Guo, A. Jha
Proposition 4. For and , there exists an N/2-query quantum algorithm that distinguishes from with advantage 1/2.
Proof. Fix nonzero and partition into disjoint pairs. Applying the one-query algorithm to each pair and XORing the outputs computes using queries. For , this bit is zero because every permutation ranges over and for . Under , it is uniform. Accepting when it is zero gives advantage .
For with , the one-query attack matches the asymptotic order of our quantum upper bound at . The matching half-domain threshold is discussed in Section 4.
4 Quantum Security by Completion
We next use the checksum invariance property to extend quantum security to every query count below half the domain size. The argument applies more generally when any prescribed values on a fixed number of inputs have a unique completion within a given class of functions. Completing independent uniform values gives a reference function with limited independence, to which the quantum support cutoff applies.
Theorem 4. Let be a finite set of size , let be a finite abelian group, and fix . Let be such that, for every of size , the restriction map
is a bijection. Let be a random function taking values in , and let be uniform. For every with ,
Proof. Fix a set of size , and let be the inverse restriction map. Then , whereas is uniform on . The restriction hypothesis for every -point set implies that is -wise independent. Lemma 2 therefore gives
equivalently by Zhandry's theorem [Zha12b, Theorem 3.1].
For a fixed -query distinguisher , let be its acceptance probability when given the complete oracle . A computationally unbounded classical distinguisher can query all points of and accept with probability . Its acceptance probabilities against and are exactly those of against and . Thus
Taking the supremum over proves the claim.
The sum of permutations construction falls in the case. Indeed, we can use its checksum to reconstruct the final output.
Corollary 2. Let be a finite abelian group of order . Fix some , and . Let denote a uniform random function. Then,
Proof. Let and define the set
Then, for any and , the restriction map
is a bijection. Indeed, given any , we get a unique defined as follows:
Every realisation of satisfies
and hence . Theorem 4 with , followed by Theorem 2 at classical queries, gives
This proves the claimed bound for .
Sharp query threshold for the binary setting. When with , Corollary 2 and Proposition 4 meet at consecutive query counts. For every fixed , the advantage is for every , while an -query algorithm has advantage at least . Thus is the asymptotic constant-advantage quantum query threshold for the binary construction.
5 Linear-Output-Postprocessing Variants
Throughout this section, , , and we identify characters with Walsh masks. For a mask tuple , write
For and , write . The injection density is invariant under this diagonal action, since preserves pairwise distinctness. Averaging over the general linear group therefore controls the Fourier mass inside a fixed subspace.
Proposition 5. Suppose is invariant under the diagonal action of , and let . For every -dimensional subspace ,
Proof. For , write
Using the invariance of , we have for all . It follows that . Averaging over gives
We claim that
Let . The subspace is uniform among the -dimensional subspaces of . For , its probability of containing a fixed -dimensional subspace is
and for . Here denotes the Gaussian binomial coefficient. Since for , claim (18) follows. Substituting it in (17) proves the result.
The same argument applies after restricting to any set of masks invariant under the diagonal action; in particular, support size and rank may be fixed simultaneously.
R. Bhaumik, C. Guo, X. Guo, A. Jha
5.1 Generalised and Truncated Sums of Permutations
Fix , let , , and let be a surjective linear map. Define
Projection onto fixed coordinates recovers the truncated sum of permutations studied in [CKLL22]. Proposition 5 and (11) give the following improved classical indistinguishability bound for .
Theorem 5. Fix and , and let be uniform. Then
Proof. The cases and are immediate. By Remark 1, fix a set of distinct inputs, and let be the density of the construction on . Character pullback gives
Since is surjective, identifies with the subspace , of size . Parseval's identity, Proposition 5, and (11) give
The statistical-distance bound proves the claim.
For , this improves the single-user bound of [CKLL22] by a factor in their common parameter range.
5.2 Quantum Security
The quantum bounds retain the dependence on the output size M. As in the unprojected case, we combine a bound from completion with a more precise treatment of level two. Keeping the rank of the pulled-back masks improves the bound for the remaining levels.
Theorem 6. Let be uniform. For ,
For every fixed ,
\left\|\tau\pi_{+}^{k}\right\rangle-\left|\mathfrak{g}\right\rangle\right\|_{(q)}\leq O_{k}\left(\min\left\{\frac{q^{3}}{N^{k}},\frac{\sqrt{M}}{N^{k-1}}\right\}\right).For , the bound sharpens to . For , the advantage is zero.
The proof is given in Appendix C.3. We record the simulation bound and the concrete Fourier bound below.
The projected checksum determines the final output from the other N - 1 outputs, so Theorem 4 applies.
Corollary 3. Let , , , , and let be surjective and linear. Fix , and let be uniform. For every ,
\left\|\tau\pi_{+}^{k}\right\rangle-\left|\mathfrak{g}\right\rangle\right\|_{(q)}\leq O_{k}\left(\frac{\sqrt{M}}{N^{k-1}}\right).Proof. Every realisation satisfies . Any values determine the remaining value uniquely. Theorem 4, with output group and , followed by Theorem 5, gives
\left\|\tau\pi_{+}^{k}\right\rangle-\left|\mathfrak{g}\right\rangle\right\|_{(q)}\leq\left\|\tau\pi_{+}^{k}-\mathfrak{g}\right\|_{(N-1)}\leq O_{k}\left(\frac{(N-1)\sqrt{M}}{N^{k}}\right).For explicit constants, we restrict the Fourier mass in Corollary 1 to masks in the image of .
Corollary 4. Assume , fix , and let be uniform. For , we have
Proof. For the complete function table, the pullback identity (20) holds with replaced by . The map preserves support. Proposition 5, restricted to levels at most 2q, therefore multiplies the Fourier mass used in Corollary 1 by at most . Theorem 1 proves the claim.
6 The Variable-Output LXoP Family
Throughout this section, and . We identify characters with Walsh masks. Iwata's XORP[w] construction [Iwa06] produces output blocks from domain-separated permutation calls. Dinur defined [Din25] the following LXoP family and proposed the admissibility condition below, leaving its general- security analysis to future work. We use our notation for this family and give classical and quantum bounds for every fixed .
Fix , put , and assume . The construction has input domain , of size , and produces elements of on each input. For , let
where denotes the s-bit binary representation of . We call w-admissible if
For , this is the linear orthomorphism condition on . The same condition suffices for , since over .
Given a uniform random permutation of , define by
In particular, and are respectively the constructions LXoP[ , n] and LXoP[ , 2, n] of Dinur.
The condition (22) is non-vacuous for every fixed w. For example, after identifying G with , multiplication by a primitive field element gives a w-admissible linear map whenever .
The domain separators ensure that all permutation inputs used by distinct construction inputs are distinct. Thus their outputs form a uniform injection, even though the output blocks at one input share permutation calls. We must account for these shared calls when bounding the Fourier moments. The resulting classical bound is as follows.
Theorem 7. Fix . There exists a constant , depending only on , such that the following holds. Let be w-admissible, let be a uniform random function, and let . Then
We prove the theorem using a fixed-support moment bound that will also be used for quantum queries. The full recursive calculation is given in Appendix E; here we describe the masks to which it applies.
Pulling an output character back through the linear combining map gives a character on the underlying permutation outputs. Write and define
For example, for the output character pulls back to . Extending the notation, given a mask , where , we apply separately to each tuple and use the same notation for the resulting map:
R. Bhaumik, C. Guo, X. Guo, A. Jha
We distinguish between construction masks and injection masks. A construction mask assigns one tuple of labels to each construction input. Its construction level is the number of inputs for which . Here a nonzero tuple may still have some zero entries. Its pullback is an injection mask, with one label for each underlying permutation-output position. Its injection level is the number of nonzero entries of . Writing
we call the i-th block of the injection mask.
Let denote the density on any fixed set of distinct construction inputs. Expanding each output character through the linear combining map gives
Indeed, , so the character on one block has labels on the corresponding permutation outputs. Those outputs form a uniform injection.
For , write
Thus is the second Fourier moment on one fixed support of t construction inputs. The corresponding injection coefficients need not all lie at the same level, because some coordinates can vanish after applying . We record the structure of the pullback before stating the moment bound. For one block, write
By (24)
Indeed, after substitution, each occurs twice and cancels. Conversely, the original labels are recovered by and for . Hence is injective. Since every is invertible, a nonzero construction block cannot have a pullback with exactly one nonzero entry: otherwise (27) would force that entry to be zero. Hence each nonzero construction block contributes between 2 and nonzero entries to the injection mask. Consequently, construction level pulls back to injection levels between and .
To bound , we partition the pullbacks by their exact injection support and iterate (9). At each step we choose a coordinate in an untouched block. The block relation and w-admissibility let us recover the removed label, so distinct masks remain distinct within each branch. Each merge touches at most two blocks, allowing steps. Appendix E gives the recovery argument and the resulting bounds.
Lemma 5. Fix and let be w-admissible. The fixed-support moments satisfy
There is a constant , depending only on , such that for with ,
The proof is given in Appendix E.
Proof of Theorem 7. Let , and recall from (26). Each is the contribution of one fixed set of construction inputs. There are such supports among the queried inputs. Thus input symmetry and Parseval give
Put . Lemma 5 bounds level one and, whenever , every level up to . Using , we obtain
The ratio of consecutive terms on the right is at most , where absorbs the factor . Choose sufficiently small so that and this ratio is at most whenever . Such a choice is possible since for . The same choice ensures for every . The contribution of all in (30) is then . Together with (28),
since . Taking square roots and using statistical distance at most one half of the distance proves the result.
6.1 Quantum Security
The same fixed-support moments control quantum distinguishing advantage as well. We now count supports in the complete construction domain and sum only the levels up to 2q, as required by Theorem 1.
Corollary 5. Fix . There exists a sufficiently small constant , depending only on , such that the following holds. Let , let be -admissible, and let be uniform. For every ,
Proof. The case is immediate; assume . Let be the size of the actual domain, let denote the density of the complete function, and let denote the fixed-support second Fourier moment from (26). By input symmetry,
By Lemma 5, and when . Hence, for ,
Shrink from Theorem 7, if necessary, so that
Since , we have , so Lemma 5 applies at every level , and the ratio is at most for . Hence
while the level-one contribution is . Therefore
The result follows from Theorem 1.
R. Bhaumik, C. Guo, X. Guo, A. Jha
Concrete bounds for one- and two-block output. For , Dinur gives sharper fixed-support moments. Applying Theorem 1 to these estimates gives the following concrete bounds. The proof is given in Appendix F.
Corollary 6. Let , and let be 1-admissible (equivalently, 2-admissible). For a uniform function ,
For a uniform function ,
The two constants are not comparable, as they come from different estimates: for w = 1 we bound the level sums by a geometric series with a crude ratio, whereas for w = 2 we evaluate the first few levels numerically and bound only the tail by a geometric series. The same numerical treatment would also reduce the constant w = 1.
Acknowledgements
The authors would like to thank Benoît Cogliati and the GAPS 2025 discussion group — Wonseok Choi, Chandranan Dhar, Ravindra Jejurikar, Jannis Leuther, Jordan Naccache, Abishanka Saha, André Schrottenloher, and Rentaro Shiba — for valuable discussions on the topic. A part of this result was conceived while A.J. was supported (in parts) by the German Research Foundation (DFG) within the framework of the Excellence Strategy of the Federal Government and the States – EXC 2092 CA SA – 390781972, and the Chair of Symmetric Cryptography at Ruhr University Bochum. This work was funded (in parts) by the German Federal Ministry of Education and Research (BMBF) under grant number 16KIS1802. The authors are responsible for the content of this publication.
Responsible Disclosure of AI Usage. We used ChatGPT 6, GPT-5.6, and Google Search prompts (powered by Gemini). AI tools were primarily used as a writing aid: to polish some passages, check the language, and check consistency throughout the paper. A secondary application was in certain numerical computations appearing in some proofs, where the human authors gave precise prompts to optimise certain functions and compute the resulting bounds, much as a numerical computing tool would be used in this context. All text and all technical claims, AI-assisted or not, were ultimately reviewed and validated by the authors, and they take full responsibility for the content of this paper.
References
AB12. Jean-Philippe Aumasson and Daniel J. Bernstein. Siphash: A fast short-input PRF. In Steven D. Galbraith and Mridul Nandi, editors, Progress in Cryptology - INDOCRYPT 2012, 13th International Conference on Cryptology in India, Kolkata, India, December 9-12, 2012. Proceedings, volume 7668 of Lecture Notes in Computer Science, pages 489–508. Springer, 2012. doi:10.1007/978-3-642-34931-7_28. (CITED ON P. 1.)
Bab02. László Babai. The fourier transform and equations over finite abelian groups. Online Lecture Notes, 2002. URL: https://people.cs.uchicago.edu/~laci/reu02/fourier.pdf. (CITED ON P. 8.)
BBC 98. Robert Beals, Harry Buhrman, Richard Cleve, Michele Mosca, and Ronald de Wolf. Quantum lower bounds by polynomials. In 39th Annual Symposium on Foundations of Computer Science, FOCS 1998, Palo Alto, California, USA, November 8-11, 1998, pages 352–361. IEEE Computer Society, 1998. doi:10.1109/SFCS.1998.743485. (CITED ON P. 3.)
Ber97. Daniel J. Bernstein. SURF: simple unpredictable random function, 1997. URL: http://cr.yp.to/papers/surf.pdf. (CITED ON P. 1.)
BI99. M. Bellare and R. Impagliazzo. A tool for obtaining tighter security analyses of pseudorandom function based constructions, with applications to PRP to PRF conversion. Cryptology ePrint Archive, Paper 1999/024, 1999. URL: https://eprint.iacr.org/1999/024. (CITED ON P. 2.)
BIL 21. Subhadeep Banik, Takanori Isobe, Fukang Liu, Kazuhiko Minematsu, and Kosei Sakamoto. Orthros: A low-latency PRF. IACR Trans. Symmetric Cryptol., 2021(1):37–77, 2021. doi:10.46586/TOSC.V2021.I1.37–77. (CITED ON P. 1.)
BKR94. Mihir Bellare, Joe Kilian, and Phillip Rogaway. The Security of Cipher Block Chaining. In CRYPTO 1994, volume 839 of LNCS, pages 341–358. Springer, 1994. doi:10.1007/3-540-48658-5_32. (CITED ON P. 1.)
BKR98. Mihir Bellare, Ted Krovetz, and Phillip Rogaway. Luby-rackoff backwards: Increasing security by making block ciphers non-invertible. In Kaisa Nyberg, editor, Advances in Cryptology - EUROCRYPT '98, International Conference on the Theory and Application of Cryptographic Techniques, Espoo, Finland, May 31 - June 4, 1998, Proceeding, volume 1403 of Lecture Notes in Computer Science, pages 266–280. Springer, 1998. doi:10.1007/BF00054132. (CITED ON PP. 1 AND 2.)
BLNPS21. Xavier Bonnetain, Gaetan Leurent, Maria Naya-Plasencia, and Andre Schrottenloher. Quantum linearization attacks. In Mehdi Tibouchi and Huaxiong Wang, editors, Advances in Cryptology – ASIACRYPT 2021, Part I, volume 13090 of Lecture Notes in Computer Science, pages 422–452, Cham, 2021. Springer. doi:10.1007/978-3-030-92062-3_15. (CITED ON PP. 13 AND 31.)
BN18. Srimanta Bhattacharya and Mridul Nandi. Revisiting variable output length XOR pseudorandom function. IACR Transactions on Symmetric Cryptology, 2018(1):314–335, 2018. doi:10.13154/tosc.v2018.i1.314-335. (CITED ON P. 2.)
Che22. Lily Chen. Recommendation for key derivation using pseudorandom functions. Special Publication 800-108r1-upd1, NIST, U.S. Department of Commerce, 2022. doi:10.6028/NIST.SP.800-108r1-upd1. (CITED ON P. 1.)
CKLL22. Wonseok Choi, Hwigyeom Kim, Jooyoung Lee, and Yeongmin Lee. Multi-user security of the sum of truncated random permutations. In Shweta Agrawal and Dongdai Lin, editors, Advances in Cryptology - ASIACRYPT 2022 - 28th International Conference on the Theory and Application of Cryptology and Information Security, Taipei, Taiwan, December 5-9, 2022, Proceedings, Part II, volume 13792 of Lecture Notes in Computer Science, pages 682–710. Springer, 2022. doi:10.1007/978-3-031-22966-4_23. (CITED ON PP. 2, 3, AND 16.)
CLP15. Benoît Cogliati, Rodolphe Lampe, and Jacques Patarin. The indistinguishability of the XOR of k permutations. In Carlos Cid and Christian Rechberger, editors, Fast Software Encryption – FSE 2014, volume 8540 of Lecture Notes in Computer Science, pages 285–302, Berlin, Heidelberg, 2015. Springer. doi:10.1007/978-3-662-46706-0_15. (CITED ON P. 2.)
CN08. Donghoon Chang and Mridul Nandi. A Short Proof of the PRP/PRF Switching Lemma. Cryptology ePrint Archive, Report 2008/078, 2008. URL: http://eprint.iacr.org/2008/078. (CITED ON P. 1.)
CP20. Benoît Cogliati and Jacques Patarin. Mirror Theory: A simple proof of the Theorem with . Cryptology ePrint Archive, Paper 2020/734, 2020. URL: https://eprint.iacr.org/2020/734. (CITED ON P. 2.)
CS16. Benoît Cogliati and Yannick Seurin. EWCDM: an efficient, beyond-birthday secure, nonce-misuse resistant MAC. In Matthew Robshaw and Jonathan Katz, editors, Advances in Cryptology - CRYPTO 2016 - 36th Annual International Cryptology Conference, Santa Barbara, CA, USA, August 14-18, 2016, Proceedings, Part I, volume 9814 of Lecture Notes in Computer Science, pages 121–149. Springer, 2016. doi:10.1007/978-3-662-53018-4_5. (CITED ON P. 1.)
DHT17. Wei Dai, Viet Tung Hoang, and Stefano Tessaro. Information-theoretic indistinguishability via the chi-squared method. In Jonathan Katz and Hovav Shacham, editors, Advances in Cryptology - CRYPTO 2017 - 37th Annual International Cryptology Conference, Santa Barbara, CA, USA, August 20-24, 2017, Proceedings, Part III, volume 10403 of Lecture Notes in Computer Science, pages 497–523. Springer, 2017. doi:10.1007/978-3-319-63697-9_17. (CITED ON P. 2.)
Din24. Itai Dinur. Tight indistinguishability bounds for the XOR of independent random permutations by fourier analysis. In Marc Joye and Gregor Leander, editors, Advances in Cryptology - EUROCRYPT 2024 - 43rd Annual International Conference on the Theory and Applications of Cryptographic Techniques, Zurich, Switzerland, May 26-30, 2024, Proceedings, Part I, volume 14651 of Lecture Notes in Computer Science, pages 33–62. Springer, 2024. doi:10.1007/978-3-031-58716-0_2. (CITED ON PP. 2, 5, 10, AND 24.)
Din25. Itai Dinur. Combining outputs of a random permutation: New constructions and tight security bounds by fourier analysis. In Serge Fehr and Pierre-Alain Fouque, editors, Advances in Cryptology - EUROCRYPT 2025 - 44th Annual International Conference on the Theory and Applications of Cryptographic Techniques, Madrid, Spain, May 4-8, 2025, Proceedings, Part I, volume 15601 of Lecture Notes in Computer Science, pages 244–273. Springer, 2025. doi:10.1007/978-3-031-91107-1_9. (CITED ON PP. 2, 5, 17, 31, 32, 33, AND 36.)
DNS22. Avijit Dutta, Mridul Nandi, and Abishanka Saha. Proof of mirror theory for . IEEE Trans. Inf. Theory, 68(9):6218–6232, 2022. doi:10.1109/TIT.2022.3171178. (CITED ON P. 2.)
Ebe17. Sean Eberhard. More on additive triples of bijections, 2017. URL: https://arxiv.org/abs/1704.02407, arXiv:1704.02407. (CITED ON PP. 2, 4, 5, 10, 11, 23, AND 32.)
FGL 24. Antonio Flórez-Gutiérrez, Lorenzo Grassi, Gregor Leander, Ferdinand Sibleyras, and Yosuke Todo. General practical cryptanalysis of the sum of round-reduced block ciphers and ZIP-AES. In Kai-Min Chung and Yu Sasaki, editors, Advances in Cryptology - ASIACRYPT 2024 - 30th International Conference on the Theory and Application of Cryptology and Information Security, Kolkata, India, December 9-13, 2024, Proceedings, Part IX, volume 15492 of Lecture Notes in Computer Science, pages 280–311. Springer, 2024. doi:10.1007/978-981-96-0947-5_10. (CITED ON P. 1.)
Fre77. David Freedman. A Remark on the Difference between Sampling with and without Replacement. J. American Stat. Association, 72(359):681–681, 1977. doi:10.1080/01621459.1977.10480637. (CITED ON P. 1.)
HWKS98. Chris Hall, David A. Wagner, John Kelsey, and Bruce Schneier. Building prfs from prps. In Hugo Krawczyk, editor, Advances in Cryptology - CRYPTO '98, 18th Annual International Cryptology Conference,
R. Bhaumik, C. Guo, X. Guo, A. Jha
Santa Barbara, California, USA, August 23-27, 1998, Proceedings, volume 1462 of Lecture Notes in Computer Science, pages 370–389. Springer, 1998. doi:10.1007/BF0055742. (CITED ON P. 2.)
IMV16. Tetsu Iwata, Bart Mennink, and Damian Vizár. CENC is optimally secure. Cryptology ePrint Archive, Paper 2016/1087, 2016. URL: https://eprint.iacr.org/2016/1087. (CITED ON P. 2.)
Iwa06. Tetsu Iwata. New blockcipher modes of operation with beyond the birthday bound security. In Matthew J. B. Robshaw, editor, Fast Software Encryption, 13th International Workshop, FSE 2006, Graz, Austria, March 15-17, 2006, Revised Selected Papers, volume 4047 of Lecture Notes in Computer Science, pages 310–327. Springer, 2006. doi:10.1007/11799313_20. (CITED ON PP. 2 AND 17.)
Luc00. Stefan Lucks. The sum of prps is a secure PRF. In Bart Preneel, editor, Advances in Cryptology - EUROCRYPT 2000, International Conference on the Theory and Application of Cryptographic Techniques, Bruges, Belgium, May 14-18, 2000, Proceeding, volume 1807 of Lecture Notes in Computer Science, pages 470–484. Springer, 2000. doi:10.1007/3-540-45539-6_34. (CITED ON P. 2.)
MN17a. Bart Mennink and Samuel Neves. Encrypted Davies–Meyer and its dual: Towards optimal security using mirror theory. In Jonathan Katz and Hovav Shacham, editors, Advances in Cryptology – CRYPTO 2017, Part III, volume 10403 of Lecture Notes in Computer Science, pages 556–583, Cham, 2017. Springer. doi:10.1007/978-3-319-63697-9_19. (CITED ON P. 1.)
MN17b. Bart Mennink and Samuel Neves. Optimal prfs from blockcipher designs. IACR Trans. Symmetric Cryptol., 2017(3):228–252, 2017. doi:10.13154/TOSC.V2017.I3.228-252. (CITED ON P. 1.)
MP15. Bart Mennink and Bart Preneel. On the XOR of multiple random permutations. In Stanislaw Jarecki and Dieter Gollmann, editors, Applied Cryptography and Network Security – ACNS 2015, volume 9092 of Lecture Notes in Computer Science, pages 619–634, Cham, 2015. Springer. doi:10.1007/978-3-319-28166-7_30. (CITED ON P. 2.)
MS17. Bart Mennink and Alan Szepieniec. XOR of PRPs in a quantum world. In Tanja Lange and Tsuyoshi Takagi, editors, Post-Quantum Cryptography – PQCrypto 2017, volume 10346 of Lecture Notes in Computer Science, pages 367–383, Cham, 2017. Springer. doi:10.1007/978-3-319-59879-6_21. (CITED ON P. 3.)
Nan24. Mridul Nandi. Improving tightness gap of GGM construction and its applications. In Sourav Mukhopadhyay and Pantelimon Stanica, editors, Progress in Cryptology - INDOCRYPT 2024 - 25th International Conference on Cryptology in India, Chennai, India, December 18-21, 2024, Proceedings, Part I, volume 15495 of Lecture Notes in Computer Science, pages 28–50. Springer, 2024. doi:10.1007/978-3-031-80308-6_2. (CITED ON P. 1.)
O'D14. Ryan O'Donnell. Analysis of Boolean Functions. Cambridge University Press, Cambridge, 2014. doi:10.1017/CB09781139814782. (CITED ON P. 5.)
Pat08. Jacques Patarin. A proof of security in o(2n) for the xor of two random permutations. In Reihaneh Safavi-Naini, editor, Information Theoretic Security, Third International Conference, ICITS 2008, Calgary, Canada, August 10-13, 2008, Proceedings, volume 5155 of Lecture Notes in Computer Science, pages 232–248. Springer, 2008. doi:10.1007/978-3-540-85093-9_22. (CITED ON P. 2.)
Pat10. Jacques Patarin. Introduction to mirror theory: Analysis of systems of linear equalities and linear non equalities for cryptography. Cryptology ePrint Archive, Paper 2010/287, 2010. URL: https://eprint.iacr.org/2010/287. (CITED ON P. 2.)
Pat13. Jacques Patarin. Generic attacks for the XOR of k random permutations. In Michael J. Jacobson Jr., Michael E. Locasto, Payman Mohassel, and Reihaneh Safavi-Naini, editors, Applied Cryptography and Network Security – ACNS 2013, volume 7954 of Lecture Notes in Computer Science, pages 154–169, Berlin, Heidelberg, 2013. Springer. doi:10.1007/978-3-642-38980-1_10. (CITED ON P. 2.)
Pat16. Jacques Patarin. Mirror theory and cryptography. Cryptology ePrint Archive, Paper 2016/702, 2016. URL: https://eprint.iacr.org/2016/702. (CITED ON P. 2.)
Rao66. J. N. K. Rao. On the comparison of sampling with and without replacement. Revue de l'Institut International de Statistique / Review of the International Statistical Institute, 34(2):125–138, 1966. doi:10.2307/1401762. (CITED ON P. 1.)
RS06. Phillip Rogaway and Thomas Shrimpton. A provable-security treatment of the key-wrap problem. In Serge Vaudenay, editor, Advances in Cryptology - EUROCRYPT 2006, 25th Annual International Conference on the Theory and Applications of Cryptographic Techniques, St. Petersburg, Russia, May 28 - June 1, 2006, Proceedings, volume 4004 of Lecture Notes in Computer Science, pages 373–390. Springer, 2006. doi:10.1007/11761679_23. (CITED ON P. 1.)
Ter99. Audrey Terras. Fourier Analysis on Finite Groups and Applications, volume 43 of London Mathematical Society Student Texts. Cambridge University Press, 1999. doi:10.1017/CB09780511626265. (CITED ON P. 8.)
Zha12a. Mark Zhandry. How to construct quantum random functions. In 53rd Annual IEEE Symposium on Foundations of Computer Science, FOCS 2012, New Brunswick, NJ, USA, October 20-23, 2012, pages 679–687. IEEE Computer Society, 2012. doi:10.1109/FOCS.2012.37. (CITED ON PP. 4 AND 28.)
Zha12b. Mark Zhandry. Secure identity-based encryption in the quantum random oracle model. In Reihaneh Safavi-Naini and Ran Canetti, editors, Advances in Cryptology - CRYPTO 2012 - 32nd Annual Cryptology Conference, Santa Barbara, CA, USA, August 19-23, 2012. Proceedings, volume 7417 of Lecture Notes in Computer Science, pages 758–775. Springer, 2012. doi:10.1007/978-3-642-32009-5_44. (CITED ON PP. 3 AND 14.)
A Injection Coefficient Estimates
The following coefficient bound is due to [Ebe17, Lemma 4.1], written in our density normalisation.
Proposition 6. Let G be a finite abelian group of order . Then, for all ,
Proof. From [Ebe17, Lemma 4.1],
Multiplying by gives the corresponding density coefficient, and (8) then gives the stated bound on .
A.1 Small Supports
At support size one, every nonprincipal character has zero coefficient, so . For nonprincipal ,
The unrestricted sum over is zero, since each character is nonprincipal. Subtracting the equal-output assignments gives the last equality. By character orthogonality,
There are such ordered pairs, one for each choice of , since is then forced. Hence and .
For and three nonprincipal characters, inclusion–exclusion removes the three possible pairwise equalities. The unrestricted sum and each single-pair sum vanish, since an unrestricted nonprincipal character sums to zero. The all-equal term has coefficient two, so
Consequently,
There are such ordered triples: choose , then , and finally . Thus
B Proof of Lemma 3
We retain the notation and for the actual fixed-support moment and maximum. Throughout this appendix, , and . All logarithms in this appendix are natural.
R. Bhaumik, C. Guo, X. Guo, A. Jha
Exact second moments. Parseval gives
Separating these characters by their support, and using (8), yields
where we take . Binomial inversion therefore gives the exact identity
This is the expression obtained in [Din24, Proposition 20] in the binary setting. The preceding calculation also makes clear that it depends only on the cardinality N.
Let V be an auxiliary real random variable with density, relative to Lebesgue measure,
For , direct integration gives
Consequently, the binomial-inversion identity (31) gives
This variable only represents the numerical moment sequence; it is not part of the oracle distribution. Its even moments allow us to interpolate between support sizes using Hölder's inequality.
We also use the generating function
Indeed, substituting (31) and interchanging the finite sums yields
The coefficients through degree N agree with those of . Moreover,
has non-negative coefficients. Hence, for every , , and therefore . Differentiating gives , and comparison of coefficients gives
In particular,
Extending the maximum beyond N/2. To control the remaining levels, we use Eberhard's coefficient-merging identity. For and nonprincipal , write
Then using (9)
The merged coordinate is either nonprincipal or principal, so the resulting character lies at level or . Taking absolute values and using (8) gives
Put and . We apply this recurrence for , starting from Proposition 6, which gives for . We claim that
At , this is exactly the sparse bound. At , if , the recurrence factor is one and
If , the factor is and
For , the binomial coefficients are non-increasing, so the induction step follows from
This proves (36) and extends the maximum bound beyond N/2.
The levels up to N/2. Put , so L is even and is either or . Since the largest binomial coefficient is at least ,
Using (33) at therefore gives
Also, by (34). For ,
For the middle inequality, it suffices, using , to check
The left-hand side is greater than 2.45727 at , and its derivative is in the required range.
R. Bhaumik, C. Guo, X. Guo, A. Jha
Both 6 and L are even. Hölder's inequality applied to (32), followed by (37), gives, for ,
Hence
For , the sparse maximum gives
The support-three contribution is given exactly by Appendix A:
The remaining levels. For , we have . Using (36) and then (33) at ,
For , put . The binomial probability with parameters is largest at , and is at least there. Thus
It follows that
Here , and throughout the required interval. A direct evaluation gives
There are fewer than N remaining levels, so
This also covers the possible odd level just below N/2.
Combining (38), (39), and the support-three contribution gives
After multiplication by , each rational term decreases with N: write it as a polynomial with non-negative coefficients in 1/N, divided by products of 1 - i/N. The exponential term decreases as well, since
At N = 1024, the normalised right-hand side of (40) is less than 3.245641 < 13/4. This proves (12).
A common maximum for all these levels. At support three,
For , we have
For , the entropy estimate and (36) give
Indeed, , and holds at and persists since . This proves (13).
Now let be any integer with . For , the ratio is at most . Also, . Thus the two estimates just proved give
This proves (14).
C Query-dependent Quantum Bounds for Sums of Permutations
Let have density and uniform one-point marginals, and let be uniform. For a -query quantum distinguisher with acceptance function , Lemmas 1 and 2, with , give
for . We apply this bound to the unprojected and projected sums. Their level-two components follow from Lemma 4; the common injection estimate (14) controls the higher levels.
C.1 A Bound for the Centred Collision Count
We first bound the correlation of a quantum acceptance function with the centred collision count. We state it for an arbitrary finite input set and a finite abelian output group, so that it also applies to truncation.
Lemma 6. Let X be a finite set, let H be a finite abelian group of order M, and define, for ,
where the sum is over unordered pairs of distinct inputs, and the expectation below is with respect to . If a is the acceptance probability of a q-query quantum algorithm, then
For , the expectation is zero. The implicit constant is independent of and .
Notice that has mean zero.
R. Bhaumik, C. Guo, X. Guo, A. Jha
Proof. If , , or , the claim follows from or . Assume otherwise. For a positive integer , sample independent uniform random functions and , and set . For , let . We first make the small-range bound concrete. By Lemma 2, the Fourier expansion of uses supports of size at most . On a support of size , the labels assigned by induce a partition. A fixed partition with blocks has probability
which has degree at most , since the factor at is one. The conditional character expectation depends on the partition but not on . Thus is a polynomial of degree at most , with and for every positive integer . Its coefficients are real, since its values at these real points are real. Zhandry's polynomial bound [Zha12a, Theorem B.1, with ] yields
Here the support cutoff applies directly to the addition oracle on H.
Let , and let be the density of on . As , the probability that is injective is
For each fixed pair , the probability that this is the only collision of b is
Conditioned on the first event, the values of at the distinct labels chosen by are independent and uniform, so is a uniform random function. Conditioned on the second event, the outputs at and are equal, and all other outputs remain independent and uniform. The density of this distribution is . All other collision patterns have total probability . Consequently,
where the error is uniform on the finite space , with and fixed. Thus,
Multiplying (42) by and taking the limit proves the claim. The limit is taken with and the algorithm fixed. Although the vanishing error can depend on , the surviving constant does not.
C.2 Proof of Theorem 3
Fix , and let be the density of the complete table of . Its one-point marginals are uniform. Since the two-point marginals determine the level-two projection, Lemma 4 gives
Thus Lemma 6 implies, for every q-query acceptance function a,
For q = 1, there is no remainder, proving the one-query bounds.
Suppose and . By Parseval's identity, convolution-multiplication duality, and (14) with and ,
The remainder in (41) is therefore . For , this gives ; for , it gives . The finitely many orders are absorbed into the implicit constants.
Corollary 2 gives the uniform bound throughout . For , this is no larger than . Combining the local and uniform bounds proves the theorem.
Keeping the constants in the preceding calculation gives the following bound for .
Corollary 7. Let G be a finite abelian group of order , fix , and let be uniform. For ,
(44)
For , the advantage is at most ; for , it is zero.
Proof. The first bound is Corollary 1. For the second, the two-input identity (43), which also holds for k = 2, and Lemma 6 give
For the remaining levels, (14) gives
Apply (41), retaining its factor 1/2 on the remainder. For , the remainder is empty, and for the oracles are not queried.
C.3 Proof of Theorem 6
The same decomposition gives a bound that retains the output-size dependence for the construction from Section 5.1. The additional observation is that the proof of Proposition 5 retains the rank of the span of the character coordinates. Keeping this rank information gives a finer estimate on the remainder than applying the proposition directly.
Throughout this subsection, take , , , and , with . Let be surjective and linear.
Two permutations. For , both oracles are the unique function into the trivial group. Assume . As before, the finitely many orders can be absorbed into the asymptotic constant. Fix a -query distinguisher with acceptance probability . Let be the density of on , and set . As in the proof of Theorem 5,
Here acts coordinatewise and is injective, so it preserves support size. Write
The pushforward identity (15) gives
where the second inequality follows from Lemma 6.
For , . For , Parseval and (45) give
R. Bhaumik, C. Guo, X. Guo, A. Jha
The subspace-averaging identity (17), restricted to the support levels in (46), gives
Here is the same probability function as in (19). The restriction to these levels is allowed because the diagonal action of preserves support size. In particular,
A rank-one tuple over has the same nonzero character at every position in its support. Its permutation coefficient vanishes when the support size is odd, by translating all outputs by a vector on which this character takes value -1. There are rank-one tuples of support size . For , Proposition 6 gives . Thus,
(48)
For the last step, the successive ratio of is throughout . Here suffices.
Applying (48) to the rank-one part of (47), and (14), with and , to the remaining part, gives
Hence . Now, (41) yields
Again, for .
Finally, Corollary 3 with gives
Combining this with (49) proves (21). For , the minimum selects the uniform bound, since .
For , the local bound (49) is . In particular, for a fixed-size output group, this holds throughout , with the implicit constant allowed to depend on that fixed size. The improvement from to in the remainder is a consequence of separating rank-one characters from the characters of rank at least two.
Three or more permutations. The case is immediate, and the finitely many orders can be absorbed into the constant depending on . Fix a -query distinguisher with acceptance probability , and let be the density of on . For , split its low-support part into . By (15),
and hence Lemma 6 gives a contribution .
If , the remainder is zero. Otherwise, the pullback formula (45) and the convolution identity show that each coefficient of the -sum is the corresponding coefficient of the two-sum multiplied by . As above, Lemma 3 gives
Together with the estimate proved above, this gives
Since and , this is at most , and therefore at most . This proves the local bound for . Corollary 3 gives the uniform bound . For , the uniform bound is no larger than , and the result follows.
Remark 3. The query-dependent refinement uses the exact centred-collision form of the support-two component for sums of independent permutations. For LXoP this component has a different linear structure, so the same refinement does not follow from the preceding argument.
D A Deutsch-Type One-Query Algorithm
We give the standard two-point phase-query algorithm with an arbitrary nonzero output mask; see also Bonnetain et al. [BLNPS21]. Let and let
be the standard quantum oracle.
For distinct and nonzero , there exists a one-query quantum algorithm that returns with certainty.
The algorithm uses a one-qubit register and two -qubit registers and .
Algorithm.
-
Prepare .
-
Apply to and to .
-
XOR into if , and XOR into if .
-
Apply once to and .
-
Undo Step 3.
-
Apply to , measure it, and return the outcome.
Adding to contributes the phase . Hence, after the oracle query and Step 5, register is in the state
Since , the final Hadamard transform leaves in up to a global phase. Measuring returns the required value with certainty. Only Step 4 queries .
E The Recursive Moment Argument for LXoP
Throughout this appendix, and . We prove Lemma 5. The argument follows Dinur's recursive moment bound [Din25], beginning with (9) and keeping track of a family of masks when bounding its second Fourier moment. We first prove the following more precise estimate for .
R. Bhaumik, C. Guo, X. Guo, A. Jha
Proposition 7. Fix , let be w-admissible, and let satisfy . Put . Then
We use Dinur's fixed-support second-moment estimate [Din25, Lemma 2],
E.1 From Coefficient Merging to the Moment Bound
Let be a finite set and , with , be injective. Suppose the masks have the same support, of size , and fix an integer with . At each nonempty internal node, the primary coordinate is chosen from the common support using only the initial data and the previous merge indices and zero/nonzero outcomes. We assume that, for every secondary choice and each nonempty outcome, the removed entry is uniquely determined by the child mask and these known indices and outcomes. We derive the bound under this assumption, and verify it for the LXoP family in Appendix E.2.
A current mask is a tuple . For distinct indices in its support, define the merged mask by
We keep the zero coordinates rather than delete them, so the positions retain their original names. This does not affect the Fourier coefficient, by (8). If the support of is , with , Equation (9), applied to the nonzero entries and with the primary entry placed last, gives
This is exactly the identity used in [Din25, Proposition 8], attributed there to [Ebe17, Section 4]. Taking absolute values gives the maximum recurrence used in Appendix B. For the present purpose, we instead square the identity and apply Cauchy–Schwarz:
This is the one-step estimate of [Din25, Proposition 9]. The distinction is that we will sum it over the structured family, rather than replace each term by a maximum coefficient.
A recursion node. At a node , let be the set of original masks still under consideration, and let map them to their current masks. Write for their common support and . At the root, these are , and the initial support of size . Choose one primary index for this entire family, using the initial data and the merge history as above. Before depth , we have , so a secondary index is available. For each secondary index , put
and split into
The zero branch has common support , while the nonzero branch has common support . Thus the support remains fixed within each child, even though the two children lie at different Fourier levels. Summing (52) gives
(53)
For a fixed , the two branches partition . Different choices of need not give disjoint images; each such choice is already a separate term in (53).
Why recovery is needed. By the recovery assumption, the removed primary entry is determined by the child mask and the known branch. The secondary value is then recovered from
and the other coordinates have not changed. Hence the full parent mask is determined. Starting from the injective map , this proves inductively that the map at each node is injective. This is Dinur's applicability condition [Din25, Proposition 11]. It cannot be dropped, since initial injectivity alone does not imply injectivity after a merge. For example, all masks of the form collapse to when their two coordinates are merged.
At a leaf , trim the common zero coordinates. The resulting masks are distinct elements of , so
No factor is needed here, because the leaf has one fixed support. Without recovery, a trimmed mask could occur repeatedly on the left, and the comparison with would not follow.
Summing the recursion. We stop at depth d and apply the fixed-support estimate (51) at each leaf. After d merges, every nonempty leaf has
In particular, by , and . Since , the leaf contribution is at most
Each node has at most children, and the factor preceding the child sums in (53) is at most . There are therefore at most nonempty leaves, with exactly such factors along each root-to-leaf path. Iterating (53) and then applying (54) gives
(55)
For , the same calculation is just the leaf estimate. This is the weaker of the two bounds in [Din25, Lemma 3], which is sufficient for the general- analysis. Relative to the direct bound , the right-hand side gains a factor . The purpose of the block relations is to make this recursion possible for sufficiently many steps.
E.2 Recovering Labels from an Untouched Block
We retain from (27). At a fixed recursion node, choose a primary coordinate in an untouched block, meaning that none of its entries has been selected as primary or secondary in the previous merges. Suppressing the block index, write for its entries before the merge, and for its entries after the merge. The indices in the following two calculations are local to this block. The relation
is available because the block is untouched. We do not assume that every block still satisfies this relation after a merge. In fact, the merged masks need not remain in the image of .
R. Bhaumik, C. Guo, X. Guo, A. Jha
The secondary coordinate is in another block. Only the primary coordinate changes within the chosen block. Thus for , and
The secondary value in the other block is then recovered by adding to its post-merge value. No relation in that other block is needed.
The secondary coordinate is in the same block. Let be its index. Since , substitution in the block relation gives
Now
is invertible: is invertible, and is invertible by w-admissibility. Consequently,
This also covers . The zero value and its coordinate position are retained, and do not remove any information needed by the recovery formula. These formulas determine the parent mask within each branch, establishing the recovery assumption used to derive (55).
An example with two output blocks. For w = 2, one block satisfies
If coordinate 0 is primary and coordinate 1 is secondary, the child block is , where and . The parent is recovered by
The formula applies equally when . Here is invertible. This is precisely where the linear combining map is needed: it lets us reverse a merge that would otherwise lose one character label.
Proof of Proposition 7. Fix with , and put and . Let
Partition according to the exact support of . There are at most support patterns. Fix a nonempty part with injection support , and let be the restriction of to . The map is injective, and all its masks have the same support, of size . Each nonzero construction block gives between and nonzero injection entries, so . Also , since .
Each merge touches at most two original blocks. At depth , at least blocks have not been touched. Their original entries are still present, and each such block has a nonzero entry. Choose the first untouched block and its first nonzero coordinate as primary. This choice is the same for all masks at the node and is determined by the initial support and the previous merge indices and outcomes, not by the values of the entries. The preceding recovery formulas apply for every secondary choice, including when the merged entry is zero. Thus each child map remains injective, and the recursion can be continued to depth . No primary selection is needed at a leaf.
Applying (55) to this fixed part gives
For the last inequality, the ratio is at most , while . Summing over at most support patterns and using the pullback equality in (26) proves (50). To obtain (29), note that , , and . Since , the extra factors are absorbed into a constant raised to the power .
E.3 The One-Input Moment
We give the remaining calculation for (28). Put and first assume . For this single construction block, suppress the block index and partition the nonzero masks according to the support of their pullback . Each support has size between 2 and . Translation invariance of the injection distribution, as recorded in the preliminaries, gives
For a pullback of support size two, at positions , this requires . The block relation would then give
contradicting w-admissibility and . Thus these coefficients vanish.
Consider next a fixed support of size three, at positions . A nonzero coefficient requires . Substitution in (27) gives
Both matrices are invertible. After choosing the nonzero value , the values and are determined. Hence there are at most contributing masks for this support. By Appendix A, their nonzero coefficient has magnitude . Their total second moment is therefore at most
The injectivity of ensures that each such injection mask corresponds to at most one construction mask.
For a fixed pullback support of size , apply the recursive estimate (55) with and . Indeed, , and the sole original block is untouched before that merge, so the recovery argument of Appendix E.2 applies. The contribution is at most
Since is fixed, there are only support patterns. Summing their contributions gives . The finitely many are absorbed into the implicit constant. All these estimates are uniform over the -admissible maps under consideration.
F Proofs of Concrete Bounds for Dinur's LXoP
We prove the two bounds in Corollary 6.
F.1 One-Block Output
The case is immediate; assume . Let denote the density of the complete function on its actual domain, of size . By input symmetry and the definition of ,
R. Bhaumik, C. Guo, X. Guo, A. Jha
The term is zero by the support-two calculation in Appendix E.3, as also shown in [Din25, Proposition 15]. For , [Din25, Proposition 16] gives
where for even and for odd . Proposition 16 applies for , which contains every level used below. Suppose . Using , , , and , we obtain
Since and ,
Therefore, for ,
Theorem 1 then yields the first bound in Corollary 6.
F.2 Two-Block Output
The case is immediate; assume . Let denote the density of the complete function, whose actual domain has size . In the one-input calculation of Appendix E.3, exactly the construction masks with contribute. Each has coefficient . Thus, as in [Din25, Lemma 8],
For , Proposition 19 of the same work, together with input symmetry, gives
where for even and for odd . Since , this estimate applies at every required level.
For two consecutive levels of the same parity with and , a direct calculation gives
(57)
We give some details for the uniform numerical bound. For fixed , the displayed expression decreases with when . Substituting and using bounds it by
The middle inequality holds for , using . This proves the bound uniformly in and .
We next evaluate the first few levels. For , their scaled upper bounds decrease with N, and their values at N = 2048 give
The right-hand side of (56) is smaller than 0.001/N. Using the ratio 0.855 in (57), separately for the even and odd tails, yields
Missing low levels when is small can be added as positive upper bounds. For , we have , and direct evaluation of the levels gives total second Fourier moment less than . Theorem 1 now proves the second bound in Corollary 6.