Quantum-secure message authentication via blind-unforgeability
Gorjan Alagic, Christian Majenz, Alexander Russell, Fang Song

TL;DR
This paper introduces a new quantum-aware notion of message unforgeability called blind unforgeability, supporting classical and quantum cryptographic constructions and demonstrating its strength over previous definitions.
Contribution
The paper proposes the blind unforgeability definition for quantum adversaries, extending classical unforgeability notions and validating it with cryptographic examples and constructions.
Findings
Blind unforgeability coincides with EUF-CMA classically.
Hash-and-MAC and Lamport signatures are unforgeable under this definition.
Blind unforgeability is stronger than previous quantum unforgeability notions.
Abstract
Formulating and designing authentication of classical messages in the presence of adversaries with quantum query access has been a longstanding challenge, as the familiar classical notions of unforgeability do not directly translate into meaningful notions in the quantum setting. A particular difficulty is how to fairly capture the notion of "predicting an unqueried value" when the adversary can query in quantum superposition. We propose a natural definition of unforgeability against quantum adversaries called blind unforgeability. This notion defines a function to be predictable if there exists an adversary who can use "partially blinded" oracle access to predict values in the blinded region. We support the proposal with a number of technical results. We begin by establishing that the notion coincides with EUF-CMA in the classical setting and go on to demonstrate that the notion is…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsQuantum Computing Algorithms and Architecture · Cryptography and Data Security · Cryptographic Implementations and Security
Quantum-access-secure message authentication
via blind-unforgeability
Gorjan Alagic
QuICS, University of Maryland, and NIST, Gaithersburg, Maryland
Christian Majenz
QuSoft and Centrum Wiskunde & Informatica, Amsterdam
Alexander Russell
Department of Computer Science and Engineering, University of Connecticut
Fang Song
Department of Computer Science, Portland State University
Abstract
Formulating and designing authentication of classical messages in the presence of adversaries with quantum query access has been a longstanding challenge, as the familiar classical notions of unforgeability do not directly translate into meaningful notions in the quantum setting. A particular difficulty is how to fairly capture the notion of “predicting an unqueried value” when the adversary can query in quantum superposition.
We propose a natural definition of unforgeability against quantum adversaries called blind unforgeability. This notion defines a function to be predictable if there exists an adversary who can use “partially blinded” oracle access to predict values in the blinded region. We support the proposal with a number of technical results. We begin by establishing that the notion coincides with EUF-CMA in the classical setting and go on to demonstrate that the notion is satisfied by a number of simple guiding examples, such as random functions and quantum-query-secure pseudorandom functions. We then show the suitability of blind unforgeability for supporting canonical constructions and reductions. We prove that the “hash-and-MAC” paradigm and the Lamport one-time digital signature scheme are indeed unforgeable according to the definition. To support our analysis, we additionally define and study a new variety of quantum-secure hash functions called Bernoulli-preserving.
Finally, we demonstrate that blind unforgeability is stronger than a previous definition of Boneh and Zhandry [EUROCRYPT ’13, CRYPTO ’13] in the sense that we can construct an explicit function family which is forgeable by an attack that is recognized by blind-unforgeability, yet satisfies the definition by Boneh and Zhandry.
Note: An earlier version of this article contained a theorem that the new security notion “blind-unforgeability” () we introduce implies the notion of “plus-one” unforgeability () that was hitherto the only proposed generalization of to quantum chosen-message queries. Unfortunately the proof contained an error. We thank Shih-Han Hung for discovering the error. We have now removed the claim and the question whether the implication holds is currently open. We would like to emphasize that the example presented in Section 8 disqualifies as a quantum-access generalization of , so currently there are two reasonable possible definitions of “quantum-access ”: the notion of blind-unforgeability proposed in this article, and its conjunction with plus-one unforgeability.
1 Introduction
Large-scale quantum computers will break widely-deployed public-key cryptography, and may even threaten certain post-quantum candidates [21, 8, 9, 10, 5]. Even elementary symmetric-key constructions like Feistel ciphers and CBC-MACs become vulnerable in quantum attack models where the adversary is presumed to have quantum query access to some part of the cryptosystem [15, 16, 14, 20]. As an example, consider encryption in the setting where the adversary has access to the unitary operator , where is the encryption or decryption function with secret key . While it is debatable if this model reflects physical implementations of symmetric-key cryptography, it appears necessary in a number of generic settings, such as public-key encryption and hashing with public hash functions. It could also be relevant when private-key primitives are composed in larger protocols, e.g., by exposing circuits via obfuscation [19]. Setting down appropriate security definitions in this quantum attack model is the subject of several threads of recent research [7, 11].
In this article, we study authentication of classical information in the quantum-secure model. Here, the adversary is granted quantum query access to the signing algorithm of a message authentication code (MAC) or a digital signature scheme, and is tasked with producing valid forgeries. In the purely classical setting, we insist that the forgeries are fresh, i.e., distinct from previous queries to the oracle. When the function may be queried in superposition, however, it’s unclear how to meaningfully reflect this constraint that a forgery was previously “unqueried.” For example, it is clear that an adversary that simply queries with a uniform superposition and then measures a forgery—a feasible attack against any function—should not be considered successful. On the other hand, an adversary that uses the same query to discover some structural property (e.g., a superpolynomial-size period in the MAC) should be considered a break. Examples like these indicate the difficulty of the problem. How do we correctly “price” the queries? How do we decide if a forgery is fresh? Furthermore, how can this be done in a manner that is consistent with these guiding examples? In fact, this problem has a natural interpretation that goes well beyond cryptography: *What does it mean for a classical function to appear unpredictable to a quantum oracle algorithm?*111The related notion of “appearing random to quantum oracle algorithms” has a satisfying definition, which can be fulfilled efficiently [27].
1.1 Previous approaches
The first approach to this problem was suggested by Boneh and Zhandry [6]. They define a MAC to be unforgeable if, after making queries to the MAC, no adversary can produce valid input-output pairs except with negligible probability. We will refer to this notion as “ security” ( for “plus one,” and - when the adversary is permitted a maximum of queries). Among a number of results, Boneh and Zhandry prove that this notion can be realized by a quantum-secure pseudorandom function ().
Another approach, due to Garg, Yuen and Zhandry [12] (), considers a function one-time unforgeable if only a trivial “query, measure in computational basis, output result” attack222Technically, the Stinespring dilation [23] of a computational basis measurement is the most general attack. is allowed. Unfortunately, it is not clear how to extend to two or more queries. Furthermore, the single query is allowed in a limited query model with an non-standard restriction.333Compared to the standard quantum oracle for a classical function, GYZ require the output register to be empty prior to the query. Zhandry recently showed a separation between and by means of the powerful tool of obfuscation [29].
It is interesting to note that similar problems arise in encryption schemes of quantum data and a convincing solution was recently found [3, 2]. However, it relies on the fact that for quantum messages, authentication implies secrecy. This enables “tricking” the adversary by replacing their queries with “trap” plaintexts to detect replays. As unforgeability and secrecy are orthogonal in the classical world, adversaries would easily recognize the spoofed oracle. This renders the approach of [3, 2] inapplicable in this case.
1.2 Unresolved issues
security, the only candidate definition of quantum-secure unforgeability in the general, multi-query setting, appears to be insufficient for several reasons. First, as observed in [12], it is a priori unclear if security rules out forging on a message region while making queries to a signing oracle supported on a disjoint message region . Second, there may be unique features of quantum information, such as the destructiveness of quantum measurement, which does not capture. In particular, quantum algorithms must sometimes “consume” (i.e., fully measure) a state to extract some useful information, such as a symmetry in the oracle. There might be an adversary that makes one or more quantum queries but then must consume the post-query states completely in order to make a single, but convincing, forgery.
Surprisingly, prior to this work none of these plausible attack strategies have been exploited to give a separation between and “intuitive security.”
2 Summary of results
2.1 A new definition: Blind-unforgeability
To address the abovementioned issues, and in light of the concrete “counterexample” presented below as Construction 1, we develop a new definition of many-time unforgeability we call “blind-unforgeability” (or ). In this approach we examine the behavior of adversaries in the following experiment. The adversary is granted quantum oracle access to the MAC, “blinded” at a random region . Specifically, we set to be a random -fraction of the message space, and declare that the oracle function will output on all of .
[TABLE]
Given a MAC , an adversary , and -selected parameter , the “blind forgery experiment” is:
Generate key and random blinding ; 2. 2.
Produce candidate forgery . 3. 3.
Output if and ; otherwise output .
Definition 1**.**
A MAC is blind-unforgeable () if for every adversary , the probability of winning the blind forgery experiment is negligible.
In this work, will typically refer to the case where is an efficient quantum algorithm (QPT) and the oracle is quantum, i.e., . We will also consider -, the information-theoretic variant where the total number of queries is a priori fixed to . We remark that the above definition is also easy to adapt to other settings, e.g., classical security against PPT adversaries, quantum or classical security for digital signatures, etc.
We remark that one could define a variant of the above where the adversary is allowed to describe the blinding distribution, rather than it being uniform. However, this is not a stronger notion. By a straightforward argument, an adversary wins in the chosen-blinding game if and only if it wins with a uniform -blinding for inverse-polynomial . Indeed, the adversary can just simulate its chosen blinding herself, and this still succeeds with inverse polynomial probability when interacting with a standard-blinded oracle (see Theorem 1 below).
2.2 Results about blind-unforgeability
To solidify our confidence in the new notion, we collect a series of results which we believe establish as a definition of unforgeability that captures the desired intuitive security requirement. In particular, we show that classifies a host of representative examples (in fact, all examples examined thus far) as either forgeable or unforgeable in a way that agrees with our cryptographic intuition. We show that certifies certain MACs as secure but are completely broken by a quantum-access attack in a strong and intuitive sense (Section 2.3 below). While we cannot currently prove that is strictly stronger than as a security notion, we can show that implies a weaker version of in Section 5.2.3.
Relations and characterizations.
One key technical ingredient that informs our intuition and characterization results about is a general simulation theorem, which tightly controls the deviation in the behavior of an algorithm when subjected to the experiment.
Theorem 1**.**
Let be a quantum query algorithm making at most queries. Let be a function, a random -blinding subset of , and for each , let be a function with support . Then
[TABLE]
This result can be viewed as strong evidence that algorithms that produce “good forgeries” in any reasonable sense will not be disturbed too much by blinding, and will thus also win the experiment. We can formulate and prove this intuition explicitly for a wide class of adversaries, as follows. Given an oracle algorithm , we let denote the union of the supports of all the queries of , taken over all choices of oracle function.
Theorem 2** (informal).**
Let be QPT and for some . Let be a MAC, and suppose outputs a valid pair with with noticeable probability. Then is not secure.
Blind-unforgeable MACs.
Next, we show that several natural constructions satisfy . We first show that a random function is blind-unforgeable.
Theorem 3**.**
Let be a random function such that is negligible. Then is a blind-unforgeable MAC.
This together with results of Zhandry [27] and Boneh and Zhandry [6] leads to efficient -secure constructions.
Corollary 1**.**
Quantum-secure pseudorandom functions () are -secure MACs, and (4q+1)-wise independent functions are --secure MACs.
We can then invoke a recent result about the quantum-security of domain-extension schemes such as NMAC and HMAC [22], and obtain variable-length -secure MACs from any .
In the setting of public verification, we show that the one-time Lamport signature scheme [17] is -secure, provided that the underlying hash function family is modeled as a random oracle.
Theorem 4**.**
Let be a random function family. Then the Lamport scheme is against adversaries which make one quantum query to and poly-many quantum queries to .
Hash-and-MAC.
Consider the following natural variation on the blind-forgery experiment. To blind , we first select a hash function and a blinding set ; we then declare that will be blinded on whenever . We refer to this as “hash-blinding.” We call a Bernoulli-preserving hash if, for every oracle function , no QPT can distinguish between an oracle that has been hash-blinded with , and an oracle that has been blinded in the usual sense. Recall the notion of collapsing from [25].
Theorem 5**.**
Let be a hash function. If is Bernoulli-preserving hash, then it is also collapsing. Moreover, against adversaries with classical oracle access, is a Bernoulli-preserving hash if and only if it is collision-resistant.
We apply this new notion to show security of the Hash-and-MAC construction with .
Theorem 6**.**
Let be a -secure MAC with , and let a Bernoulli-preserving hash. Then is a -secure MAC.
We also show that the Bernoulli-preserving property can be satisfied by pseudorandom constructions, as well as a (public-key) hash based on lossy functions from [18, 24].
2.3 A concrete “counterexample” for
Supporting our motivation to devise a new unforgeability definition, we present a construction of a MAC which is forgeable (in a strong intuitive sense) and yet is classified by as secure.
Construction 1**.**
Given where is a random period and are random functions, define by
[TABLE]
Define and consider an adversary that queries only on messages starting with , as follows:
[TABLE]
discarding the first qubit and then yields , as . One can then recover via period-finding and output . We emphasize that the forgery was queried with zero amplitude. In practice, we can interpret it as, e.g., the attacker queries only on messages starting with “From: Alice” and then forges a message starting with “From: Bob”. Despite this, we can show that it is -secure.
Theorem 7**.**
The family (for uniformly random ) is -secure.
The security of relies on a dilemma the adversary faces at each query: either learn an output of , or obtain a superposition of -pairs for Fourier sampling. Our proof shows that, once the adversary commits to one of these two choices, the other option is irrevocably lost. Our result can thus be understood as a refinement of an observation of Aaronson: quantumly learning a property sometimes requires uncomputing some information [1]. Note that, while Aaronson could rely on standard (asymptotic) query complexity techniques, our problem is quite fragile: security describes a task which should be hard with queries, but is completely trivial given queries. Our proof makes use of a new quantum random oracle technique of Zhandry [28].
A straightforward application of Theorem 2 shows that Construction 1 is -insecure. In particular, we have the following.
Corollary 2**.**
There exists a -secure MAC which is -insecure.
The relationship between , and a few other notions are visualized in Figure 1.
2.4 Acknowledgements
The authors thanks Shih-Han Hung for discovering an error in an earlier version of this paper. CM thanks Ronald de Wolf for helpful discussions on query complexity. GA acknowledges support from the NSF under grant CCF-1763736, from the U.S. Army Research Office under Grant Number W911NF-20-1-0015, and from the U.S. Department of Energy under Award Number DE-SC0020312. CM was funded by a NWO VIDI grant (Project No. 639.022.519) and a NWO VENI grant (Project No. VI.Veni.192.159). FS acknowledges support from NSF grant CCF-2042414. AR acknowledges support from NSF grant CCF-1763773.
3 Preliminaries
Basic notation and conventions.
Given a finite set , the notation will mean that is a uniformly random element of . Given a subset of a set , let denote the characteristic function of , i.e., if and otherwise. When we say that a classical function is efficiently computable, we mean that there exists a uniform family of deterministic classical circuits which computes . We will consider three classes of algorithms: (i.) unrestricted algorithms, modeling computationally unbounded adversaries, (ii.) probabilistic poly-time algorithms (PPTs), modeling classical adversaries, and (iii.) quantum poly-time algorithms (QPTs), modeling quantum adversaries. We assume that the latter two are given as polynomial-time uniform families of circuits. For PPTs, these are probabilistic circuits. For QPTs, they are quantum circuits, which may contain both unitary gates and measurements. We will often assume (without loss of generality) that the measurements are postponed to the end of the circuit, and that they take place in the computational basis. Given an algorithm , we let denote the (in general, mixed) state output by on input . In particular, if has classical output, then denotes a probability distribution. Unless otherwise stated, the probability is taken over all random coins and measurements of and any randomness used to select the input . If is an oracle algorithm and a classical function, then is the mixed state output by equipped with oracle and input ; the probability is now also taken over any randomness used to generate .
We will distinguish between two ways of presenting a function as an oracle. First, the usual “classical oracle access” simply means that each oracle call grants one classical invocation . This will always be the oracle model for PPTs. Second, “quantum oracle access” will mean that each oracle call grants an invocation of the -qubit unitary gate This will always be the oracle model for QPTs. Note that both QPTs and unrestricted algorithms could in principle receive either oracle type.
We will need the following lemma. We use the formulation from [7, Lemma 2.1], which is a special case of a more general “pinching lemma” of Hayashi [13].
Lemma 1**.**
Let be a quantum algorithm and . Let be another quantum algorithm obtained from by pausing at an arbitrary stage of execution, performing a partial measurement that obtains one of outcomes, and then resuming . Then .
We denote the trace distance between states and by . Recall that this is simply half the trace norm of the difference, i.e., . When and are classical probability distributions, the trace distance is equal to the total variation distance.
3.1 Quantum-secure pseudorandomness
A quantum-secure pseudorandom function () is a family of classical, deterministic, efficiently-computable functions which appear random to QPT adversaries with quantum oracle access.
Definition 2**.**
An efficiently computable function family is a quantum-secure pseudorandom function () if, for all QPTs ,
[TABLE]
Here denotes the set of all functions from to . The standard “GGM+GL” construction of a yields a when instantiated with a quantum-secure one-way function [27]. One can also construct a directly from the Learning with Errors assumption [27]. If we have an a priori bound on the number of allowed queries, then a computational assumption is not needed.
Theorem 8** (Lemma 6.4 in [6]).**
Let be integers, and a -wise independent family of functions. Let be an algorithm making no more than quantum oracle queries and classical oracle queries. Then
[TABLE]
3.2 -unforgeability
Boneh and Zhandry define unforgeability (against quantum queries) for classical MACs as follows [6]. They also show that random functions satisfy this notion.
Definition 3**.**
Let be a MAC with message set . Consider the following experiment with an algorithm :
Generate key:* .* 2. 2.
Generate forgeries:* receives quantum oracle for , makes queries, and outputs a string ;* 3. 3.
Outcome:* output win if contains distinct input-output pairs of , and fail otherwise.*
We say that is -secure if no adversary can succeed at the above experiment with better than negligible probability.
3.3 The Fourier Oracle
Our separation proof will make use of a new technique of Zhandry [28] for analyzing random oracles. We briefly describe this framework.
A random function from bits to bits can be viewed as the outcome of a quantum measurement. More precisely, let , where . Then set , where
[TABLE]
and denotes the measurement of the register in the computational basis. This measurement commutes with any gate with control qubit in and target qubit outside . It follows that, for any quantum algorithm making queries to a random oracle, the output distribution is identical if the algorithm is instead run with the following oracle:
Setup: Prepare the state . 2. 2.
Upon a query with query registers and , controlled on being in state , apply . 3. 3.
After the algorithm has finished, measure to determine the success of the computation.
We denote the oracle unitary defined in step 2 above by . Having defined this oracle representation, we are free to apply any unitary to the oracle state, so long as we then also apply the conjugated query unitary
[TABLE]
in place of . We choose , which means that the oracle register starts in the all-zero state now. Applying Hadamard to both qubits reverses the direction of CNOT, i.e.,
[TABLE]
so the adversary-oracle-state after a first query with query state is
[TABLE]
where denotes the position of in the lexicographic ordering of , and we defined the Fourier basis state . In the rest of this section, we freely change the order in which tensor products are written, and keep track of the tensor factors through the use of subscripts. This adjusted representation is called the Fourier oracle (FO), and we denote its oracle unitary by
[TABLE]
An essential fact about the FO is that each query can only change the number of non-zero entries in the FO’s register by at most one. To formalize this idea, we define the “number operator”
[TABLE]
The number operator can also be written in its spectral decomposition,
[TABLE]
Note that the initial joint state of a quantum query algorithm and the oracle (in the FO-oracle picture described above) is in the image of . The following fact is essential for working with the Fourier Oracle; to avoid disrupting the flow of the article, the proof is given in Appendix A.1.
Lemma 2**.**
The number operator satisfies \bigl{\|}\left[N_{F},U_{XYF}^{FO}\right]\bigr{\|}_{\infty}=1. In particular, the joint state of a quantum query algorithm and the oracle after the -th query is in the kernel of for all .
4 The new notion: Blind-Unforgeability
4.1 Formal definition
For ease of exposition, we begin by introducing our new security notion in a form analogue to the standard notion of existential unforgeability under chosen-message attacks, . We will also later show how to extend our approach to obtain a corresponding analogue of strong unforgeability. We begin by defining a “blinding” operation. Let and . We let
[TABLE]
We say that has been “blinded” by . In this context, we will be particularly interested in the setting where elements of are placed in independently at random with a particular probability ; we let denote this random variable. (It will be easy to infer from context so we do not reflect it in the notation.)
Next, we define a security game in which an adversary is tasked with using a blinded MAC oracle to produce a valid input-output pair in the blinded set.
Definition 4**.**
Let be a MAC with message set . Let be an algorithm, and an efficiently computable function. The blind forgery experiment proceeds as follows:
Generate key:* .* 2. 2.
Generate blinding:* select by placing each into independently with probability .* 3. 3.
Produce forgery:* .* 4. 4.
Outcome:* output if and ; otherwise output [math].*
We say that a scheme is blind-unforgeable if, for any efficient adversary, the probability of winning the game is negligible. The probability is taken over the choice of key, the choice of blinding set, and any internal randomness of the adversary. We remark that specifying an adversary requires specifying (in a uniform fashion) both the algorithm and the blinding fraction .
Definition 5**.**
A MAC is blind-unforgeable (BU) if for every polynomial-time uniform adversary ,
[TABLE]
We also define the “-time” variant of the blinded forgery game, which is identical to Definition 4 except that the adversary is only allowed to make queries to in step (3). We call the resulting game , and give the corresponding definition of -time security (now against computationally unbounded adversaries).
Definition 6**.**
A MAC is -time blind-unforgeable (-BU) if for every -query adversary , we have
[TABLE]
The above definitions are agnostic regarding the computational power of the adversary and the type of oracle provided. For example, selecting PPT adversaries and classical oracles in Definition 5 yields a definition of classical unforgeability; we will later show that this is equivalent to standard . The main focus of our work will be on against QPTs with quantum oracle access, and - against unrestricted adversaries with quantum oracle access.
4.2 Some technical details
We now remark on a few details in the usage of . First, strictly speaking, the blinding sets in the security games above cannot be generated efficiently. However, a pseudorandom blinding set will suffice. Pseudorandom blinding sets can be generated straightforwardly using an appropriate pseudorandom function, such as a against PPTs or a against QPT. A precise description of how to perform this pseudorandom blinding is given in the proof of Corollary 4. Note that simulating the blinding requires computing and uncomputing the random function, so we must make two quantum queries for each quantum query of the adversary. Moreover, verifying whether the forgery is in the blinding set at the end requires one additional classical query. This means that -wise independent functions are both necessary and sufficient for generating blinding sets for -query adversaries (see [6, Lemma 6.4]). In any case, an adversary which behaves differently in the random-blinding game versus the pseudorandom-blinding game immediately yields a distinguisher against the corresponding pseudorandom function.
The blinding symbol. There is some flexibility in how one defines the blinding symbol . In situations where the particular instantiation of the blinding symbol might matter, we will adopt the convention that the blinded version of is defined by setting , where if and otherwise. One advantage of this convention (i.e., that ) is that we can compute on and/or measure the blinded bit (i.e., the -st bit) without affecting the output register of the function. This will also turn out to be convenient for uncomputation.
Strong blind-unforgeability. The security notion given in Definition 5 is an analogue of simple unforgeability, i.e., , for the case of a quantum-accessible MAC/Signing oracle. It is, however, straightforward to define a corresponding analogue of strong unforgeability, i.e., , as well.
The notion of strong blind-unforgeability, , is obtained by a simple adjustment compared to : we blind (message, tag) pairs rather than just messages. We briefly describe this for the case of MACs. Let be a MAC with message set , randomness set and tag set , so that and for every . Given a parameter and an adversary , the strong blind forgery game proceeds as follows:
Generate key: ; generate blinding: select by placing pairs in independently with probability ; 2. 2.
Produce forgery: produce by executing with quantum oracle access to the function
[TABLE]
where is sampled uniformly for each oracle call. 3. 3.
Outcome: output if ; otherwise output [math].
Security is then defined as before: is -secure if for all adversaries (and their declared ), the success probability at winning the above game is negligible. Note that, for the case of canonical MACs, this definition coincides with Definition 5, just as and coincide in this case.
5 Intuitive security and the meaning of
In this section, we gather a number of results which build confidence in as a satisfactory definition of unforgeability in our setting. We begin by showing that a wide range of “intuitively forgeable” MACs (indeed, all such examples we have examined) are correctly characterized by as insecure.
5.1 Intuitively forgeable schemes
As indicated earlier, security rules out any MAC schemes where an attacker can query a subset of the message space and forge outside that region. To make this claim precise, we first define the query support of an oracle algorithm . Let be a quantum query algorithm with oracle access to the quantum oracle for a classical function from to bits. Without loss of generality proceeds by applying the sequence of unitaries to the initial state , followed by a POVM . Here, and are the input and output registers of the function and is the algorithm’s workspace. Let be the intermediate state of of after the application of . Then is defined to be the set of input strings such that there exists a function such that for at least one when .
Theorem 9**.**
Let be a QPT such that for some . Let be a MAC, and suppose outputs a valid pair with with non-negligible probability. Then is not -secure.
To prove Theorem 9, we will need the following theorem, which controls the change in the output state of an algorithm resulting from applying a blinding to its oracle. Given an oracle algorithm and two oracles and , the trace distance between the output of with oracle and with oracle is denoted by . Given two functions , we define the function by .
Theorem 10**.**
Let be a quantum query algorithm making at most queries, and a function. Let be a subset chosen by independently including each element of with probability , and be any function with support . Then
[TABLE]
The proof is a relatively straightforward hybrid argument in the spirit of the lower bound for Grover search [4]. We provide the complete proof in Appendix A.2. We are now ready to prove Theorem 9.
Proof of Theorem 9.
Let be a quantum algorithm with for any oracle. By our hypothesis,
[TABLE]
for some and sufficiently large . Since is a fixed set, we can think of sampling a random as picking and independently. Let “blind” denote the random experiment of running on blinded by a random : , which is equivalent to . The probability that wins the BU game is
[TABLE]
Here the second-to-last step follows from Theorem 10; in the last step, we chose . We conclude that breaks the security of the MAC. ∎
5.2 Relationship to other definitions
5.2.1 Classical is equivalent to
In the purely classical setting, our notion is equivalent to EUF-CMA. In the strong unforgeability case, this means with blinding on message-tag pairs, as described in Section 4.2.
Proposition 1**.**
A MAC is EUF-CMA if and only if it is blind-unforgeable against classical adversaries.
Proof.
Set . Consider an adversary which violates EUF-CMA. Such an adversary, given and oracle access to (for ), produces a forgery with non-negligible probability ; in particular, and is not among the messages queried by . This same adversary (when coupled with an appropriate ) breaks the system under the blind-forgery definition. Specifically, let be the running time of , in which case clearly makes no more than queries, and define . Consider now a particular and a particular sequence of random coins for . If this run of results in a forgery , observe that with probability at least in the choice of , we have for every query made by . On the other hand, with (independent) probability . It follows is at least .
On the the other hand, suppose that is an adversary that breaks blind-unforgeability. Consider now the EUF-CMA adversary which simulates the adversary by answering oracle queries according to a locally-simulated version of ; specifically, the adversary proceeds by drawing a subset as described above and answering queries made by according to . Two remarks are in order:
- •
When , this query is answered without an oracle call to .
- •
can construct the set “on the fly,” by determining, when a particular query is made by , whether and “remembering” this information in case the query is asked again (“lazy sampling”).
With probability produces a forgery on a point which was not queried by , as desired. It follows that produces a (conventional) forgery with non-negligible probability when given for . ∎
5.2.2 implies
In this section, we sketch how our new security notion, , implies the one-time security notion put forward by Garg, Yuen and Zhandry [12]. We do this for unitary adversaries without loss of generality. We expect that the ideas carry over to the fully general case. For the special case we consider here, unforgeability can be defined as follows.
Definition 7** ( unforgeability).**
Let be a MAC. is called --unforgeable, if for attack unitary , there exists a simulator sub-unitary 444A matrix is sub-unitary if . such that for and for all initial states
[TABLE]
where and
[TABLE]
is the projector onto the subspace of valid message-tag-pairs.
We are now ready to state the desired theorem. Here, -1- denotes the one-time version of that allows for maximal adversarial advantage , and similarly for -. The theorem is easiest proven using the measured version of , .
Theorem 11**.**
Let be unconditionally555Here, “unconditionally” means without any assumption on the computational complexity of the adversary. -1--secure. Then it is --unforgeable.
implies , so we immediately obtain the following
Corollary 3**.**
Let be -1--secure. Then it is --unforgeable.
For the proof of Theorem 11, we need the following lemma stating that an algorithm’s success probability does not degrade too much if some operation that never leaves a computational basis state unchanged is sandwiched between a blinding projector and its complement.
Lemma 3**.**
Let be the projector onto the subspace spanned by the computational basis states corresponding to strings in the blinding set sampled as for the definition of . Let further be a matrix such that for all . Then for all
[TABLE]
where .
Proof.
Let
[TABLE]
and
[TABLE]
We calculate
[TABLE]
In the last three lines,
[TABLE]
is the computational basis pinching channel, we used the condition so we can add these terms for free, and the second, third and fourth term arise because of the increase of the probability if , , or both. But the second, third and fourth term are positive semidefinite, so the claimed operator inequality follows. ∎
Proof of Theorem 11.
Let
[TABLE]
be an attack unitary that breaks -, and define the simulator sub-unitary
[TABLE]
to be the diagonal part of . By assumption there exists a state such that
[TABLE]
Now we use the initial state and the unitary as attacker for 1-: queries the -type oracle for on , applies , measures and outputs the result. The success probability of this adversary can be lower bounded by the probability that the first measurement turns up “not blinded” and the adversary is successful. So for a fixed key and randomness , and defining with we get
[TABLE]
Here we have used the fact that for all blinding sets in the second line, and Lemma 3 in the second-to-last line. Taking the expectation over and and using Equation (16), we arrive at
[TABLE]
Choosing we obtain
[TABLE]
∎
5.2.3 implies quadratic
It is interesting to ask if -security implies -security, as the definition certainly captures a natural family of attacks that one would like to rule out. We are unable to settle this question completely, but provide some weaker connection. Specifically, we show that if a function is BU-secure, then it is -secure with a weaker definition of -security that forbids an adversary from producing forgeries from queries with high probability.
For this purpose, consider a function and a -type adversary which, given oracle access to , makes some queries and produces forgeries (with probability 1); here is a constant we set later in the discussion. We consider the behavior of this adversary supplied with an oracle blinded at a random set . We will show that for an appropriate value of and , this adversary produces a family of forgeries which includes at least one blinded forgery with constant probability. Finally selecting one of these forgeries at random produces an adversary that breaks the BU security definition.
Returning to the -adversary , we say that a particular blinding set is -evasive if
[TABLE]
(Note that this event is determined by running with the unblinded oracle .) Observing that
[TABLE]
We note that (by Markov’s inequality),
[TABLE]
Similarly, we say that a particular blinding set is -divergent if
[TABLE]
where is the distribution of outputs of and is the distribution of outputs of when is blinded on set . In light of Theorem 1,
[TABLE]
and it follows by Markov’s inequality that
[TABLE]
Fixing for , note that if is neither -evasive nor -divergent then
[TABLE]
(associated with the distribution ), and hence
[TABLE]
Finally, note that the probability that is -evasive or -divergent is no more than
[TABLE]
Then it is clear that one can choose the constants and , and the blinding probability , so that this quantity is a constant bounded away from one. (For example, set . Then, with the second term of above is no more than ; setting guarantees the first term is likewise no more than and the entire expression is a constant less than one. One can achieve better constants with more care, but the quadratic dependence on in Theorem 1 dictates the quadratic gap between and the number of forgeries achieved by this simple method of proof.)
Finally, we create a BU adversary for by running the adversary, blinded as above with , and selecting one of the output values at random.
6 Blind-unforgeable schemes
6.1 Random schemes
We now show that suitable random and pseudorandom function families satisfy our notion of unforgeability.
Theorem 12**.**
Let be a uniformly random function such that is negligible in . Then is a blind-forgery secure MAC.
Proof.
For simplicity, we assume that the function is length-preserving; the proof generalizes easily. Let be an efficient quantum adversary. The oracle supplied to during the blind-forgery game is determined entirely by and the restriction of to the complement of . On the other hand, the forgery event
[TABLE]
depends additionally on values of at points in . To reflect this decomposition, given and define to be the restriction of to the set and note that—conditioned on and —the random variable is drawn uniformly from the space of all (length-preserving) functions from into . Note, also, that for every the purported forgery is a (classical) random variable depending only on . In particular, conditioned on , is independent of . It follows that, conditioned on , that with probability no more than and hence , as desired. ∎
Next, we show that a is a blind-unforgeable MAC.
Corollary 4**.**
Let and be , and a . Then is a blind-forgery-secure fixed-length MAC (with length ).
Proof.
For a contradiction, let be a QPT which wins the blind forgery game for a certain blinding factor , with running time success probability . We will use to build a quantum oracle distinguisher between the and the perfectly random function family with the same domain and range.
First, let and let be a family of -wise independent functions with domain and range . The distinguisher first samples . Set . Given its oracle , can implement the function (quantumly) as follows:
[TABLE]
Here we used the CCNOT (Toffoli) gate from step 2 to 3 (with one control bit reversed), and uncomputed both and in the last step. After sampling , the distinguisher will execute with the oracle . If successfully forges a tag for a message in , outputs “pseudorandom”; otherwise “random.”
Note that the function is perfectly -blinded if is a perfectly random function. Note also that the entire security experiment with (including the final check to determine if the output forgery is blind) makes at most quantum queries and classical query to , and is thus (by Theorem 8) identically distributed to the perfect-blinding case.
Finally, by Theorem 12, the probability that outputs “pseudorandom” when is negligible. By our initial assumption about , the probability that outputs “pseudorandom” becomes when . It follows that distinguishes from perfectly random. ∎
Next, we give a information-theoretically secure -time MACs (Definition 6).
Theorem 13**.**
Let be a -wise independent function family with range , such that is a negligible function. Then is a -time BU-secure MAC.
Proof.
Let be an adversary for the -time game , where is drawn from . We will use to construct a distinguisher between and a random oracle. Given access to an oracle , first runs with the blinded oracle , where the blinding operation is performed as in the proof of Corollary 4 (i.e., via a -wise independent function with domain size ). When is completed, it outputs . Next, queries on the message and outputs 1 if and only if and . Let be the probability of the output being 1.
We consider two cases: (i.) is drawn as a random oracle , and (ii.) is drawn from the family . By Theorem 8, since makes only quantum queries and one classical query to , its output is identical in the two cases. Observe that (respectively, ) is exactly the success probability of in the blind-forgery game with random oracle (respectively, ). We know from Theorem 12 that is negligible; it follows that is as well. ∎
Several domain-extension schemes, including NMAC (a.k.a. encrypted cascade), HMAC, and AMAC, can transform a fixed-length to a that takes variable-length inputs [22] . As a corollary, starting from a , we also obtain a number of quantum blind-unforgeable variable-length MACs.
6.2 Lamport one-time signatures
The Lamport signature scheme [17] is a EUF-1-CMA-secure signature scheme, specified as follows.
Construction 2** (Lamport signature scheme, [17]).**
For the Lamport signature scheme using a hash function family , the algorithms and are specified as follows. , on input , outputs a pair with
[TABLE]
The signing algorithm is defined by where , are the bits of . The verification procedure checks the signature’s consistency with the public key, i.e., if and otherwise.
We now show that the Lamport scheme is 1- secure in the quantum random oracle model.
Theorem 14**.**
Construction 2* is 1- secure if is modeled as a quantum-accessible random oracle.*
Proof.
We implement the random oracle as a superposition oracle with register . In the 1- experiment we execute the sampling part of the key generation by preparing a superposition as well. More precisely, we can just prepare -qubit registers in a uniform superposition, with the intention of measuring them to sample in mind. We are talking about a classical one-time signature scheme, and all computation that uses the secret key is done by an honest party, and is therefore classical. It follows that the measurement that samples commutes with all other operations which are implemented as quantum-controlled operations controlled on the secret key registers, i.e., we can postpone it to the very end of the 1- experiment, just like the measurement that samples an actual random oracle using a superposition oracle. The joint state with oracle register F and secret key register is now in a uniform superposition, i.e.,
[TABLE]
To subsequently generate the public key, the superposition oracle for is queried on each of the with an empty outrput register , producing the state equal to
[TABLE]
where is the superposition oracle state where is in state and all other registers are still in state . Then the registers are measured to produce an actual, classical, public key that can be handed to the adversary. Note that there is no hash function key now, as it has been replaced by the random oracle. Treating the public key as classical information from now on and removing the registers , the state takes the form
[TABLE]
Now the interactive phase of the 1- experiment can begin, and we provide both the random oracle and the signing oracle (that can be called exactly once) as superposition oracles using the joint oracle state above. The random oracle answers queries as described in Section 3.3. The signing oracle, when queried with registers with , applies , controlled on being in the state .
Now suppose , after making at most one query to and an arbitrary polynomial number of queries to , outputs a candidate message signature pair with . If , has lost. Suppose therefore that . We will now make a measurement on the oracle register to find an index such that has not been queried. To this end we first need to decorrelate and . This is easily done, as the success test only needs computational basis measurement results from the register , allowing us to perform any controlled operation on controlled on . Therefore we can apply the operation followed by to the register controlled on being in state , for all and . For an adversary that does not make any queries to , this has the effect that all -registers are in state again now.
We can equivalently perform this restoring procedure before the adversary starts interaction, and answer the adversary’s -queries as follows. Controlled on the adversary’s input being equal to one of the parts of the secret key, answer with the corresponding public key, otherwise use the superposition oracle for .
For any fixed secret key register , the unitary that is applied upon an -query can hence be written as
[TABLE]
where acts trivially on and the second equality follows because the unitaries and are controlled unitaries with and part of the control register. Using the above equation we derive a bound on the operator norm of the commutator of this unitary and the projector onto ,
[TABLE]
where the second equality follows again because and are controlled unitaries with and part of the control register.
It follows that a query to does not decrease the number of registers that are in state , except with negligible amplitude.
As we assume that is blinded, we have that for any message , there exists an such that . But interacts with a blinded signing oracle, i.e., controlled on his input being not blinded, it is forwarded to the signing oracle, otherwise is XORed into his output register. Therefore only non-blinded queries have been forwarded to the actual signing oracle, so the final state is a superposition of states in which the register has at least subregisters are in state , and at least one of them is such that . We can therefore apply an -outcome measurement to the oracle register to obtain an index such that is in state . By Lemma 1, this implies that ’s forgery is independent of , so ’s probability of succeeding in is negligible. ∎
A simple proof of the -security of a random function can be given using a similar idea, see Theorem 20 in the appendix.
6.3 Hash-and-MAC
To authenticate messages of arbitrary length with a fixed-length MAC, it is common practice to first compress a long message by a collision-resistant hash functon and then apply the MAC. This is known as Hash-and-MAC. However, when it comes to -security, collision-resistance may not be sufficient. We therefore propose a new notion, Bernoulli-preserving hash, generalizing collision-resistance in the quantum setting, and show that it is sufficient for Hash-and-MAC with security. Recall that, given a subset of a set , denotes the characteristic function of .
Definition 8** (Bernoulli-preserving hash).**
Let be an efficiently computable function family. Define the following distributions on subsets of :
* : generate by placing independently with probability . Output .* 2. 2.
* : generate by placing independently with probability . Sample and define . Output .*
We say that is a Bernoulli-preserving hash if for all adversaries ,
[TABLE]
The motivation for the name Bernoulli-preserving hash is simply that selecting can be viewed as a Bernoulli process taking place on the set , while can be viewed as the pullback (along ) of a Bernoulli process taking place on .
We show that the standard, so-called “Hash-and-MAC” construction will work w.r.t. to security, if we instantiate the hash funtion with a Bernoulli-preserving hash. Recall that, given a MAC with message set and a function , there is a MAC with message set defined by and .
Theorem 15** (Hash-and-MAC with Bernoulli-preserving hash).**
Let be a -secure MAC with , and let a Bernoulli-preserving hash. Then is a -secure MAC.
Proof.
Let be an adversary against . We build an adversary against which (given oracle ) runs and answers its queries with , i.e., . This can be implemented by first computing into an extra register, then invoking the oracle, and then uncomputing . When produces its final output , outputs and terminates. We claim that
[TABLE]
Since the right-hand-side of the difference above is negligible by -security of , establishing the claim will finish the proof.
We prove the claim by showing that the difference can be viewed as the success probability of a distinguisher against the Bernoulli-preserving property of . The distinguisher receives an oracle for (where is sampled according to either or ) and proceeds as follows:
generate a key for ; 2. 2.
run , answering its oracle queries with
[TABLE]
where we invoked the oracle in the first step and CCNOT in the second; 3. 3.
when outputs , compute . Query the oracle to compute , and output .
It now remains to check that (i.) if was sampled according to (i.e., uniform blinding), then is simulating the game , and (ii.) If was sampled according to (i.e., hash-blinding), then is simulating the game . Fact (i.) follows directly from the definition666Note that we have again used the convention that the blinding symbol is the string ; in our case, the final bit corresponds to the register containing . If one chooses a different convention, it may be necessary to adjust to uncompute that register with an extra call to the oracle. of the game. To see fact (ii.), observe that the game against samples a uniform blinding set and executes algorithm with oracle
[TABLE]
precisely as in the execution of by . ∎
In the next section, we provide a number of additional results about Bernoulli-preserving hash functions.
7 Properties of Bernoulli-preserving hash functions
We explore the notion of Bernoulli-preserving hash functions. These results can be summarized as follows.
- •
If is a random oracle or a , then it is a Bernoulli-preserving hash.
- •
If is -wise independent, then it is a Bernoulli-preserving hash against -query adversaries.
- •
Under the assumption, there is a (public-key) family of Bernoulli-preserving hash functions.
- •
If we only allow classical oracle access, then the Bernoulli-preserving property is equivalent to standard collision-resistance.
- •
Bernoulli-preserving hash functions are collapsing (another quantum generalization of collision-resistance proposed in [25]).
First, we show that random and pseudorandom functions are Bernoulli-preserving, and that this property is equivalent to collision-resistance against classical queries.
Lemma 4**.**
Let be a function such that is negligible. Then:
If is a random oracle or a , then it is a Bernoulli-preserving hash. 2. 2.
If is -wise independent, then it is a Bernoulli-preserving hash against -query adversaries.
Proof.
The claim for random oracles is obvious: by statistical collision-resistance, uniform blinding is statistically indistinguishable from hash-blinding. The remaining claims follow from the observation that one can simulate one quantum query to using two quantum queries to (see, e.g., the proof of Corollary 4). ∎
Theorem 16**.**
A function is Bernoulli-preserving against classical-query adversaries if and only if it is collision-resistant.
Proof.
First, the Bernoulli-preserving hash property implies collision-resistance: testing whether two colliding inputs are either (i.) both not blinded or both blinded, or (ii.) exactly one of them is blinded, yields always outcome (i.) when dealing with a hash-blinded oracle and a uniformly random outcome for a blinded oracle and . On the other hand, consider an adversary that has inverse polynomial distinguishing advantage between blinding and hash-blinding, and let be it’s queries. Assume for contradiction that with overwhelming probability for all . Then with that same overwhelming probability the blinded and hash blinded oracles are both blinded independently with probability on each and are hence statistically indistinguishable, a contradiction. It follows that with non-negligible probability there exist two queries such that , i.e., has found a collision. ∎
7.1 A Bernoulli-preserving hash from LWE
We have observed that any is a Bernoulli-preserving hash function, which can be constructed from various quantum-safe computational assumpiton (e.g., LWE). Nonetheless, typically does not give short digest, which would result in long tags, and it requires a secret key.777In practice, it is probably more convenient (and more reliable) to instantiate a from block ciphers, which may not be ideal for message authentication.
Here we point out an alternative construction of a public Bernoulli-preserving hash function based on the quantum security of LWE. In fact, we show that the collapsing hash function by Unruh [24] is also Bernoulli-preserving hash. This constructions relies on a lossy function family and a universal hash function . A lossy function family admits two types of keys: a lossy key and an injective key , which are computationally indistinguishable. under a lossy key is compressing, i.e., ; whereas under an injective key , is injective. We refer a formal definition to [24, Definition 2], and an explicit construction based on LWE to [18]. We will also use exist efficient constructions for universal hash families [26]. Then one constructs a hash funciton family by with public parameters generated by .
The proof of Bernoulli-preserving for this hash function is similar to Unruh’s proof that is collapsing. We begin with a lemma.
Lemma 5**.**
Any injective function is Bernoulli-preserving hash. Given any Bernoulli-preserving hash and that is Bernoulli-preserving hash on , then is also Bernoulli-preserving hash.
Proof.
The first part follows by observing that a -random subset in the codomain corresponds exactly to a -random subset in the domain under inverse of the function. Let denote that two oracles and are indistinguishable by any quantum poly-time algorithm. For the second part, we need to show that , where indicates sampling a random subset of fraction . Since is Bernoulli-preserving hash, we have that
[TABLE]
The second equivalence holds by observing that for any , . Then because is Bernoulli-preserving on ,
[TABLE]
Therefore, we conclude that
[TABLE]
Theorem 17**.**
* is Bernoulli-preserving hash if LWE holds against any efficient quantum distinguisher.*
Proof.
We proceed in three steps (with the help of Lemma 5 above):
Since is injective under an injective key, it is clearly Bernoulli-preserving hash. As a result, must be Bernoulli-preserving hash too, because a lossy key is indistinguishable from an injective key by definition. 2. 2)
Then is chosen properly so that it is injective when restricted to of lossy key . Therefore is Bernoulli-preserving hash too. 3. 3)
Finally, is Bernoulli-preserving hash by the composition of Bernoulli-preserving hash functions and .
∎
7.2 Relationship to collapsing
Here we relate Bernoulli-preserving hash to the collapsing property, which is another quantum generalization of classical collision-resistance. We first describe the collapsing property (slightly adapting Unruh’s original definition [25]) as follows. Let be a hash function, and let and be the set of quantum states (i.e., density operators) on registers corresponding to the sets and , respectively. We define two channels from to . First, receives , prepares on , applies , and then measures fully in the computational basis. Second, first applies and then also measures fully in the computational basis.
[TABLE]
If the input is a pure state on , then the output is either a superposition over a fiber of (for ) or a classical pair (for ) .
Definition 9** (Collapsing).**
A hash function is collapsing if for any single-query QPT , it holds that \bigl{|}\Pr[\mathcal{A}^{\mathcal{O}_{h}}(1^{n})=1]-\Pr[\mathcal{A}^{\mathcal{O}_{h}^{\prime}}(1^{n})=1]\bigr{|}\leq\negl\,.
To prove that Bernoulli-preserving hash implies collapsing, we need a technical fact. Recall that any subset is associated with a two-outcome projective measurement on qubits defined by . We will write for the channel (on qubits) which applies this measurement.
Lemma 6**.**
*Let be subsets of , each of size , chosen independently and uniformly at random. Let denote the two-outcome measurement defined by , and denote their composition . Let denote the full measurement in the computational basis. Then
\Pr\bigl{[}\tilde{\Xi}=\Xi\bigr{]}\geq 1-2^{-\varepsilon n}\,, whenever with ,*
Proof.
We give a combinatorial proof. Consider an arbitrary mixed state of density matrix , the full measurement on gives
[TABLE]
Given a set , the projective measurement on operates as
[TABLE]
Namely, will zero-out the entries in , where or . It is easy to verify that the same effect occurs when and are applied to a subsystem of a bipartite state.
Now, for any with , consider sampling independently at random, each of size , and define a few random events:
[TABLE]
Observe that if BAD does not occur, it implies that for any , the off-diagonal entry is eliminated by one of , and as a result will be identical to .
Fix a pair with , clearly . Since each is chosen independently,
[TABLE]
By the union bound,
[TABLE]
Therefore we conclude that
[TABLE]
We remark that to efficiently implement each with a random subset , we can sample from a pairwise-independent hash family (sampling an independent for each ), and then define iff . For any input state , we can compute
[TABLE]
and then measure . Pairwise independence is sufficient by Theorem 8 because only one quantum query is made.
Theorem 18**.**
If is Bernoulli-preserving, then it is collapsing.
Proof.
Let be an adversary with inverse-polynomial distinguishing power in the collapsing game. Choose such that . We define hybrid oracles , where hybrid is a channel from to which acts as follows: (1.) adjoin and apply the unitary ; (2.) measure the register in the computational basis; (3.) repeat times: (i.) select a uniformly random subset of size ; (ii.) apply the two-outcome measurement to the register; (4.) output registers and .
Clearly, is identical to the channel in the collapsing game. By Lemma 6, is indistinguishable from the . By our initial assumption and the triangle inequality, there exists a such that
[TABLE]
We now build a distinguisher against the Bernoulli-preserving property (with ) of . It proceeds as follows: (1.) run and place its query state in register ; (2.) simulate oracle on (use 2-wise independent hash to select sets ); (3.) prepare an extra qubit in the state in register , and invoke the oracle for on registers and ; (4.) measure and discard register ; (5.) return to , and output what it outputs.
We now analyze . After the first two steps of (compute , measure output register) the state of (running as a subroutine of ) is given by
[TABLE]
Here is a side information register private to . Applying the measurements (third step of ) results in a state of the form where is a subset of . Applying the oracle for into an extra register now yields
[TABLE]
Now consider the two cases of the Bernoulli-preserving game.
First, in the “hash-blinded” case, for some set . This implies that for all . It follows that simply contains the classical bit ; computing this bit, measuring it, and discarding it will thus have no effect. The state returned to will then be identical to the output of the oracle . Second, in the “uniform blinding” case, is a random subset of of size , selected uniformly and independently of everything else in the algorithm thus far. Computing the characteristic function of into an extra qubit and then measuring and discarding that qubit implements the channel , i.e., the measurement . It follows that the state returned to will be identical to the output of oracle .
By (30), it now follows that is a successful distinguisher in the Bernoulli-preserving hash game for . Hence is not a Bernoulli-preserving hash. ∎
8 The problem with -unforgeability
Our search for a new definition of unforgeability for quantum-secure authentication is partly motivated by concerns about the security notion [6]. In this section, we make these concerns concrete by pointing out a significant security concern not addressed by this definition. Specifically, we demonstrate a MAC which is readily broken with an efficient attack, and yet is secure. The attack queries the MAC with a superposition over a particular subset of the message space, and then forges a valid tag for a message lying outside .
One of the intuitive issues with is that it might rule out adversaries that have to measure, and thereby destroy, one or more post-query states to produce an interesting forgery. Constructing such an example seems not difficult at first. For instance, let us look at one-time , and construct a MAC from a by sampling a key for and a superpolynomially-large prime , and setting
[TABLE]
This MAC is forgeable: a quantum adversary can use a single query to perform period-finding on the MAC, and then forge at . Intuitively, it seems plausible that the MAC is - secure as period-finding uses a full measurement. This is incorrect for a somewhat subtle reason: identifying the hidden symmetry does not necessarily consume the post-query state completely, so an adversary can learn the period and a random input-output-pair of the MAC simultaneously. As shown in Lemma 8 in Appendix B.1, this is a special case of a fairly general situation, which makes establishing a proper “counterexample” difficult.
8.1 A counterexample to
Another intuitive problem with is that using the contents of a register can necessitate uncomputing the contents of another one. We exploit this insufficiency in the counterexample below. Consider the following MAC construction.
Construction 3**.**
Given where is a random period and are random functions, define by
[TABLE]
Consider an adversary that queries as follows
[TABLE]
and then discards the first qubit and the register; this yields . The adversary can extract via period-finding from polynomially-many such states, and then output . This attack only queries the MAC on messages starting with (e.g., “from Alice”), and then forges at a message which starts with [math] (e.g., “from Bob.”) We emphasize that the forgery was never queried, not even with negligible amplitude. It is thus intuitively clear that this MAC does not provide secure authentication. And yet, despite this obvious and intuitive vulnerability, this MAC is in fact -secure.
Theorem 19**.**
The MAC from Construction 3 is -secure.
We briefly summarize the proof idea before presenting the details. The superposition oracle technique outlined in Section 3.3 achieves something that naively seems impossible due to the quantum no-cloning theorem: it records on which inputs the adversary has made non-trivial queries.888For the standard unitary oracle for a classical function, a query has no effect when the output register is initialized in the uniform superposition of all strings. The information recorded in this way cannot, in general be utilized in its entirety—after all, the premise of the superposition oracle is that the measurement that samples the random function is delayed until after the algorithm has finished, but it still has to be performed. Any measurement that does not commute with and is performed before , can disturb the outcome of . If however, only has polynomially many possible outcomes, that disturbance is at most inverse polynomial according to Lemma 1.
Here, we sample the random function using a superposition oracle, and we chose to use a measurement to determine the number of nontrivial queries that the adversary has made to , which is polynomial by assumption. Random functions are -secure [6], so the only way to break security is to output and other input-output-pairs. Querying messages that start with [math] clearly only yields a negligible advantage in guessing by the Grover lower bound, so we consider an adversary querying only on strings starting with . We distinguish two cases, either the adversary makes exactly non-trivial queries to , or less than that. In the latter case, the success probability is negligible by the -security of and . In the former case, we have to analyze the probability that the adversary guesses correctly. is not needed for that, so the superposition oracle register can be used to measure the set of queries that the adversary made. Using an inductive argument reminiscent of the hybrid method [4] we show that this set is almost independent of , and hence the period is equal to the difference of two of the queried inputs only with negligible probability. But if that is not the case, the periodic version of is indistinguishable from a random function for that adversary which is independent of .
Proof.
Let be an adversary that makes quantum queries and outputs distinct candidate forgeries (where is selected by at runtime). We let this adversary interact with a mixed oracle, where and are treated as random variables, and is represented as a Fourier Oracle as in Section 3.3. We denote the relevant quantum registers as follows. First, the quantum oracle for is a unitary operator on four registers: (i.) the -qubit input register , (ii.) the -qubit output register into which is computed, and (iii.) the -qubit output register which, if the input starts with a , interacts with the Fourier Oracle, which has (iv.) an -qubit register denoted by , with the subregister corresponding to input denoted by . We set . Finally, the workspace of is a -qubit register denoted by .
By the -unforgeability of random functions, any -adversary needs to output when successful, except with negligible probability. Indeed, suppose an adversary output input-output pairs of , none of which is equal with noticeable probability. Then we can use that adversary to construct a -adversary against defined as
[TABLE]
by simulating an -oracle for using the oracle for . To learn , an adversary that makes a polynomial number of queries needs to use messages starting with 1, as the lower bound for unstructured search [4] implies that querying messages starting with [math] only provides negligible advantage for learning . We will thus prove in the following that an adversary whose queries are entirely supported on the space of messages starting with cannot succeed. The proof for a general adversary is similar, if more laborious. We thus omit from the description in the following, focusing on the task of outputting input-output pairs of and the period .
Let denote the final state of and the Fourier Oracle, after the candidate forgeries have been measured, but prior to any other measurements. Recall that each “number projector” from Section 3.3 projects to the subspace spanned by basis states with exactly non-zero entries. We apply to the two-outcome measurement defined by and its complementary projector , effectively measuring whether contains fewer than non-zero entries (i.e., registers containing a state other than ); note that it cannot contain more than by Lemma 2. By Lemma 1, applying this measurement decreases the success probability of at any particular task by a factor . We handle the two possible outcomes ( and ) separately.
Case : Let be the post-measurement state. Note that for all , i.e., each basis component of has fewer than non-zero entries in . On the other hand, the output of contains at least candidate input-output pairs of (since is the only input-output pair of that does not also contain an input-output pair of a random function). We apply the -outcome measurement to which asks: “among the registers , which is the first one to contain ?” This measurement is defined by projectors
[TABLE]
Adding this measurement to ensures that is in the state for some , at the cost of multiplying ’s success probability by (by Lemma 1). Recalling that, in the Fourier Oracle picture, is the result of QFT-ing and then fully measuring , we see that is now uniformly random and independent of . The original (i.e., without the measurement ) thus succeeded with probability at most . 999This argument amounts to an alternative proof that random functions are -secure.
Case : We will denote the post-measurement state in this case by , emphasizing that the state was produced by interacting with the oracle . By the -security of (Theorem 20) it suffices to show that the correct period is output by (by measuring, say, some designated subregister of of the state ) with at most negligible probability. Since testing success at outputting does not involve the register , we are free to apply any quantum channel to the register of . We choose to measure which subregisters of are in a non-zero state. This projective measurement is defined by projectors
[TABLE]
where with . Note that , so the outcome “rest” never occurs for . In the following we denote by the random variable obtained from this measurement. We also set some other random variables in boldface to better distinguish them from particular values they can take.
Now consider the preparation of the state (by and the Fourier Oracle) with an arbitrary choice of oracle function in place of . We will denote this state by . We now show that, conditioned on a particular measurement outcome , we can arbitrarily relabel the values of outside , without affecting the output state of the algorithm.
Lemma 7**.**
Let with and a pair of functions satisfying for all . Then .
Proof.
Let , where is ’s -th internal unitary, is the standard oracle unitary for , and is the Fourier Oracle unitary as described in Section 3.3. The intermediate states are
[TABLE]
and the final state is . By Lemma 2, for all , so
[TABLE]
For the term in the sum above, the unitary applies queries to ; by Lemma 2 this term is thus zero unless . We can therefore insert a after the -th query for free when projecting with in the end. Explicitly,
[TABLE]
We first show that we can apply
[TABLE]
after every query of .
We are interested in the state . We can make a similar argument as above to show that we can project with after every query as well. As the FO-unitary is the only one that acts on , and because , we can even apply the projector before and after each query. We write , where
[TABLE]
i.e., and measure the number of non-zero entries inside and outside , respectively. Lemma 2 applies to and separately, and . Therefore we have, defining
[TABLE]
and using the same argument as above, that
[TABLE]
and hence
[TABLE]
implying . But the projector onto the zero-eigenspace of is , so .
With an even simpler argument we can insert a projector before every query. This is because , and therefore the number operator eignenvalue does not increase.
To show that is independent of the values outside , we observe that for all , and for all states , we have
[TABLE]
where we have used that for all it holds that . This implies that our artificial oracle (together with a renormalization) only gives access to for inputs .
This concludes the proof of Lemma 7. ∎
We now continue with the “case ” proof of the theorem. We bound ’s success probability separately for each outcome . Indeed, it suffices to show that for all , the probability that the output contains a pair is negligible if continues with
[TABLE]
in place of .
We show that the periodic oracle can be replaced by a non-periodic one, except with negligible probability. More precisely, if is ’s output, there exists an event such that and for all . In the following, let us denote the oracle for the MAC of Construction 1 with functions and and period by . We define
[TABLE]
For and , if , let be a transversal for (i.e., a maximal set such that for it holds that ) such that . Using this transversal, we can define for each a random periodic function that is identically distributed with , as follows.
- •
If , we set .
- •
If , we set for such that .
For a unitary algorithm that makes queries to an oracle , we define the following procedures:
Procedure 0
Sample , and . 2. 2.
Run with oracle resulting in a final adversary-oracle state . Apply the measurement to . If outcome is , output “fail.” 3. 3.
Measure . If , output “bad.” Otherwise, let be the post-measurement state of adversary and oracle, i.e., . 4. 4.
Output .
Procedure
Same as Procedure 0, except with oracle instead of .
Procedure 1
Sample and . 2. 2.
Run with an oracle resulting in a final adversary-oracle state . Apply the measurement to . If outcome is , output “fail.” 3. 3.
Measure and sample . If , output “bad.” Otherwise, let be the post-measurement state of adversary and oracle, i.e., . 4. 4.
Output .
We first observe that for all , the outputs of procedures [math] and are identically distributed because and are. Note that for any fixed , ; this, together with Lemma 7, implies that
[TABLE]
It follows that, still for a fixed ,
[TABLE]
This implies also that in any of the three procedures, conditioned on the event that the output is neither “fail” nor “bad” and on a fixed first output , is uniformly distributed on . In other words,
[TABLE]
Let us denote the event that a procedure outputs a triple by “good.”
In what follows, we fix a particular period , an outcome of the period-sampling step (step 1 in Procedures [math] and and step 3 in Procedure ). Given a number of queries we identify three subspaces of corresponding to the three outcomes “good,” “bad” and “fail” of the procedures above:
[TABLE]
We emphasize that the decomposition defined by these subspaces depends on the aforementioned period . We let for denote the projectors onto these subsets.
By the above reasoning we know that for any algorithm that makes queries to an oracle and has final state , it holds that . It is easy to see that when another query is made, i.e., the st query of some algorithm, some transitions from to are impossible. We only need one impossibility, namely that according to Lemma 2, for all . In words, once an adversary has fallen behind his -query plan of making one non-trivial query to in every query, he can never catch up. Also note that for , . It is now easy to show by induction that for a -query adversary with final adversary-oracle state it holds that
[TABLE]
where is the adversary oracle state before the th query. The induction step is proven as follows. Assume the above formula is true for . Then we have for a -query adversary with final adversary-oracle state
[TABLE]
Here we have used the unitary invariance of the Euclidean together with the observation that the state is obtained from the state right after the -st query of by a unitary acting on the adversary’s space only and which therefore commutes with in the first, the triangle inequality in the second line, the observation that in the third line, and the fact that for any projector in the fourth line. In the fifth line we use the same argument as in the first line, just for and . This proves Equation (49).
It remains to bound
[TABLE]
To this end, suppose that we measure the -register of in the computational basis with outcome , as well as the set of nonzero registers in . According to Equations (44) and (45), we have that and are independent and is uniformly distributed on conditioned on and for a fixed -element set . It follows that
[TABLE]
Here the last inequality holds for some and large enough , and we have used in the third line that there exists a constant such that the number of divisors of an integer is bounded by which also implies
[TABLE]
for all , . We would now like to relate the above probability to
[TABLE]
To this end we analyze how the operator behaves on states of the form such that for some fixed and such that . We calculate
[TABLE]
In the first equation we have use the assumptions that and ; the rest of the calculation is analogous to Equation (40). This implies that
[TABLE]
and therefore
[TABLE]
We therefore calculate for a fixed ,
[TABLE]
Using Equation (58) we can bound
[TABLE]
Here we have used Equation (58) in the first inequality. The probability in the first line is taken over a run of the adversary with a fixed period and random and , and in the other lines the period is picked uniformly at random from as for a properly generated key in Construction 1. The last two equations together imply
[TABLE]
Plugging this into Equation (49) yields
[TABLE]
using the Cauchy-Schwartz inequality in the second line. This finally implies that the adversary’s guess is equal to and the measurement vs. returns with probability at most
[TABLE]
Here we have used Equation (69) and the uniformity of conditioned on and in the last line. ∎
Remark.
It’s not hard to see that the MAC from Construction 3 is not -secure. Indeed, observe that the forging adversary described above queries on messages starting with [math] only, and then forges successfully on a message starting with . If the scheme was secure, then in the accepting case, the portion of this adversary between the query and the final output would have a simulator which leaves the computational basis invariant. Such a simulator cannot change the first bit of the message from [math] to , a contradiction.
By Theorem 9, this -secure MAC is also not -secure.
Corollary 5**.**
The MAC from Construction 3 is -insecure.
Appendix A Technical proofs
A.1 The Fourier Oracle number operator
We now restate and prove Lemma 2. See 2
Proof.
Let be an arbitrary query state, where and are the query input and output registers, is the algorithm’s internal register and is the FO register. We expand the state in the computational basis of ,
[TABLE]
Now observe that
[TABLE]
with , and therefore
[TABLE]
It follows that
[TABLE]
where we have used the definition of the operator norm and the normalization of in the last line. For a unitary and a projector , it is easy to see that , as is a sum of two operators that have orthogonal support and singular values smaller or equal to . We therefore get and as the state was arbitrary, this implies \bigl{\|}\left[N_{F},U_{XYF}\right]\bigr{\|}_{\infty}\leq 1. The example from equation (2) shows that the above is actually an equality. The observation that for all and an induction argument proves the second statement of the lemma. ∎
A.2 A simulation theorem: The effect of random blinding
We now restate Theorem 10 and provide a full proof. See 10
Proof.
For a function , we let denote the unitary map . Recall that is specified by a fixed initial state in some finite-dimensional Hilbert space, a sequence of unitary “computation” operators , and a POVM . The distribution (on ) resulting from the algorithm applied to the oracle is given by applying the POVM to the state Recall that if the trace distance between two such states satisfies \delta\bigl{(}|\phi^{Q_{1}}\rangle,|\phi^{Q_{2}}\rangle\bigr{)}:=\sqrt{1-|\langle\phi^{Q_{1}}|\phi^{Q_{2}}\rangle|^{2}}\leq\epsilon then the distance in total variation between the distributions produced by any POVM on these two states is no more than . In our case, we are interested in controlling Define . In preparation for a standard hybrid argument, define
[TABLE]
so that all oracle invocations in are answered according to and all those in are answered according to . Since is a metric on pure states, we have
[TABLE]
Note that is invariant under (simultaneous) unitary action, and hence for any , , and ,
[TABLE]
For pure states and , . Note that , and operates identically on . Therefore
[TABLE]
Let be a uniformly random element of the symmetric group on and be the unitary operator associated with the permutation . We have that
[TABLE]
Thus we conclude that . ∎
Appendix B SUPPLEMENTARY MATERIAL
B.1 Non-adaptive quantum queries and “double spending”
The following lemma shows that if there exists a non-adaptive quantum algorithm making queries to a function that learns a certain property , then with inverse polynomial probability, there exists another non-adaptive -query algorithm that learns and input-output-pairs with inverse polynomial probability. For this to hold, we need to assume that makes its queries using a blank output register (i.e., initialized in the state). This is the case, e.g., in period-finding and Simon’s algorithm.
In the following, denote the set of -bit-to--bit functions by .
Lemma 8** (Double spending lemma).**
Let be a set of functions, a set, a function, and a probability distribution on . Suppose there exists a quantum query algorithm which makes non-adaptive quantum queries to with blank output register for and outputs with probability. Then there also exists an algorithm which makes non-adaptive quantum queries to for and outputs both and input-output pairs of with probability.
Proof.
Let , and for . Set where is some input state and is a POVM on with outcomes labelled by the possible properties of . Let . outputs with inverse polynomial probability, say with probability . It follows that the post-measurement state conditioned on the outcome ,
[TABLE]
has inverse polynomial overlap with ,
[TABLE]
This implies immediately that measuring in the computational basis will yield input output pairs of with inverse polynomial success probability. ∎
We remark that the distribution of input-output pairs is at most far from the distribution one would get by simply measuring immediately after the query of . This means that, in the case of period-finding and Simon’s algorithm (where the queries are uniform), the input-output pairs will be distinct with non-negligible probability.
B.2 Alternative proof that random functions are -secure
Using Lemma 2, we can give a simple proof of the fact that a random function is -secure. Because of its simplicity, and because much of it can be reused to prove a separation between and , we provide this proof below.
Theorem 20** ([6]).**
An algorithm making quantum queries to a random oracle produces input-output pairs of with probability at most
[TABLE]
Note that the probability bound is within a factor of of the one obtained in [6], and matches it for , .
Proof.
Let be an adversary that, when provided with the quantum random oracle , outputs candidate input-output pairs. Formally, let be the joint cq-state of the adversary and the FO, where the classical registers contain ’s output and is the FO’s register. If we wanted to determine the success of at this point, we would apply the Fourier transform to , and then measure and check if the outcome for is for each output by .
Note that for all by Lemma 2, i.e., there are at most entries of that are nonzero. This implies that the entry corresponding to at least one of the inputs that has output is, in fact, equal to . However, this is only true in superposition: different branches of the superposition may have different entries in the state . We will deal with this issue by thinking about a new algorithm , which will simulate the entire execution of (including the oracle) and then perform a small number of additional measurements prior to the success check. The additional measurements will find a pair in such that is actually in the state (in every branch of the superposition). The probability that (in the execution of ) will then be . We will then apply Lemma 1 to show that the success probability of is not much better.
We now describe in detail. Initially, simulates both and the oracle. After has finished, but before the success check is performed, (which is in the state ) applies binary search to the inputs that has output. The goal is to find an input such that is in state . We do this using binary measurements that ask “are any of the registers in the state ?” We split up the set into two subsets and , and measure whether is in a state different from for all . This is done using the binary measurement given by
[TABLE]
and its complementary projector . If the outcome is no, we set , if it is yes then we set . This makes sure that we continue with a set that contains an input such that the corresponding FO register is in state . Now we repeat the described steps using in place of and continue recursively until we encounter a set with only one element, say . Continuing with the success check, we now know that is in the state , which implies that is uniformly random and independent of ’s output. Indeed, a register that is in a pure state is automatically in product with the rest of the universe, and is determined by applying , which transforms into , and measuring, which yields a uniformly random outcome. Therefore ’s success probability is at most . The total number of binary measurements for the binary search procedure is upper-bounded by , so an application of Lemma 1 finishes the proof. ∎
B.3 A useful lemma on Bernoulli-preserving hash
Recall that blinding a function on a set results in the blinded function defined by for and for . The following lemma, which is implicit in the proof of Hash-and-MAC construction, could be useful in security reductions involving Bernoulli-preserving hash.
Lemma 9**.**
Let be a Bernoulli-preserving hash and an efficiently computable function. Then for all oracle QPTs , we have
[TABLE]
Proof.
It suffices to observe that one can simulate the oracle for using two calls to an oracle for and two executions of , as follows.
[TABLE]
In the second step, we applied the CCNOT (Toffoli) gate to the second register, with the fourth and fifth register as the controls and a CNOT to the third register with the fourth register as a control. With this observation, it is straightforward to turn any distinguisher for vs. into one for vs. . ∎
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Scott Aaronson. Quantum lower bound for recursive fourier sampling. Quantum Information & Computation , 3(2):165–174, 2003.
- 2[2] Gorjan Alagic, Tommaso Gagliardoni, and Christian Majenz. Can you sign a quantum state? ar Xiv preprint ar Xiv:1811.11858 , 2018.
- 3[3] Gorjan Alagic, Tommaso Gagliardoni, and Christian Majenz. Unforgeable quantum encryption. In Jesper Buus Nielsen and Vincent Rijmen, editors, Advances in Cryptology – EUROCRYPT 2018 , pages 489–519, Cham, 2018. Springer International Publishing.
- 4[4] Charles H. Bennett, Ethan Bernstein, Gilles Brassard, and Umesh V. Vazirani. Strengths and weaknesses of quantum computing. SIAM J. Comput. , 26(5):1510–1523, 1997.
- 5[5] Jean-François Biasse and Fang Song. Efficient quantum algorithms for computing class groups and solving the principal ideal problem in arbitrary degree number fields. In Proceedings of the Twenty-Seventh Annual ACM-SIAM Symposium on Discrete Algorithms , SODA ’16, pages 893–902, Philadelphia, PA, USA, 2016. Society for Industrial and Applied Mathematics.
- 6[6] Dan Boneh and Mark Zhandry. Quantum-secure message authentication codes. In Advances in Cryptology - EUROCRYPT 2013 , pages 592–608. Springer, 2013.
- 7[7] Dan Boneh and Mark Zhandry. Secure signatures and chosen ciphertext security in a quantum computing world. In Advances in Cryptology – CRYPTO 2013 , pages 361–379. Springer, 2013.
- 8[8] Lily Chen, Stephen Jordan, Yi-Kai Liu, Dustin Moody, Rene Peralta, Ray Perlner, and Daniel Smith-Tone. Report on post-quantum cryptography. Technical report, National Institute of Standards and Technology, 2016.
