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 , res