Manuscript Offprint
arXiv:2609.39844Natural Barriers to Quantum Extraction: On the Post-Quantum (In)security of (O)EKE and Masny-Rindal OT
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Encrypted key exchange (EKE), introduced by Bellovin and Merritt (IEEE S&P 1992), and Masny-Rindal OT, introduced by Masny and Rindal (ACM CCS 2019), are highly-efficient methods for compiling essentially any KEM into advanced cryptographic protocols, namely password-authenticated key exchange (PAKE) and oblivious transfer (OT), by relying only on idealized symmetric-key primitives. They have become leading candidates for practically-implementable PAKE and OT due to (1) their simplicity, (2) their plug-and-play nature, allowing for flexibility in the choice of KEM, and (3) existing proofs of UC-security (in the classical adversarial model).
Due to point (2) above, these compilers yield attractive candidates for efficient post-quantum PAKE and OT, especially given the recent post-quantum KEM standardization efforts. This motivates the question of whether the (UC-)security of these compilers translates to the quantum adversarial model. In this work, we show that it does not. In particular, we prove that a general family of (O)EKE protocols, as well as Masny-Rindal OT, are not UC-secure against quantum polynomial-time adversaries, even when instantiated with a post-quantum KEM. To establish UC-insecurity, we devise an adversarial strategy that provably thwarts any attempt by the simulator to extract its input (the password in the case of PAKE, and the receiver's choice bit in the case of OT).
To complement these negative results, we establish that both compilers yield certain notions of game-based security. In the PAKE setting, we consider OEKE instantiated with the “2-Feistel” cipher, and prove its stand-alone game-based security in the quantum random oracle model. We view these results as a proof of concept that security of (O)EKE and Masny-Rindal OT can yet be redeemed in the quantum setting, though we caution that the situation will be more subtle than in the classical setting due to the breakdown of simulation-based security. Along the way, we establish a novel “advantage-tight” one-way to hiding lemma that may be of independent interest.
*Columbia University. bartusek.james@gmail.com.
Columbia University. jj3544@columbia.edu
i
Contents
1 Introduction 1
2 Technical overview 4
2.1 An illustrative commitment scheme 4
2.2 Failure to quantumly extract 4
2.3 Collapse-binding 6
2.4 Applications 6
2.5 Discussion 8
2.6 Future work 8
3 Preliminaries 9
3.1 Quantum information 9
3.2 KEM 11
3.3 Masny-Rindal OT 13
3.3.1 Syntax 13
3.3.2 Game-based security 14
3.3.3 Simulation-based security 14
3.4 OEKE 15
3.4.1 Syntax 15
3.4.2 Game-based security 16
3.4.3 UC security 16
4 Attacks on simulation-based security 18
4.1 Masny-Rindal OT 18
4.2 OEKE with ideal cipher 20
5 Provable game-based security 24
5.1 Masny-Rindal OT 24
5.2 OEKE with 2-Feistel 26
6 Advantage-tight one-way to hiding 30
7 Acknowledgments 36
A Generalizing the attack 40
B Modified Measure-and-Reprogram 42
Practically every efficient post-quantum primitive relies on the Random Oracle Model (ROM) [BR93] to justify security, often through transforms like Fiat-Shamir [PS96] and Fujisaki-Okamoto [FO99]. In 2011, [BDF 11] introduced the Quantum Random Oracle Model (QROM), which allows quantum adversaries to query a random oracle in superposition (an ability that any real-life quantum attacker will have by implementing a reversible circuit for the hash function in question). Although many important constructions have now been shown secure in the QROM (e.g. [Zha19, DFMS19, DFM20]), these proofs require expertise in quantum information theory and can often be substantially more complex than in the ROM. In light of this, one may ask whether expending the effort to write a QROM proof is actually necessary: Are there any cryptographic protocols in use that are secure in the ROM but insecure in the QROM? The seminal works of Yamakawa and Zhandry [YZ21, YZ22] construct a variety of theoretical examples including one-way functions and public key encryption, but they are not naturally occurring, and were specifically created with this aim in mind.
In general, there appears to be a belief in the community that for any “naturally-occurring” ROM-based protocol instantiated with post-quantum assumptions, if we currently lack a QROM proof, then this likely indicates a lack of appropriate proof techniques, not an attack. As an illustrative example, a report from the European Telecommunications Standards Institute (one of three official standards organizations for the EU) refers to the [YZ21, YZ22] counterexamples as “completely artificial” and notes that
“it is often stated [DFMS19] that a concrete protocol that is secure in the ROM will remain secure in the Q-ROM (if based on quantum-safe hardness assumptions), although with no formal proof in this sense.”
[Eur24, Section 7.1]
This work. We challenge this claim, and give the first examples of naturally occurring cryptographic protocols based on post-quantum assumptions that are secure in the ROM but provably not secure in the QROM. Concretely, we show that the oblivious transfer (OT) protocol of Masny and Rindal [MR19] and the (Once) Encrypted Key Exchange, or (O)EKE [BM92, BCP03], family of protocols for Password Authenticated Key Exchange (PAKE) are insecure in the Universally Composable (UC) framework [Can01] when quantum access to the random oracle is allowed, despite being UC-secure in the ROM. As a bonus, we show the same insecurity for variants of OEKE in the Quantum Ideal Cipher Model (QICM).
We complement these negative results with positive ones, showing that both protocols do satisfy some notions of game-based security in the QROM under the same assumptions used for the classical ROM proofs. Prior to this work, there were no fully-established results on either the simulation-based or game-based security of either protocol against quantum adversaries.
Masny-Rindal OT. Recall that in 1 out of 2 (random) Oblivious Transfer (OT), a sender outputs two strings , and a receiver outputs , for a choice bit . Security requires the receiver to learn nothing about and the sender to learn nothing about .
In 2019, Masny and Rindal [MR19] introduced a highly efficient compiler that upgrades any Key Encapsulation Mechanism (KEM) protocol satisfying certain natural properties to a two-message random OT protocol, in the ROM. The compiler is described in Figure 1 and can be instantiated with ML-KEM, making it the premier candidate for deployable post-quantum OT. In particular, their results establish that the
Although [HHKR25] attempted an analysis of the post-quantum game-based security of OEKE, their handling of the quantum-accessible ideal cipher was only conjectured, not proven.
In fact, their techniques also yield a simultaneous-message OT protocol in some settings, but in this work we focus on the two-message version.
protocol is UC-secure in the ROM when instantiated with ML-KEM. In this work, we show that this does not hold true in the quantum random oracle model.
Theorem 1.1 (Informal). Masny-Rindal OT instantiated with any KEM is not post-quantum simulation-secure.
Our attack exploits an inability for the simulator to extract a malicious receiver's choice bit. However, it does not establish that the malicious receiver can actually obtain both of the sender's messages. Hence, it does not rule out the possibility that Masny-Rindal actually does satisfy some game-based notion of security. We investigate this possibility, and show that it does.
Theorem 1.2 (Informal). Let KEM be any KEM that satisfies (computational) public-key uniformity and key unpredictability. Then Masny-Rindal OT instantiated with KEM satisfies the following claim in the QROM: The probability that any QPT malicious receiver can guess for random is at most .
Figure 1: Masny-Rindal OT with random oracle , a KEM KEM, and receiver's choice bit .
PAKE. In the PAKE setting parties hold (possibly low entropy) passwords pw, pw', and want to run an authenticated key exchange based on them: if pw = pw' they agree on a shared secret key, and if not they derive independent keys (or output ⊥). PAKE protocols offer a form of authentication without public key infrastructure, and have been deployed in password managers, end-to-end encrypted backup recovery, key escrow, and WiFi login. Although there are both game-based [BPR00] and UC [CHK 05] definitions of PAKE security, the UC definition has become the gold standard that deployed protocols target, due to modeling password correlation between parties and security under arbitrary composition: all Round 2 candidates of the 2020 CFRG PAKE competition have proofs of UC-security [Cry19].
We study the dominant paradigm of post-quantum PAKE: Once Encrypted Key Exchange (OEKE) (depicted in Figure 2). Although originally instantiated with an ideal cipher, recent works [MRR20, JRX25, ABJ26] opt to replace the ideal cipher with a two-round Feistel network using a random oracle. This 2-Feistel variant of OEKE is widely favored due to its optimal round complexity, efficiency, and reliance only on the ROM and a post-quantum KEM. In fact, a variant of this protocol is part of an Internet-Draft submitted to the Internet Engineering Task Force for possible standardization [VJW26]. In the corresponding paper [VJW 25], the authors prove their protocol is UC-secure in the (classical) ROM, conjecturing that their protocol is also secure in the QROM:
“A crucial next step for theoretical security is to prove security in the quantum random oracle model. We believe that this is possible using compressed quantum random oracles, because the simulated random oracles only rely on historical queries in simple ways.” [VJW 25, Section 6]
We refute this conjecture, and show that OEKE is UC-insecure in the QROM.
The functionality that they prove security with respect to is called endemic OT, which is the weakest known notion of random OT that remains meaningful. Here, meaningful refers to the fact that any random OT satisfying endemic security implies a simulation-secure chosen-message OT via the natural compiler in which the sender transmits , along with its second message, where and are its chosen strings.
See https://github.com/fancy-cryptography/fancy-cryptography for more information.
Figure 2: A typical instantiation of OEKE with shared password pw, random oracles H, G, a KEM KEM, ideal cipher encryption E and decryption D.
Theorem 1.3 (Informal). OEKE instantiated with any KEM and using either ideal cipher encryption or 2-Feistel encryption is not post-quantum UC-secure.
In Section 4.2 we prove the attack works for the ideal cipher instantiation, as this suffices to illustrate the main idea. In Appendix A we give some details as to how it generalizes to a wide variety of OEKE variants in the QROM: this includes NoIC [ABJ25], Tempo [ABJ26], OEKE/EKE [JRX25], OQUAKE [VJW 25] and (O)CAKE [BCP 23, HHKR25].
Similar to the Masny-Rindal OT case, our attack relies on an inability for the simulator to extract (in this case, the password) from a malicious initiator. Therefore, this also leaves open the possibility of game-based security. We prove some positive results when the encryption used is 2-Feistel.
Theorem 1.4 (Informal). Let KEM be any KEM that satisfies (computational) public-key uniformity and key unpredictability. Then OEKE instantiated with KEM and using 2-Feistel encryption satisfies stand-alone game-based security in the QROM against both malicious initiators and malicious respondents.
Advantage-tight one-way to hiding. Along the way to our positive results on game-based OEKE security, we establish a new one-way to hiding lemma that to the best of our knowledge has not appeared before, and is of independent interest. One-way to hiding lemmas [Unr14, AHU19] are essentially search-to-decision reductions with respect to quantum-accessible oracles: Given a distribution over two classical functions G and H that differ on a set S, they relate the maximum probability p that an adversary can find an given quantum access to G, H to the maximum distinguishing advantage f that an adversary has given access to G or H. A typical statement (e.g. ) upper bounds f as a function of p and the number of queries q made by the adversary (or its query depth d).
Here, we show that is upper-bounded by itself (and independent of or ), up to an additive negligible term. This statement comes with two caveats: (1) The set must be efficiently checkable (though this is also required to obtain in the classical setting), and (2) the reduction (search adversary) may run in time much longer than (but still polynomial in) the decision adversary, in particular, the multiplicative blowup can depend on the number of queries .
Nevertheless, we establish a completely “advantage-tight” one-way to hiding theorem as stated below, which turns out to be crucial for establishing the tight post-quantum game-based security of OEKE.
Theorem 1.5 (Informal). Let be any sampler that outputs functions that differ on a set , along with an arbitrary quantum state . Suppose that for all QPT ,
where is the membership-checking predicate for the set S. Then for all QPT A,
We work with 2-Feistel since (1) it is more efficient and easier to instantiate than an ideal cipher, and (2) the QROM is easier to work with than the QICM.
For those familiar with BPR security [BPR00] see Section 2.6.
2 Technical overview
2.1 An illustrative commitment scheme
Our main techniques can be appreciated by studying a simple bit commitment scheme, divorced from the particulars of OT and PAKE. In particular, we abstract out a commitment scheme underlying the Masny-Rindal OT construction [MR19] and show that it satisfies the following combination of properties, in addition to being computationally hiding.
-
Extractable against classical committers.
-
Computationally collapse-binding (the post-quantum analogue of standard binding).
-
Provably not extractable against quantum committers.
In this overview, we’ll present the commitment scheme, argue why it is not quantumly-extractable, and then argue why it is collapse-binding. We then touch on how these proofs of non-extractability and collapse-binding are at the heart of our results showing that Masny-Rindal OT and OEKE are not simulation-secure against quantum adversaries but do satisfy some notions of game-based security.
The scheme. Let be an injective PRG, and let be a random oracle. To commit to a bit , sample a seed , a string , and define . The commitment consists of the two strings . To open, send , allowing the receiver to verify that .
It is not hard to see that computationally hides the committer's choice of , since, after switching to uniform, both and are distributed uniformly at random. Moreover, [MR19] shows as a component of their OT security proof that one can extract the bit from any classical committer by observing the order in which they make their random oracle queries. In particular, the committer can “program” by querying first, but then , which is supposed to equal , becomes uncontrollable. Therefore, if was queried first, the only bit that the committer can hope to open is .
2.2 Failure to quantumly extract
The first hint that this extraction strategy may fail in the quantum setting is an inability to define “query order” in any meaningful way. Indeed, the quantum random oracle allows for superposition queries, meaning that an adversarial committer could query and at the same time . One natural attempt to thwart the extractor is to simply run the honest committer’s strategy coherently over a uniform choice of the bit , and delay the measurement of until the opening stage.
Definition of extractability. Before further investigating this strategy, we recall the formal notion of an extractable commitment. First, any adversarial committer is split into two parts: (1) the commit stage adversary is initialized with some state on register and outputs and an updated state , and (2) the opening stage adversary takes and outputs a bit and a candidate opening .
For any such adversary, there must exist an extractor that takes as input and produces a bit and a state satisfying the following two properties:
-
The probability that produces a successful opening to is negligible.
-
is computationally indistinguishable from the state output by the real committer. In fact, this must hold even in the presence of a register D that may be entangled with . This indistinguishability in the presence of an auxiliary state (sometimes referred to as the “environment”) is a standard property in simulation-based security and we will use D in our impossibility result.
We allow the extractor to make arbitrary (potentially non-black-box) use of the code of and respond to the adversary's random oracle queries using any strategy.
The same observation was made in [Ver22, Section 4 3.1.2].
The coherent honest committer. Now, coming back to our candidate commitment, we see that running the honest commitment strategy in equal superposition over the choice of b gives (omitting normalization)
Measuring registers yields a commitment string and a left-over committer state
which is then passed to . It appears we may already have a simple counterexample to extractability: can simply measure in the standard basis to obtain a valid , each with probability (where the probability is taken over its entire execution). So if the extractor makes a guess before this point, it seems that it will be wrong with probability , violating the property (1) above.
However, recall that the extractor has full access to the committer's state on registers B, S and can apply an arbitrary operation before sending it to , as long as this operation preserves computational indistinguishability. A natural extraction attempt would therefore have the extractor pre-measure this state in the standard basis, producing , and fixing the single choice of that will be able to open. In fact, this extractor does satisfy property (2): In the following sub-section we will argue that no QPT adversary will be able to recover both strings and and thus, by the quantum equivalence of mapping and distinguishing,
Hence, we will have to alter the adversarial strategy if we hope to rule out the existence of any extractor.
Adding a dummy branch. One way to see the issue with the above attempt is that the distinguisher does not have a computationally accessible description of the committer's state, and thus cannot detect if the extractor is messing with it. To remedy this, we consider an adversarial strategy that runs the following two strategies with 1/2 probability: (0) a “dummy” strategy that replaces , with uniform strings , , and (1) the coherent honest committer's strategy given above. The key is that branch (1) will enable successful opening of either b = 0 or b = 1, while branch (0) will enable the distinguisher to efficiently check that the extractor did not collapse the state. Even though successful opening and efficient checking cannot be performed simultaneously, we will be able to argue that the extractor cannot distinguish between the two branches and thus cannot tailor their strategy to one or the other. Here, we make use of the inaccessible distinguisher register D, as follows.
Consider the following mixed state over the uniformly random choice of branch , again omitting normalization:
Here, D is the register held by the distinguisher, and is given to the committer. Completing the honest committer's strategy coherently and measuring the resulting commitment yields the left-over state
for some weights whose values will not be important for the argument. If , the distinguisher uses its knowledge of to project its remaining state onto . Since this measurement accepts with probability 1 in the real execution, any valid extractor must output a state in which this measurement accepts with probability . Then we can appeal to the pseudorandomness of to argue that the extractor, who just sees register , cannot distinguish between the two branches, and hence, the state on branch can be undetectably replaced with the state on branch . At this point, measuring the register of the state produces a uniformly random bit , independent of whatever choice the extractor fixed earlier in the experiment, yielding our final contradiction.
2.3 Collapse-binding
Despite the provable inability to extract an adversarial committer's bit, we show that this commitment scheme does retain meaningful security against quantum adversaries. In particular, the commitment satisfies collapse-binding, which is the standard notion of computational post-quantum binding.
Below, we’ll just argue that it satisfies post-quantum “classical-style” binding, which stipulates that it is hard for any QPT adversary to output a commitment along with valid openings for each bit, meaning that and . Standard techniques (e.g. [DS23]) can be used to show that, since there is only one valid opening per bit, classical-style binding of this commitment suffices to establish collapse-binding, which is equivalent to the following notion of sum-binding: After the commit stage, the challenger samples a , and we require that no QPT adversary can output a valid opening except with probability .
Measure-and-reprogram. We show classical-style binding using an appropriate application of the measure-and-reprogram technique [DFMS19, DFM20], which will allow us to program in an external challenge for an unknown . If the adversary then manages to output as one of their pair , they immediately contradict the pseudorandomness of the PRG .
In more detail, measure-and-reprogram considers the following scenario. An adversary queries a random oracle and then outputs a set of oracle inputs and some auxiliary information . Consider any predicate over , and , and suppose that . Then, consider a simulated experiment where the adversary is run as in the real experiment except that the input register to randomly-chosen queries are fully measured in the standard basis to yield , and the are re-programmed to fresh uniformly random outputs . Essentially (eliding certain details for simplicity of presentation), it holds that in this simulated experiment, , where is the number of queries made by the adversary.
For arguing the classical-style binding of our commitment, we consider the following predicate: V takes as input the commitment and the openings and outputs 1 iff and . Thus, in this example. After moving to the simulated experiment, we can consider the following re-programming strategy: Upon measuring the first input , program for a uniformly random , and upon measuring the second input , program , where is sampled externally and given to the simulator. The measure-and-reprogram lemma establishes that V still passes with probability, which means that , thus contradicting the security of G.
2.4 Applications
Next, we argue how the techniques described above can be applied to both Masny-Rindal OT and OEKE to establish their simulation-based insecurity and game-based security.
Masny-Rindal OT: Simulation-based insecurity. The first message of the [MR19] protocol can be seen as taking the above commitment scheme and replacing the PRG G with the key generation function KeyGen( ; ) (pk, sk) of a KEM. That is, the receiver samples random coins , uses them to (deterministically) generate a public key pk, and applies the rest of the commitment algorithm on choice
One could also generalize the construction to use any G that is one-way and collapsing, but we stick with the case of an injective PRG, which trivially satisfies both properties, for the purpose of this overview.
bit and string to obtain . Given , the OT sender derives the two possible public keys , and then generates and returns ciphertexts encrypting output keys .
The impossibility of extracting a malicious receiver’s choice bit follows essentially the same argument as outlined above for the commitment scheme, with the function KeyGen: in place of the PRG . Arguing that no simulator can distinguish between the receiver’s real and dummy branches still requires assuming that is computationally indistinguishable from random. However, this assumption comes for free: If was distinguishable from uniform, then the OT protocol would be insecure against a malicious sender. Indeed, the sender can compute the two candidate public keys , where is generated by KeyGen, and is sampled uniformly at random. Distinguishing from random with any non-negligible advantage thus gives the same advantage in guessing the honest receiver’s choice bit .
Masny-Rindal OT: Game-based security. Our argument for the game-based security of the protocol broadly follows the measure-and-reprogram argument introduced above. Against a malicious receiver, we ask that the following game cannot be won with probability better than : After the honest sender returns , the challenger samples a bit and the receiver succeeds if they manage to output a correct guess for . Note that this can be seen as sum-binding for a commitment where is regarded as the valid opening. In a similar manner as above, we can use measure-and-reprogram to reduce to the security of the KEM, though the game is not simply inverting the function KeyGen. In particular, the reduction will ultimately need to take and a ciphertext from its external challenger, where must be transmitted to the adversary as a part of the sender's OT message. This actually introduces a slight subtlety in the argument: The reprogramming of the random oracle must occur before this message is sent. Since the adversary may continue to make random oracle queries after the message, we appeal to a version of measure-and-reprogram in which the predicate may also make oracle queries to , and we refer the reader to Section 5.1 for further details.
Encrypted key exchange: Simulation-based insecurity. To generalize further to the setting of (O)EKE, we first abstract out an invertible “cipher” underlying our commitment and the [MR19] OT protocol. Given a bit b and the public key pk, the receiver applies the (randomized) function
Although is randomized, there exists a deterministic inversion operation that given any choice of , returns the corresponding input pk:
In OEKE, a KEM public key pk is enciphered not under a single bit b, but under a (multi-bit) password pw. While the above choice of does not efficiently generalize to multi-bit passwords, researchers have considered other methods that do. Perhaps most simply, one can model as an ideal cipher, and have the PAKE initiator send and the respondent recover . A simple and highly-efficient alternative that has been a focus of recent study instantiates as a 2-Feistel, which directly uses a random oracle H as follows.
Notice that, given pw, D can recover the randomness r used by E, which then allows it to recover pk. And as mentioned in the introduction, there are other tweaks to that have been proposed in the literature, for instance the Tempo protocol [ABJ26].
(Un)fortunately, our attack on extractability is essentially agnostic to the choice of utilized by the protocol (as long as can recover any randomness sampled by ), and we show that for all known variants, there does not exist a simulator that can extract the choice of pw from a malicious initiator, invalidating claims of post-quantum UC-security. Similar to our negative results for Masny-Rindal OT, our impossibility here holds for any choice of KEM: While the impossibility of extraction requires the KEM to have pseudorandom public keys, this assumption is already required to obtain security against offline password guessing attacks.
Encrypted key exchange: Game-based security. We next study the post-quantum game-based security of OEKE, which has thus far remained an open question, even when instantiated with a post-quantum KEM. In this work, we focus on the 2-Feistel variant, and consider security in the quantum random oracle model. We separately model security against malicious initiators and malicious respondents and in this overview, we'll focus on the more challenging case of malicious initiators. The security definition we target is as follows. Suppose the honest respondent samples their password from some distribution with min-entropy . Then the best that we can hope for is that any malicious initiator, after interacting with the respondent, can distinguish the respondent's key from a uniformly random string with advantage at most . This captures the intuition that the best an adversary can do is make a single password guess and, if , they will end up with information about the honest party's key.
We begin by applying a similar measure-and-reprogram technique as above (though this requires extra care due to the structure of the 2-Feistel) to establish the following claim: Suppose a malicious initiator after sending its first message is challenged with two different respondent messages encrypted using two different passwords and yielding respondent keys . Then, the probability that the initiator can output both is .
In order to translate this search security into a distinguishing bound, we apply two quantum information techniques:
-
We derive a generalization of the mapping-distinguishing bound from [DS23] that allows us to reason about the following scenario. Suppose that after is sent by the malicious initiator, a password is sampled and used to produce respondent message and output . By sampling two independent passwords , from and then rewinding the initiator, we can turn any initiator that predicts with better than probability into one that can find both and with better than probability.
-
We next have to translate the search bound of into (ideally) the same distinguishing bound . In order to do so, we apply our advantage-tight one-way to hiding theorem (Theorem 6.1), which builds on the “measure-rewind-measure” technique of and quantum rewinding [GSLW19]. We defer a more in-depth overview of this theorem to Section 6.
2.5 Discussion
Broadly speaking, our work adds to the growing list of methods that are known to separate the quantum and classical adversarial models, even under post-quantum assumptions, following e.g. [YZ21, YZ22, LMQW22]. A major contribution of this work is that we did not design a (contrived) protocol, but showed that the security of practically-relevant PAKE and OT proposals fails to translate to the post-quantum setting.
For example, one could likely construct a contrived commitment scheme that is extractable against classical adversaries but not against quantum adversaries by incorporating a proof of quantumness protocol (e.g. ) into the design of the commitment. However, we show that there is already a natural and widely used commitment scheme admitting such a separation.
We believe that this adds even more weight to the argument that proofs of security in the classical random oracle model (even from post-quantum assumptions) have limited meaning against quantum adversaries, and that the quantum adversarial model must be taken seriously when designing protocols based on post-quantum assumptions. In particular, it is crucial to gain a better understanding of the post-quantum security of (O)EKE as the community continues with standardization efforts.
2.6 Future work
Our work raises several directions for further research, a few of which we describe here.
- Consequence of our separation. While we exhibit a formal breakdown of simulation-based security for (O)EKE and Masny-Rindal OT, our attacks don’t have immediately “obvious” consequences. Indeed, we show that the protocols do retain some notions of game-based security. It would be interesting to find examples of broader contexts in which using (O)EKE or Masny-Rindal OT as a building block results in clear security issues stemming from the inability to extract the PAKE or OT input from the adversary.
• Alternative constructions. Is there a practically-efficient and truly post-quantum alternative to the “query-order” extraction technique underlying Masny-Rindal OT and (O)EKE? In fact, can we come up with any practically-efficient compiler from KEM to (two-message) OT or PAKE in the quantum random oracle model that achieves simulation-based security?
• Post-quantum BPR security. While we establish stand-alone game-based security for OEKE, the gold standard for game-based PAKE security considers a man-in-the-middle attacker and the fully concurrent setting, following the definitions of [BPR00]. We leave the full BPR security of (2-Feistel-based) OEKE as an important direction for future work.
• Security in the quantum ideal cipher model. One can also ask about the post-quantum game-based security of (O)EKE when instantiated with an ideal cipher, especially given recent techniques for analyzing quantum-accessible random permutations (e.g. ).
3 Preliminaries
3.1 Quantum information
We denote quantum registers A with sans-serif font. A quantum state on register A is a positive semi-definite operator with trace 1. The reduced state , where is the partial trace operator. We denote pure states as with corresponding density operator . We let denote the identity matrix. The trace distance between two state , is defined as
Quantum information lemmas. We first state the Gentle Measurement lemma.
Lemma 3.1. Let be a quantum state and let be a projective measurement such that . Let
be the state after applying to and post-selecting on obtaining the first outcome. Then, .
We will need the Cauchy-Schwarz inequality with respect to the Hilbert-Schmidt inner product .
Lemma 3.2. If A, B are complex matrices s.t is defined,
We use the following quantum rewinding statement, which says if two different computations (on the same state) give specific outputs with sufficiently high probability, performing the computations sequentially obtains both outputs with noticeable probability.
Lemma 3.3 ([DS23, Lemma 36]). Let be projectors and any quantum state, with . Then
We also need our own generalization of the above to n different computations chosen according to a distribution D.
Lemma 3.4. Let , let be a (non-point-mass) distribution on with min-entropy , define to be the distribution on defined by sampling and then conditioned on , let be any state, and let be projectors with
for . Then
Proof. We follow the outline of the proof of Lemma 3.3 in [DS23] and adapt it to our setting. Define and
By applying Lemma 3.2 with , and using , we have that
Since is a projector, Tr is cyclic, and for every ,
so rearranging gives
where the second inequality follows by taking and in Lemma 3.2. Applying Cauchy-Schwarz again, we obtain
so we can conclude that
Finally, by definition of ,
10
☐
Measure-and-reprogram. Recall the well-known measure-and-reprogram technique introduced in [DFMS19] and expanded in [DFM20]. The idea is as follows: suppose makes quantum queries to a random oracle and outputs and (possibly quantum) such that where is some predicate. Then there is a (black box) simulator such that, given access to , and a random , measures a random query of to get and reprograms . The guarantee is that with noticeable probability, will output such that . For reprogramming queries, the simulator works in multiple stages: it first outputs a permutation of and , and takes an input . It then runs, and outputs and takes as input , etc., until it outputs . Formally:
Theorem 3.5. There exists a black-box polynomial time -stage quantum algorithm S with syntax as already outlined, with the following property. Let A be a quantum oracle algorithm that makes q queries to a random oracle and that outputs . Then for any fixed with distinct entries and (possibly quantum/randomized) predicate V,
Here are chosen uniformly at random from .
Theorem 3.5 is identical to [DFM20, Theorem 6] except that in our version V has access to H in the original game and the reprogrammed oracle in the simulated game. The proof is very similar to [DFM20, Theorem 6] and is sketched in Appendix B.
We also use a result of [DFMS22]: Given an algorithm with access to a random oracle that eventually outputs a value for some unknown , there is a simulator that simulates access to using an interface , and allows extraction of given via an interface .
Theorem 3.6 (Quantum random oracle simulation with extraction [DFMS22]). There is an efficient quantum algorithm S with two interfaces S.RO, S.E such that for any algorithm with quantum access to a random oracle , we have the following guarantees;
-
[DFMS22, Theorem 4.3 1] If no S.E query is made, S.RO is perfectly indistinguishable from H.
-
[DFMS22, Theorem 4.3 2(c)] Any two independent queries to S.RO, S.E -almost commute (independent means they could be made in either order).
-
[DFMS22, Proposition 4.5] Suppose A makes q queries to H. Then
3.2 KEM
A key encapsulation mechanism
consists of three polynomial time algorithms:
- KEM.KeyGen( ) pk, sk is a randomized algorithm that generates a public key and a secret key . It takes an input the security parameter and we will sometimes be explicit about the random coins that it uses. We will sometimes denote its output by , leaving the security parameter implicit.
The coherent measure-and-reprogram theorem proved in [CGLS24] already allows V to access H, but we opt not to use it, as the structure of Theorem 3.5 is more suited to our needs.
-
KEM.Encaps(pk) → c, K is a randomized algorithm that, given a public key pk, generates a ciphertext c and output key K.
-
KEM.Decaps(sk, c) = K is a deterministic algorithm that, given a ciphertext c and secret key sk, generates an output key K.
In what follows, we will often leave the security parameter implicit, for example when writing the sets , and . denotes the (zero-indexed) -th element of the tuple .
Definition 3.7 (KEM: Correctness). A KEM KEM has correctness error if
We say that the KEM is correct if .
We next define several notions of security for KEM that will be used in this work.
Public-key uniformity. The post-quantum computational public key uniformity experiment for KEM consists of the following security game played against a quantum polynomial time adversary A.
PKU
•
•
•
•
Define the advantage of A in the above game as
Definition 3.8 (KEM: Public key uniformity). A KEM KEM has post-quantum computationally uniform public keys if for any QPT adversary A,
By purifying the randomness of the challenger, we arrive at an equivalent definition of the security game that will be more convenient for us to work with.
PKU
•
•
•
•
Key unpredictability. Consider the following experiment.
•
•
•
Define the advantage of A in the above game as
Definition 3.9 (KEM: Unpredictability Security). A KEM KEM has post-quantum key unpredictability if for any QPT adversary A,
Key indistinguishability. Consider the following experiment.
•
•
•
•
•
Define the advantage of A in the above game as
Definition 3.10 (KEM: Indistinguishability Security). A KEM KEM has post-quantum key indistinguishability if for any QPT adversary A,
3.3 Masny-Rindal OT
3.3.1 Syntax
Masny-Rindal (MR) OT [MR19] is a compiler from KEM to oblivious transfer in the random oracle model. Let , and let , where is the public key space of KEM. Assume for simplicity that elements of are naturally specified as bitstrings so that is an additive operation over the group . The OT protocol is specified as follows.
• :
– Sample , and .
– Set .
– Send to the sender and keep .
• Sen(msg ):
– Set and .
– Sample and .
– Send to the receiver and output .
• :
– Output .
3.3.2 Game-based security
We formulate a notion of game-based security for two-message oblivious transfer.
Definition 3.11 (Two-message OT: Correctness). A two-message OT protocol (Rec₁, Sen, Rec₂) satisfies correctness if for any ,
Definition 3.12 (Two-message OT: Security against malicious receiver). A two-message OT protocol (Rec₁, Sen, Rec₂) satisfies security against malicious receiver if for any QPT A,
Definition 3.13 (Two-message OT: Security against malicious sender). A two-message OT protocol (Rec₁, Sen, Rec₂) satisfies security against malicious sender if for any QPT A,
3.3.3 Simulation-based security
[MR19] define the following ideal functionality , which they call endemic security.
:
• Take an input from the receiver.
- If the sender is corrupt, take an input from the sender. If the receiver is corrupt, take an additional input from the receiver.
• All undefined m are sampled uniformly from .
• Output to the receiver and to the sender.
Definition 3.14 (Two-message OT: Simulation security). A two-message OT protocol (Rec₁, Sen, Rec₂) is simulation-secure against a malicious receiver if for any family of states on two registers and any QPT adversary , there exists a QPT simulator such that for any QPT distinguisher ,
where
-
denotes the interaction between the adversary on input register A and the honest sender, and outputs 's output along with 's output .
-
denotes the interaction between the simulator on input register A and the ideal functionality . The output includes 's output along with the sender's part of 's output.
The protocol is simulation-secure against a malicious sender if the analogous claim holds when the adversary corrupts the sender.
Simulation of ideal functionalities. One clarification is in order about the above definition. Since the protocol we will be analyzing involves an ideal functionality, namely a random oracle, we will allow the simulator to maintain the interface of the random oracle. That is, whenever the adversary or the distinguisher queries the random oracle, the simulator may process the query and respond. In the quantum setting, an ideal functionality is specified by a channel applied to input and output registers X, Y supplied by the adversary. In this case, the simulator may take the registers X, Y, apply some operation (potentially also on its private register), and return X, Y.
Classical UC security. In Section 4 and Appendix E, [MR19] show that the Masny-Rindal OT protocol is UC-secure against classical adversaries when instantiated with any KEM that has negligible correctness error (Definition 3.7), computationally uniform public keys (Definition 3.8), and key indistinguishability (Definition 3.10). As a consequence, this establishes that the protocol is stand-alone simulation-secure according to our above definition restricted to classical adversaries and simulators.
3.4 OEKE
3.4.1 Syntax
Once-encrypted key exchange (OEKE) is a template for building two-message PAKE specified by the following ingredients.
• A KEM KEM = (KEM.KeyGen, KEM.Encaps, KEM.Decaps).
-
(Potentially oracle-aided) encryption and decryption algorithms , with the following syntax:
-
takes a password pw, a KEM public key pk, and random coins r, and outputs a message .
-
takes a password pw and a message and outputs pk.
• A (potentially oracle-aided) key derivation function .
• A (potentially oracle-aided) tag function .
Given the above ingredients, the OEKE protocol is specified as follows.
• PAKE (pw) (st, ):
– Sample (pk, sk) KEM.KeyGen.
– Sample r and compute .
– Set st = (sk, pk, )
• PAKE (pw, ) :
– Compute pk = .
– Sample .
– Set key = .
– Set .
• PAKE (pw, st, c, ) key:
– Compute .
– Set key = .
– If , output key, otherwise output .
Besides correctness and security of KEM, we also require public key uniformity (Definition 3.8) for post-quantum security; otherwise a quantum adversary can mount an offline password attack by obtaining , computing for many candidate passwords , and checking which follows the public key distribution.
3.4.2 Game-based security
Next, we formulate a game-based stand-alone notion of security for two-message PAKE.
Definition 3.15 (Two-message PAKE: Correctness). A two-message PAKE scheme (PAKE₁, PAKE₂, PAKE₃) satisfies correctness if for any pw,
Definition 3.16 (Two-message PAKE: Passive security). A two-message PAKE scheme (PAKE₁, PAKE₂, PAKE₃) satisfies passive security if for any pw and QPT adversary A,
Definition 3.17 (Two-message PAKE: Security against malicious initiator). A two-message PAKE scheme (PAKE₁, PAKE₂, PAKE₃) satisfies security against malicious initiator if for any distribution D with min-entropy γ over passwords PW and any QPT adversary (A₁, A₂),
Definition 3.18 (Two-message PAKE: Security against malicious respondent). A two-message PAKE scheme (PAKE₁, PAKE₂, PAKE₃) satisfies security against malicious respondent if for any distribution D with min-entropy γ over passwords PW and any QPT adversary (A₁, A₂),
3.4.3 UC security
Universally Composable security was introduced by Canetti [Can01] as a version of simulation-based security that provides security when the protocol is concurrently composed with other protocols. UC is similar to standalone security (as in Definition 3.14) except the distinguisher is now interactive (the interactive distinguisher is referred to as the environment Z). [Unr10] formally defined UC-security for quantum protocols and adversaries and proved that secure protocol composition still holds. We adopt the same framework, so the simulator, adversary and ideal functionalities can be quantum. However, we study post-quantum protocols, so all honest parties are classical and send/receive only classical messages, and the ideal functionality being UC-realized is classical.
- On input (NewSession, sid, , , pw, role) from , send (NewSession, sid, , , role) to S. Furthermore, if this is the first NewSession message for sid, or this is the second NewSession message for sid and there is a record , then record and mark it fresh.
• On (TestPwd, sid, , ) from S, if there is a record marked fresh, then do:
– If , then mark the record compromised and send “correct guess” to S.
– If , then mark the record interrupted and send “wrong guess” to S.
• On (NewKey, sid, , ) from S, if there is a record , and this is the first NewKey message for sid and , then output (sid, K) to , where K is defined as follows:
– If the record is compromised, then set .
– If the record is fresh, a key (sid, ) has been output to , at which time there was a record marked fresh, and , then set .
– Otherwise if role = “respondent” sample ; if role = “initiator”, set .
Finally, mark the record completed.
Figure 3: UC PAKE functionality
A word on quantum ideal functionalities. In order to meaningfully talk about the post-quantum security of protocols in the UC framework that use a quantum accessible random oracle/ideal cipher, one must define a suitable ideal functionality. To the best of our knowledge, a formal definition for either has not appeared in the literature ([LLH24] provides a UC proof in the QROM but makes no reference to an ideal functionality). A priori, it is not obvious that such ideal functionalities exist, since in the UC framework ideal functionalities must be efficient, and defining efficient procedures for simulating quantum access to ideal primitives with negligible error has proven quite challenging, with a long line of recent work [Zha19, Unr23, Car26, GY25, FLM 26].
By [Zha19, Lemma 4] Zhandry’s compressed standard oracle is an efficient and perfectly correct simulation of quantum access to a random oracle by the unitary , so it can be used to define a corresponding UC functionality for the QROM .
Ideal ciphers are more challenging: for example, there is no known quantum analogue of [DS16] enabling efficient simulation of an ideal cipher using a random oracle. It seems plausible that the techniques of [Car26] can be applied to an ideal cipher, but this would incur substantial simulation error (perhaps mitigated by very recent work [CM26]). Two other recent works [GY25, FLM 26] define a procedure to perfectly simulate a broad class of oracles that includes ideal ciphers, but it is not yet known if this ideal cipher simulation is efficient . However, this is not an issue for us, as we aim to show UC-insecurity. In other words, we show that even if such an ideal functionality existed, (O)EKE would be UC-insecure relative to it.
The PAKE functionality. Our UC PAKE functionality is the same that was used in [Xu26] to analyze OEKE, and is given in Figure 3: it is a minor modification of the standard PAKE functionality that incorporates one-sided explicit authentication. We now give a brief overview of how it works.
The functionality involves two parties, with password and with password . Each party is also given a role: the party with role = “initiator” sends the first protocol message. The functionality captures explicit authentication for the “initiator” party. Each execution of the protocol involves a session for and a session for , both of which have a corresponding record marked with a state:
• When a session is established (by a NewSession command), it is marked fresh, and will remain fresh
One could also define an ideal functionality where access is given via the phase query interface but this is not useful in the post-quantum setting, as we assume classical algorithms querying the random oracle instantly measure the result in the computational basis.
Technically, this is the class of oracles sampled from a compact Lie group according to the Haar measure.
[GY25, FLM 26] both give simulations of random permutations whose efficiency reduces to efficiency of the Clebsch-Gordan transform for permutations, which is currently an open problem.
until the simulator (ideal adversary) attacks the session.
-
The simulator may attack a fresh P session by sending a TestPwd command for P, on a password guess pw*. This models an online guessing attack in the real world, where the simulator runs the algorithm of on a password guess pw* and communicates with P. If pw* = pw, this is a successful attack, and the session is marked compromised; otherwise the session is marked interrupted. Note that once a session becomes compromised or interrupted, it can never return to fresh; this in particular means that TestPwd can be run only once on any specific session.
-
The only way a party receives a session key is by the simulator sending a NewKey command, after which the session will output a key (or possibly the symbol for the initiator) to the party depending on the states of this session and its counter session. Subsequently the session is marked completed (so that TestPwd cannot be sent after the session ends).
We now emphasize a few points about that will be important later.
-
Notice that a simulator can only guess the password of a party once: after that the record is no longer fresh. We define to be the password guess for a party in session sid if sent the command (TestPwd, sid, , ) when there was a record marked fresh. If no such command has been sent, the password guess is . Once NewKey has been sent to the password guess is fixed, as can no longer send TestPwd to .
-
If S is to be a successful simulator, whenever a party P outputs a key in the real world, S must send NewKey to P in the ideal world, otherwise the real and ideal world are trivially distinguishable.
-
When S sends NewKey to the respondent P, unless the record for P has already been marked compromised (which requires S to have made a correct password guess), the key of P is chosen uniformly and independently of S's view, and will remain independent of S's view for the rest of the security experiment.
4 Attacks on simulation-based security
4.1 Masny-Rindal OT
Theorem 4.1. Let be the Masny-Rindal OT protocol (Section 3.3.1) instantiated with any KEM with negligible correctness error (Definition 3.7). Then is not post-quantum simulation-secure (Definition 3.14).
Proof. First, we note that security against a malicious sender fails if the KEM does not have computationally uniform public keys (Definition 3.8). Indeed, given produced by the honest receiver on input bit , the sender can recover . Since was sampled uniformly at random by the honest receiver, is distributed uniformly at random. On the other hand, if KEM does not have computationally uniform keys, is distinguishable from uniformly random, which gives the sender a non-negligible advantage in distinguishing from and thus in predicting .
Therefore, we assume that KEM has computationally uniform public keys, and to complete the proof we show that is not simulation-secure against a malicious receiver. In particular, we define a (mixed) state on registers D, A and an adversary distinguisher pair A, D for which no simulator S can possibly exist.
The state will be a uniform mixture over two pure states and specified by a choice of branch . In a slight abuse of notation, we consider the choice of the bit to be stored in register D, so it is known to the distinguisher (but not necessarily to the adversary). These states are defined as
It is straightforward to obtain a counterexample using a pure state by coherently recording the choice of the branch in register D.
where . Now, takes as input register and does the following.
- Initialize a fresh register Y and query H on registers X, Y to obtain the following state:
- Initialize fresh registers , and apply the computation to registers that produces the following state:
where in branch and in branch .
- Query H on registers X, Y, discard Y, and measure , to obtain . On branch , this yields the state
We leave the precise description of the resulting state on branch implicit, as it will not be important for the argument.
-
Query H (classically) on and to obtain and .
-
Output to the sender, receive , and send to the distinguisher , which is a mix of quantum registers and classical information.
Finally, we describe the behavior of the distinguisher , who knows the value of , and additionally receives (from the honest sender in the real experiment, and from in the ideal experiment).
• If , define
and apply the measurement to registers (D, B, X, K). Output 1 if the first outcome and 0 if the second.
• If , measure D, B to obtain , compute , and output 1 if and 0 otherwise.
Now, suppose towards contradiction that there exists a simulator S for which
Let
Under this assumption, we can establish the following two claims, which yield a contradiction.
Claim 4.2. .
Proof. In branch , the distinguisher outputs 1 with probability 1 due to the definition of the state on registers (D, B, X, K). In branch , the correctness of the KEM directly implies that , and so the distinguisher outputs 1 with probability .
Claim 4.3. .
Proof. Consider the following sequence of hybrids, where each hybrid outputs a bit.
• Hyb₀: This is the ideal game: .
- Hyb₁: Change how we compute the output in branch as follows. Let be the input that chooses to send to , and let be the bit measured by the distinguisher. Output 1 when and 0 otherwise.
We can argue as follows. First, immediately outputting 1 when instead of computing and comparing with only potentially increases the probability of outputting 1 when . Next, when , we have that is chosen by as a uniform string in , independent of the rest of the experiment, and thus .
• Hyb₂: Replace the branch c = 1 state with the branch c = 0 state. That is, prepare the state
regardless of whether c = 0 or c = 1.
follows directly from the computational public key uniformity of the KEM. Indeed, notice that neither nor need to operate on the D register in branch to compute its output bit. The distinguisher no longer uses D, and D is inaccessible to S. Thus, this register can be held by an external challenger in the computational public key uniformity game.
• Hyb₃: Right before the distinguisher makes its branch-dependent measurement, post-select the registers (D, B, X, K) onto
follows from the assumption that , the fact that , and Gentle Measurement applied to the measurement performed in the branch.
Combining the above, we have that . However, it is easy to see that . Indeed, with probability , we are in branch , and in this branch, measuring register B of the pure state yields a bit that is uniform and independent of , meaning that . Thus, .
4.2 OEKE with ideal cipher
We first consider OEKE (Section 3.4.1) where the encryption and decryption algorithms are instantiated with an ideal cipher. That is, let be an ideal cipher, and let and .
Theorem 4.4. Let be an OEKE protocol instantiated with (1) any KEM with negligible correctness error (Definition 3.7), (2) the IC-based encryption and decryption algorithms defined above, (3) any key derivation function , and (4) any tag function . Then does not post-quantum UC-realize (Figure 3).
By [RX23], UC-realizing the UC PAKE functionality does not imply correctness.
Proof. By the same argument made at the beginning of the proof of Theorem 4.1 (see also the discussion in Section 3.4.1), we can assume without loss of generality that KEM has post-quantum computationally uniform public keys (Definition 3.8), as otherwise would not satisfy security against a malicious respondent.
Now, suppose S is a simulator for the protocol in Figure 2 with respect to the dummy adversary. Fix to be any two distinct passwords. We construct an environment Z that distinguishes between the real and ideal world.
Environment
-
Sample and send (NewSession, sid, , , , respondent) to for some nonce sid.
-
Prepare the normalized state
-
Query E on registers X, Y into a new register Z (through A).
-
Measure Z to get and leftover state .
-
Query for .
-
Let and apply the measurement to (here is the projector onto ).
-
Output 1 if M accepts and otherwise output 0.
Environment
-
Sample and send (NewSession, sid, , , , respondent) to for some nonce sid.
-
Prepare the normalized state using KEM.KeyGen.
-
Query E on registers X, Y into a new register Z (through A).
-
Measure Z to get and leftover state .
-
Query for .
-
Measure A, B to get ; if output 1.
-
Instruct A to send to .
• In the real world, outputs their key key' and sends to A.
• In the ideal world, S must send (NewKey, sid, , ) to and to A. Let pwguess be S's password guess for (sid, ).
-
Compute , , and .
-
Let key' be the output of in either world. If key* = key' output 1, otherwise output 0.
Our environment simply chooses and runs .
Real world. We show that Z outputs 1 in the real world with 1 - negl probability. After queries E in Step 3 the state is
After Step 5, since is a keyed permutation , so must output 1 with probability 1.
After queries E in Step 3 the state is
If in Step 6 then will decrypt to obtain in Step 7. By correctness of KEM, must then output key* as computed by in Step 8 with probability . Therefore outputs 1 with probability .
Ideal world. We now give a hybrid argument to show that in the ideal world, Z outputs 1 with probability for some non-negligible . Let be the experiment where Z runs in the ideal world against some simulator S for the dummy adversary. In general let be running in experiment .
: same as , but at the end of Step 7 of , output 1 if ; otherwise output 0.
Analysis of the change: We can argue as follows. First, immediately outputting 1 when only potentially increases the probability of outputting 1 when . Next, when , note in Step 7 so at this point has not compromised with a correct password guess. Recall that in this case samples 's key uniformly and independently from , and it remains independent of 's view for the rest of the experiment. In total, we have .
: same as , but change Step 2 of to be the same as and adjust the rest of accordingly.
Analysis of the change: In the previous hybrid, we made Steps 8 and 9 of unnecessary, which is the only place where is used. Therefore we no longer need the randomness on register B and can use the same state as in . We now have as follows:
Environment
-
Sample and send (NewSession, sid, , , , respondent) to for some nonce sid.
-
Prepare the normalized state
-
Query E on registers X, Y into a new register Z (through A).
-
Measure Z to get and leftover state .
-
Query for .
-
Measure A to get ; if output 1.
-
Instruct A to send to .
• In the real world, outputs their key key' and sends to A.
• In the ideal world, S must send (NewKey, sid, , ) to and to A. Let pwguess be S's password guess for (sid, ).
- If pwguess = pw_i output 1, otherwise output 0.
The only functional change in this hybrid is that pk is now sampled uniformly, so we construct a quantum polynomial time reduction that breaks computational public key uniformity given access to an that distinguishes and . Given the public key state , runs with , playing the part of both and the environment. is simulated by running the functionality, and the environment is simulated by running , with the following changes:
• If or then output a random bit.
• In Step 2 of instead prepare the state
Note that
• must use its access to in Step 8 of to check if pwguess = pw_i;
• Changing Step 2 of does not affect its execution since no longer uses the B register.
Let be the choice bit in the uniformity experiment. When the view of in is as in , and when the view of in is as in . Note that the events and happen independently in , and the execution of (regardless of the value of ). Furthermore, when then both and behave identically. Similarly, in this case and behave identically. Concluding,
Hyb₃: Let W the additional state in the experiment besides ABXY: this includes S's workspace register, the state of FPAKE-ea and other classical public values. Let δʰ be the state over ABXYW at the end of Step 5 of Zₙ². Hyb₃ is the same as Hyb₂ but δʰ is replaced with at the end of Step 5 of Zₙ² for (here ).
Analysis of the change: Since , are the same through the end of Step 5, . Since , . If is non-negligible then outputs 1 with probability and we are done, so we may assume that is negligible. By the Gentle Measurement Lemma,
We now show . This completes the proof since by our hybrid argument
Let be the state over ABXYW at the end of Step 5 of (by previous reasoning does not depend on ). By the change in , there is a state such that
We claim that the instant before S sends TestPwd (if it does), b is uniform from it's point of view. If TestPwd is sent before the end of Step 5, this holds since S's view is independent of b at this point. If it is sent after, by Equation (1) the value of i is independent of S's state, and Step 7 reveals no information about i before TestPwd is sent. In Step 7 we have , so either way . Since i, b are sampled independently and b is uniform, reaches Step 7 of with probability 1/4, so it must output 0 with probability .
5 Provable game-based security
5.1 Masny-Rindal OT
Theorem 5.1. Let be the Masny-Rindal OT protocol (Section 3.3.1) instantiated with any KEM with negligible correctness error (Definition 3.7), (post-quantum) computationally uniform public keys (Definition 3.8), and (post-quantum) key unpredictability (Definition 3.9). Then satisfies correctness (Definition 3.11), (post-quantum) game-based security against malicious receiver (Definition 3.12), and (post-quantum) game-based security against malicious sender (Definition 3.13).
Correctness follows immediately from correctness of KEM.
Proof of malicious receiver security. As an intermediate step, we first prove a weaker version where the malicious receiver has to guess both strings. A QPT adversary ( ) should have negligible success in the following experiment:
• On , runs and outputs a message and auxiliary state .
• For sample random coins and compute .
• Run to get .
• Adversary succeeds if for .
We now define a reduction that uses measure-and-reprogram to break key unpredictability. will reprogram such that the public key equals the challenge public key . then uses the challenge ciphertext in place of to complete the protocol, and uses 's guess for as its own.
Formally, suppose makes queries to and let be the success probability of in the weaker malicious receiver security game described above. Let be the following quantum algorithm:
• Compute for ;
• Sample ;
• Compute ;
• Write to an output register.
Let be the projector onto states where for . Let output 1 when the projector accepts.
is given an unpredictability challenge and will act as the measure-and-reprogram simulator for , with predicate . In the first stage receives and sets ; in the second stage receives and sets . On output , runs except that it does not generate itself but instead uses . then measures and outputs . To analyze the success of , first note that accepts on 's output exactly when wins the weaker malicious receiver security game. Additionally, sets , so will equal the desired challenge key if succeeds. The only difference in 's view between and the usual measure-and-reprogram simulator is that is not uniformly random. However, this cannot affect 's success probability too much without breaking public key uniformity: a reduction , given a uniformity challenge , encapsulates , and runs as above, outputting 0 if (and 1 otherwise). All together, summing over all choices of and applying Theorem 3.5 with gives
We assume that the sender aborts if , which only occurs with probability in an honest execution.
completing the proof. We obtain full security against a malicious receiver by using Lemma 3.3 to reduce to the weaker version. Suppose is a QPT adversary for malicious receiver security of Masny-Rindal OT with success probability :
• On , runs and outputs a message and auxiliary state .
• For sample random coins and compute . Sample .
• Run to get .
• Adversary succeeds if .
Without loss of generality, on input , , , , , runs an oracle-aided unitary (with , , hardwired in) on (plus some ancilla qubits), writing into an extra register . Let project onto states with
and define . We now define an adversary for the weaker security:
• : Run as normal, outputting .
• :
-
Apply to , measure X to obtain , and copy to a fresh register.
-
Apply and measure X to get . Output .
For any fixed choice of , applying Lemma 3.3 to the projectors and (in expectation over) the state , we have by assumption and the unitarity of , so . Since projects X to a single value, the measurement of X does not disturb the state conditioned on success, and the probability that for is exactly . By averaging over the sampling of , must have negligible advantage in the malicious receiver security game.
Proof of malicious sender security. The malicious sender security game for Masny-Rindal OT against QPT adversary A is the following:
• On , sample , , and .
• Set .
• Send to and keep .
• A returns a guess : A wins if .
Suppose is an adversary for malicious sender security with success probability . We give a reduction that breaks uniformity of public keys. Given a challenge with choice bit , plays the part of but uses instead of generating its own . If then outputs 1; otherwise it outputs a random bit. Note that when () the bit is independent of so
When (pk* honestly generated) simulates the malicious sender security experiment to , so , which implies . We then have
By Bayes Theorem,
All together,
5.2 OEKE with 2-Feistel
Theorem 5.2. Let be any OEKE protocol instantiated with (1) any KEM with negligible correctness error, UNP security, and computationally uniform public keys (see Section 3.2) (2) the 2-Feistel-based encryption and decryption algorithms , (Appendix A), (3) key derivation function modeled as a salted random oracle with -length output, and (4) tag function modeled as a random oracle with -length output.
Then satisfies Correctness (Definition 3.15), Passive security (Definition 3.16), Security against malicious initiator (Definition 3.17), and Security against malicious respondent (Definition 3.18).
Correctness is immediate. Passive security follows from the security of the KEM; although the adversary can decrypt using pw to get pk, it still only sees pk, , and has to distinguish between and a uniformly random string. Key unpredictability of KEM plus standard one-way-to-hiding shows that the adversary has negligible advantage in this game.
Proof of security against a malicious initiator. We first establish a weaker form of security that we call the two-output game: the malicious initiator should not be able to guess two independently encapsulated keys. Formally, a QPT adversary should have negligible probability of success in the following experiment:
• Sample , followed by conditioned on .
• outputs and auxiliary state .
• Sample .
• Compute and for .
• Run ; the adversary succeeds if for .
To show this, we will require a variant of Theorem 3.5 that works for multiple random oracles. We model this as follows: suppose we have random oracles and is a quantum oracle machine given access to the through the unitaries . This adversary can be emulated by an making the same number of queries given access to the random oracle by querying and only using the relevant part of the output. We denote a query as or . Let denote the intended random oracle output ; we also occasionally abuse notation and denote the full output by as well. We may write an oracle algorithm as under this identification.
Suppose that the two-output game has non-negligible success probability. By averaging, fix distinct passwords , for which the conditional success probability, denoted , is non-negligible. Define an algorithm as follows:
• Run
Salting the random oracle means that the respondent will sample a random salt , set as the output of the key derivation function, and send as part of its message, meaning that the key derivation function is effectively .
• Output
Suppose makes queries to . Let be a quantum algorithm that has hard-coded random coins , additionally takes inputs
and does the following:
• Write 1 to an ancilla flag unless , , for all .
• Continue execution if flag = 0:
• Compute .
• Compute for .
• Run to an output register.
• Write 1 to flag unless for .
Let be the projector onto output states where the value of flag equals 0. Using a purified implementation of , let output 1 when the projector accepts, and 0 otherwise. We will show that
Fix some choice of . Recall that the measure-and-reprogram simulator for will measure the points to reprogram in some order based on a random permutation .
Claim 5.3. Let be the event that , and be the event that outputs 1. Then .
Proof. Suppose without loss of generality that . At the point when is reprogrammed to , if occurs then the values of are known to the simulator, since the queries have already been made. If occurs later on we must have , since these values will equal s when s is defined later on. Since is a uniformly random value in the claim follows.
Claim 5.3 will allow us to program a public key . Formally, we give a reduction to key unpredictability of KEM as follows. Given a challenge
• will act as the measure-and-reprogram simulator for .
-
reprograms queries to random outputs until it measures after previously measuring for some . In this case, it reprograms the part of the query to be , and the part to be a random . Otherwise it aborts the measure-and-reprogram and just guesses a random key .
-
On outputs , samples and runs except that it uses in place of (and hence does not actually need to know the value of , which was sampled by its challenger). then measures and outputs .
Note that outputs 1 exactly when wins the security game (with probability ). We now argue that still outputs 1 in with noticeable probability. Assuming that a suitable always exists incurs a negligible loss; by Claim 5.3,
The reprogramming of to is indistinguishable to from reprogramming to a uniform value: a reduction to public key uniformity can, on receiving a challenge , compute an encapsulation , and run using , returning 0 if and 1 otherwise. If is random simulates the usual measure-and-reprogram simulation, and if is real simulates the reduction . Therefore, summing over all points of the form specified in 2 & 3 and applying Theorem 3.5 when we have
completing the proof. In fact, the above argument can be extended to the case where is additionally given for , and have quantum access to . To see this, we apply standard one-way-to-hiding [Unr14] within the KEM reduction, replacing the embedded challenge's tag and derived-key value by uniform strings while computing the other response honestly.
Using this, we now show a stronger version of search security: any QPT adversary has at most chance of success in the following experiment:
• outputs and auxiliary state .
• Sample .
• Compute and .
• Run ; the adversary succeeds if .
We use Lemma 3.4 to reduce to the weaker version shown previously. Sample and fix a choice of and for each password . We will define a family of unitaries , where each has a tuple hard-coded, which are deterministically derived from , the random oracles, and . applies a coherent implementation of to (plus some ancilla qubits), writing into an extra register . Let project onto states with
where , and define
Given with success probability we now define an adversary , where are sampled as in the two-output game:
• : output .
• :
-
Apply to , measure X to obtain , and copy to a fresh register.
-
Apply and measure X to get .
-
Output .
As in Theorem 5.1, since each projects X to a single value, the measurement of X does not disturb the state conditioned on success. By applying Lemma 3.4 to the projectors and the state , averaged over , we get that the probability outputs is at least . This implies the existence of an adversary with the same probability of success in the two-output game above, where now additionally takes , as input and hard-codes them into the descriptions of . But above we showed that this probability must be negligible, establishing that .
Finally we are ready to show full indistinguishability security against a malicious initiator. Here is where we use the assumption that is salted: a standard re-programming argument allows us to move to a hybrid (with negl distinguishing advantage) where the oracle is sampled independently of and the adversary's state after it sends its first message. We can apply Corollary 6.3.1 with , and being the transcript/residual state. Therefore , and hence the probability of winning in the full game is at most .
Proof of security against a malicious respondent. As an intermediate step, we first prove a weaker version of security where the malicious receiver has to guess pw given . A QPT adversary should have at most probability of success in the following experiment, where ; and wins if . Given that succeeds with , we give a reduction that breaks uniformity of public keys with advantage at least . Given a challenge with choice bit , plays the part of but uses instead of honestly generating its own . If then outputs 1; otherwise it outputs a uniformly random bit.
Claim 5.4. When ( ), (pw, ) are distributed as independent samples , .
Proof. Let us consider fixed , pw. Recall that is a bijective map , with left inverse . Therefore if , pk are chosen uniformly, then will be uniform as well. Since pw is fixed here, when it must be independent of . Additionally, since are fixed, this continues to hold even against an adversary that sees the entire truth tables of (so certainly against an adversary with polynomially many quantum queries to ).
Claim 5.4 immediately implies . When , simulates an honest initiator to , so ; all together, guesses . We complete the proof of security against a malicious respondent by using Theorem 3.6 to build a password-guessing adversary from a malicious respondent adversary. Suppose wins the experiment of Definition 3.18 with probability for some non-negligible . Let denote the event that the honest initiator accepts 's response. Since , we have . We now construct a password-guessing adversary that succeeds with probability at least , contradicting the above bound.
Suppose makes queries to . Consider the following experiment , where we run the honest initiator against and output all values:
• pw D
• (sk, pk, ) PAKE (pw);
•
• Compute .
• Output pw, pk, , c, K, , .
Note that .
Hyb₁: In this hybrid, we use the extractable QROM simulator of Theorem 3.6 to simulate . Since there are no S.E queries, and are perfectly indistinguishable.
Hyb₂: In this hybrid, we add a S.E query at the end to extract A₁'s password guess.
• pw D
• (sk, pk, ) PAKE (pw);
•
• Compute
• Output pw, pk, , c, K, , , pw'.
Since is applied at the end, the other values are distributed identically between and . By Theorem 3.6, . Therefore in ,
Hyb : In this hybrid, we move S.E to just after outputs.
• pw D
• ;
•
• Compute .
• Compute .
• Output pw, pk, , c, K, , , pw'.
By Theorem 3.6, in
Therefore if is non-negligible we have constructed an adversary guessing the password with non-negligible advantage: the adversary runs (simulating with ), computes and outputs as the password guess.
6 Advantage-tight one-way to hiding
In this section, we establish a search-to-decision reduction in the quantum random oracle model where the search upper bound transfers to a distinguishing upper bound without advantage loss (allowing for polynomially greater running time).
In fact, we consider a very general scenario specified by any sampler that outputs , where are functions from , is a subset of the domain , and is a quantum state. We require that . Let be the membership-checking predicate for . For any (oracle-aided) distinguishing circuit , we define its distinguishing advantage as
and for any (oracle-aided) search circuit B, we define its search advantage as
Notice that we allow the search algorithm to make oracle calls to the membership checking predicate .
We show that the distinguishing advantage is exactly upper bounded by the search advantage (plus an additive negligible factor). We take all oracle operations to be unit cost, so below QPT means that the total size of all non-oracle operations is polynomial.
Technically we consider a family of samplers indexed by the security parameter, but this is left implicit.
Theorem 6.1. Let and suppose that for every QPT , . Then for every QPT distinguisher , .
The starting point for our proof is a decomposition of an arbitrary attacker's distinguishing advantage as the sum of two terms: a “forward” branch that sums its amplitudes on S at each oracle query, and a “reverse” branch that, starting from the adversary’s final state, sums the amplitudes on S at each oracle query when running the adversary in reverse.
This decomposition is the central idea underlying the “measure-rewind-measure” technique of . However, their search bound loses a factor that depends on the number of queries q made by the distinguisher, since their search adversary essentially chooses one (forward or reverse) query to measure at random.
Here, we move this factor of from the advantage bound to the running time of the search adversary by using quantum rewinding. In particular, we define a unitary that runs the search adversary suggested by the above decomposition coherently over the choice of branch and query . We then define an “input” projector that projects onto the clean starting space of this (purified) adversary, and a “success” projector that projects onto the set . Then, by alternating the projectors and sufficiently many times, one can amplify almost all of the adversary’s input state that is responsible for its distinguishing advantage (which, by the decomposition stated above, lies in the span of right singular vectors of above a certain threshold) onto the image of . Measuring the output register then produces a string in .
The quantum rewinding step is captured by the below amplitude amplification lemma, which follows readily from [GSLW19, Theorem 26].
Lemma 6.2 ([GSLW19]). Let U be a unitary, let and be projectors, and write
\Pi_{\mathrm{g o o d}}U\Pi_{\mathrm{i n}}=\sum_{j}\sigma_{j}\left|u_{j}\right\rangle\langle v_{j}\right|,\qquad P_{\geq\gamma}:=\sum_{j:\sigma_{j}\geq\gamma}\left|v_{j}\right\rangle\langle v_{j}\right|.For any and , there exists a unitary using a total of calls to such that for any supported on the image of ,
Given this lemma, we are ready to prove Theorem 6.1.
Proof. (of Theorem 6.1) Let A be any QPT distinguisher that makes q oracle calls and has advantage .
Notation. Fix a sample from and consider a purified implementation of that operates on a register that holds its input state along with any auxiliary registers required for the purification of the strategy. We also define a clock register spanned by and initialized to . Finally, let denote an arbitrary purification of using purification register , tensored with . Note that never touches or .
Using the purified implementation of A, we write
where is an oracle query to and is an oracle query to . For , define
Next, define to be a unitary satisfying
define forward and reverse history-state unitaries
and define projectors
where is the projection applied to the query register of . Note that for any state in the image of ,
and
Finally, let O be the single-qubit sub-register of Z on which A writes its output bit, and define
Approach. As explained above, we will now construct a unitary based on the description of such that, for some threshold , any right singular vector of with singular value below contributes negligibly to the distinguishing advantage of . Moreover, we want the complexity of implementing to be comparable to . If this can be arranged, then we can apply Lemma 6.2 to amplify the overwhelming majority of 's distinguishing advantage into the subspace , which produces a successful search answer.
The idea for will be derived from re-writing the expression for 's distinguishing advantage as follows.
where
We have that
where the last inequality is Cauchy-Schwarz and the first equality is Equation (4). Similarly,
using Equation (5) and the fact that and preserve .
To summarize, we can write
(6)
In other words, up to the 2q scaling, one component of the distinguishing advantage comes from a “forward” branch and the other comes from a “reverse” branch . Similar observations have been used in [KSS 20, GLX24].
The unitary . We use this decomposition to inform the specification of the unitary . First, expand the register Z to include single-qubit registers B and F initialized to . B will be a “branch” register, allowing both the forward and reverse branches to be run coherently, and F will be a register that allows for a unitary implementation of , that is,
Redefine to include , redefine as
and redefine . Then, define
where H is the Hadamard gate.
The singular value cutoff. Write a singular value decomposition
\Pi_{\mathrm{g o o d}}U_{A}\Pi_{\mathrm{i n}}=\sum_{j}\sigma_{j}\left|u_{j}\right\rangle\langle v_{j}\right|,and, fixing an r, define
We can now establish the central claim of the proof, showing that s distinguishing advantage comes fully from the -image of its input , up to error .
Claim 6.3.
Proof. Let
and define
We first compare with . Let be an arbitrary state (not necessarily in the image of ) and define . Define
Then
using Equation (6) applied to the possibly unnormalized vector . By the definition of , we have
so discarding the second summand we have
Thus, for any input state ,
This establishes that
where the second inequality follows by definition of P using threshold . Therefore,
using the fact that E is Hermitian.
Finally, since is supported on the image of ,
where the second inequality uses the fact that, since is the difference of two projectors, .
Amplifying and completing the proof. Apply Lemma 6.2 with , and . This yields an amplified unitary Amp such that
Define the search adversary to run Amp on the expanded register and and then measure the query address to obtain a response . can be implemented using calls to , and , and thus with the same number of calls to and .
Hence, taking the expectation over , and applying Claim 6.3, we have that
Finally, assume for contradiction that there exists a polynomial such that on infinitely many security parameters, . Then setting we obtain a contradiction, completing the proof.
Now we use Theorem 6.1 to analyze the following scenario. Let be an arbitrary sampler that outputs and a state . Let be a uniformly random function with , sampled independently of . We have the following corollary.
Corollary 6.3.1. Let and suppose that for every QPT ,
Then for every QPT A,
Proof. First, given k and H, define
where . Then since and are efficiently implementable given , and oracle access to , and is collision-resistant whenever , we have that
where G is sampled as described above. Combining with the assumption in the corollary statement, we get
So by Theorem 6.1, we have that
Now, define
and note that and only differ on . Again due to collision-resistance of and Theorem 6.1 with (though here standard one-way to hiding would suffice), we have that
Finally, note that the distribution of , is identical to the distribution of in the experiment in the statement of the corollary. This completes the proof.
7 Acknowledgments
JB would like to thank Saikrishna Badrinarayan, Daniel Masny, and Pratyay Mukherjee for a previous collaboration related to the post-quantum security of the Masny-Rindal OT protocol, leading to insights that guided the direction of this work. JJ would like to thank Lawrence Roy and Naman Kumar for helpful discussions.
AI usage. The main contributions of this work were developed without AI assistance. AI tools were used to find the central idea behind the proof of Theorem 6.1 (advantage-tight one-way to hiding) and to aid with proofreading, checking of technical details, and polishing.
References
[ABJ25] Afonso Arriaga, Manuel Barbosa, and Stanislaw Jarecki. Noic: Pake from kem without ideal ciphers. Cryptology ePrint Archive, 2025.
[ABJ26] Afonso Arriaga, Manuel Barbosa, and Stanislaw Jarecki. Tempo: An ml-kem to pake compiler resilient to timing attacks. IACR Transactions on Cryptographic Hardware and Embedded Systems, 2026.
[AHU19] Andris Ambainis, Mike Hamburg, and Dominique Unruh. Quantum security proofs using semi-classical oracles. In Alexandra Boldyreva and Daniele Micciancio, editors, CRYPTO 2019, Part II, volume 11693 of LNCS, pages 269–295. Springer, Cham, August 2019.
[ARU14] Andris Ambainis, Ansis Rosmanis, and Dominique Unruh. Quantum attacks on classical proof systems: The hardness of quantum rewinding. In 55th FOCS, pages 474–483. IEEE Computer Society Press, October 2014.
[BCM 18] Zvika Brakerski, Paul Christiano, Urmila Mahadev, Umesh Vazirani, and Thomas Vidick. A cryptographic test of quantumness and certifiable randomness from a single quantum device. In 2018 IEEE 59th Annual Symposium on Foundations of Computer Science (FOCS), pages 320–331. IEEE, 2018.
[BCP03] Emmanuel Bresson, Olivier Chevassut, and David Pointcheval. Security proofs for an efficient password-based key exchange. In Sushil Jajodia, Vijayalakshmi Atluri, and Trent Jaeger, editors, ACM CCS 2003, pages 241–250. ACM Press, October 2003.
[BCP 23] Hugo Beguinet, Céline Chevalier, David Pointcheval, Thomas Ricosset, and Mélissa Rossi. GeT a CAKE: Generic transformations from key encapsulation mechanisms to password authenticated key exchanges. In Mehdi Tibouchi and Xiaofeng Wang, editors, ACNS 2023, Part II, volume 13906 of LNCS, pages 516–538. Springer, Cham, June 2023.
[BDF 11] Dan Boneh, Özgür Dagdelen, Marc Fischlin, Anja Lehmann, Christian Schaffner, and Mark Zhandry. Random oracles in a quantum world. In Dong Hoon Lee and Xiaoyun Wang, editors, ASIACRYPT 2011, volume 7073 of LNCS, pages 41–69. Springer, Berlin, Heidelberg, December 2011.
[BM92] Steven M. Bellovin and Michael Merritt. Encrypted key exchange: Password-based protocols secure against dictionary attacks. In 1992 IEEE Symposium on Security and Privacy, pages 72–84. IEEE Computer Society Press, May 1992.
[BPR00] Mihir Bellare, David Pointcheval, and Phillip Rogaway. Authenticated key exchange secure against dictionary attacks. In Bart Preneel, editor, EUROCRYPT 2000, volume 1807 of LNCS, pages 139–155. Springer, Berlin, Heidelberg, May 2000.
[BR93] Mihir Bellare and Phillip Rogaway. Random oracles are practical: A paradigm for designing efficient protocols. In Dorothy E. Denning, Raymond Pyle, Ravi Ganesan, Ravi S. Sandhu, and Victoria Ashby, editors, ACM CCS 93, pages 62–73. ACM Press, November 1993.
[Can01] Ran Canetti. Universally composable security: A new paradigm for cryptographic protocols. In 42nd FOCS, pages 136–145. IEEE Computer Society Press, October 2001.
[Car26] Joseph Carolan. Compressed permutation oracles. In Proceedings of the 58th Annual ACM Symposium on Theory of Computing, pages 150–161, 2026.
[CGLS24] Alexandru Cojocaru, Juan A. Garay, Qipeng Liu, and Fang Song. Improved quantum lifting by coherent measure-and-reprogram. In Kai-Min Chung and Yu Sasaki, editors, ASIACRYPT 2024, Part IX, volume 15492 of LNCS, pages 158–184. Springer, Singapore, December 2024.
[CHK 05] Ran Canetti, Shai Halevi, Jonathan Katz, Yehuda Lindell, and Philip D. MacKenzie. Universally composable password-based key exchange. In Ronald Cramer, editor, EUROCRYPT 2005, volume 3494 of LNCS, pages 404–421. Springer, Berlin, Heidelberg, May 2005.
[CHL 25] Alexandru Cojocaru, Minki Hhan, Qipeng Liu, Takashi Yamakawa, and Aaram Yun. Quantum lifting for invertible permutations and ideal ciphers. In Yael Tauman Kalai and Seny F. Kamara, editors, Advances in Cryptology – CRYPTO 2025, Part II, volume 16001 of Lecture Notes in Computer Science, pages 481–512. Springer, 2025.
[CM26] Joseph Carolan and Christian Majenz. Compressed permutation oracles revisited, 2026.
[Cry19] Crypto Forum Research Group. CFRG PAKE selection. https://github.com/cfrg/pake-selection, 2019. Accessed: 2026-09-30.
[DFM20] Jelle Don, Serge Fehr, and Christian Majenz. The measure-and-reprogram technique 2.0: Multi-round Fiat-Shamir and more. In Daniele Micciancio and Thomas Ristenpart, editors, CRYPTO 2020, Part III, volume 12172 of LNCS, pages 602–631. Springer, Cham, August 2020.
[DFMS19] Jelle Don, Serge Fehr, Christian Majenz, and Christian Schaffner. Security of the Fiat-Shamir transformation in the quantum random-oracle model. In Alexandra Boldyreva and Daniele Micciancio, editors, CRYPTO 2019, Part II, volume 11693 of LNCS, pages 356–383. Springer, Cham, August 2019.
[DFMS22] Jelle Don, Serge Fehr, Christian Majenz, and Christian Schaffner. Online-extractability in the quantum random-oracle model. In Orr Dunkelman and Stefan Dziembowski, editors, EURO-CRYPT 2022, Part III, volume 13277 of LNCS, pages 677–706. Springer, Cham, May / June 2022.
[DS16] Yuanxi Dai and John P. Steinberger. Indifferentiability of 8-round Feistel networks. In Matthew Robshaw and Jonathan Katz, editors, CRYPTO 2016, Part I, volume 9814 of LNCS, pages 95–120. Springer, Berlin, Heidelberg, August 2016.
[DS23] Marcel Dall'Agnol and Nicholas Spooner. On the necessity of collapsing for post-quantum and quantum commitments. In 18th Conference on the Theory of Quantum Computation, Communication and Cryptography, 2023.
[Eur24] European Telecommunications Standards Institute. Impact of quantum computing on cryptographic security proofs. ETSI Technical Report TR 103 965 V1.1.1, ETSI, December 2024.
[FLM 26] Ben Foxman, Alex Lombardi, Fermi Ma, Barak Nehoran, and John Wright. Quantum lazy sampling and path recording for any group. arXiv preprint arXiv:2606.30281, 2026.
[FO99] Eiichiro Fujisaki and Tatsuaki Okamoto. Secure integration of asymmetric and symmetric encryption schemes. In Michael J. Wiener, editor, CRYPTO'99, volume 1666 of LNCS, pages 537–554. Springer, Berlin, Heidelberg, August 1999.
[GLX24] Jiangxia Ge, Heming Liao, and Rui Xue. Measure-rewind-extract: Tighter proofs of one-way to hiding and CCA security in the quantum random oracle model. In Kai-Min Chung and Yu Sasaki, editors, ASIACRYPT 2024, Part IV, volume 15487 of LNCS, pages 3–34. Springer, Singapore, December 2024.
[GSLW19] András Gilyén, Yuan Su, Guang Hao Low, and Nathan Wiebe. Quantum singular value transformation and beyond: exponential improvements for quantum matrix arithmetics. In Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing, STOC 2019, page 193–204, New York, NY, USA, 2019. Association for Computing Machinery.
[GY25] Dmitry Grinko and Satoshi Yoshida. Quantum simulation of random unitaries from clebsch-gordan transforms. arXiv preprint arXiv:2509.26623, 2025.
[HHKR25] Kathrin Hövelmanns, Andreas Hülsing, Mikhail Kudinov, and Silvia Ritsch. Cake requires programming-on the provable post-quantum security of (o) cake. Cryptology ePrint Archive, 2025.
[JRX25] Jake Januzelli, Lawrence Roy, and Jiayu Xu. Under what conditions is encrypted key exchange actually secure? In Serge Fehr and Pierre-Alain Fouque, editors, EUROCRYPT 2025, Part II, volume 15602 of LNCS, pages 451–481. Springer, Cham, May 2025.
[KSS 20] Veronika Kuchta, Amin Sakzad, Damien Stehlé, Ron Steinfeld, and Shifeng Sun. Measure-rewind-measure: Tighter quantum random oracle model proofs for one-way to hiding and CCA security. In Anne Canteaut and Yuval Ishai, editors, EUROCRYPT 2020, Part III, volume 12107 of LNCS, pages 703–728. Springer, Cham, May 2020.
[LLH24] You Lyu, Shengli Liu, and Shuai Han. Universal composable password authenticated key exchange for the post-quantum world. In Marc Joye and Gregor Leander, editors, EURO-CRYPT 2024, Part VII, volume 14657 of LNCS, pages 120–150. Springer, Cham, May 2024.
[LMQW22] Alex Lombardi, Ethan Mook, Willy Quach, and Daniel Wichs. Post-quantum insecurity from LWE. In Eike Kiltz and Vinod Vaikuntanathan, editors, Theory of Cryptography – TCC 2022, Part I, volume 13747 of Lecture Notes in Computer Science, pages 3–32. Springer, 2022.
[MR19] Daniel Mansy and Peter Rindal. Endemic oblivious transfer. In Proceedings of the 2019 ACM SIGSAC Conference on Computer and Communications Security, CCS '19, page 309–326, New York, NY, USA, 2019. Association for Computing Machinery.
[MRR20] Ian McQuoid, Mike Rosulek, and Lawrence Roy. Minimal symmetric PAKE and 1-out-of-N OT from programmable-once public functions. In Jay Ligatti, Xinming Ou, Jonathan Katz, and Giovanni Vigna, editors, ACM CCS 2020, pages 425–442. ACM Press, November 2020.
[PS96] David Pointcheval and Jacques Stern. Provably secure blind signature schemes. In Kwangjo Kim and Tsutomu Matsumoto, editors, ASIACRYPT'96, volume 1163 of LNCS, pages 252–265. Springer, Berlin, Heidelberg, November 1996.
[RX23] Lawrence Roy and Jiayu Xu. A universally composable PAKE with zero communication cost - (and why it shouldn’t be considered UC-secure). In Alexandra Boldyreva and Vladimir Kolesnikov, editors, PKC 2023, Part I, volume 13940 of LNCS, pages 714–743. Springer, Cham, May 2023.
[Unr10] Dominique Unruh. Universally composable quantum multi-party computation. In Henri Gilbert, editor, EUROCRYPT 2010, volume 6110 of LNCS, pages 486–505. Springer, Berlin, Heidelberg, May / June 2010.
[Unr14] Dominique Unruh. Revocable quantum timed-release encryption. In Phong Q. Nguyen and Elisabeth Oswald, editors, EUROCRYPT 2014, volume 8441 of LNCS, pages 129–146. Springer, Berlin, Heidelberg, May 2014.
[Unr23] Dominique Unruh. Towards compressed permutation oracles. In Jian Guo and Ron Steinfeld, editors, ASIACRYPT 2023, Part IV, volume 14441 of LNCS, pages 369–400. Springer, Singapore, December 2023.
[Ver22] Sebastian Reynaldo Verschoor. Quantum information in security protocols. 2022.
[VJW 25] Jelle Vos, Stanislaw Jarecki, Christopher A Wood, Cathie Yun, Steve Myers, and Yannick Sierra. A hybrid asymmetric password-authenticated key exchange in the random oracle model. Cryptology ePrint Archive, 2025.
[VJW26] Jelle Vos, Stanislaw Jarecki, and Christopher A. Wood. Hybrid post-quantum password authenticated key exchange. https://datatracker.ietf.org/doc/draft-vos-cfrg-pqpake/, 2026. Internet-Draft, IETF.
[Xu26] Jiayu Xu. The most efficient protocol for PAKE: What exact stuff do you need to hash at the end? Cryptology ePrint Archive, Paper 2026/1331, 2026.
[YZ21] Takashi Yamakawa and Mark Zhandry. Classical vs quantum random oracles. In Anne Canteaut and François-Xavier Standaert, editors, EUROCRYPT 2021, Part II, volume 12697 of LNCS, pages 568–597. Springer, Cham, October 2021.
[YZ22] Takashi Yamakawa and Mark Zhandry. Verifiable quantum advantage without structure. In 63rd FOCS, pages 69–74. IEEE Computer Society Press, October / November 2022.
[Zha19] Mark Zhandry. How to record quantum queries, and applications to quantum indifferentiability. In Alexandra Boldyreva and Daniele Micciancio, editors, CRYPTO 2019, Part II, volume 11693 of LNCS, pages 239–268. Springer, Cham, August 2019.
A Generalizing the attack
For the sake of clarity and concreteness, Theorem 4.4 shows an attack against a specific instantiation of ideal cipher-based OEKE. However, our attack is quite general, and applies mutatis mutandis to all known variants of EKE and OEKE.
Figure 4: A typical instantiation of EKE using a KEM KEM, public key ideal cipher and ciphertext ideal cipher .
EKE. Encrypted Key Exchange (shown in Figure 4) uses the same first message as OEKE, but instead of sending an authentication tag in the second message, the KEM ciphertext is also encrypted under the password using an ideal cipher. Since our attack only requires the environment to send a first message, it also works against EKE: the only difference is that must now query to obtain the KEM ciphertext for key derivation.
2-Feistel/Tempo. Modern variants of OEKE do not use a full ideal cipher: the most popular alternative is a 2-Feistel network (also known as a Programmable Once Public Function) [MRR20, JRX25, ABJ25]. Let , be random oracles, where is the space of public keys and an abelian group with operation , and is the space of passwords ( ; one can take for simplicity). We define the 2-Feistel based encryption and decryption algorithms as follows.
• , where , , , .
• , where , , .
One can easily check that (w is recovered by the computation of as well).
The 2-Feistel is a more efficient alternative to an ideal cipher, since in general one needs eight rounds of a Feistel network to be indifferentiable from an IC [DS16]. Conversely, the 2-Feistel is a weaker primitive than an IC:
-
Encryption now uses additional randomness so there are many possible encryptions of pk under a given pw;
-
2F ciphertexts are partially malleable: given a ciphertext that is an encryption of pk under pw, an adversary can produce that is an encryption of under pw for adversarially chosen .
These differences make the security proof more complex but still possible (see [JRX25, ABJ25] for details). The Tempo protocol [ABJ26] instantiates the above 2-Feistel OEKE template to use ML-KEM. The only difference is it splits public keys into two pieces via an efficient and invertible procedure
Split, where is uniformly random when pk is honestly generated. The protocol initiator 2-Feistel encrypts t only, sending in the clear; the respondent decrypts and applies Split to get a public key. Additionally, the security argument relies on a KeyGen2 function that generates (sk, pk) from : when is chosen uniformly KeyGen2( ) is guaranteed to be distributed identically to an honest key pair.
Theorem A.1. Let be an OEKE protocol instantiated with (1) any KEM with negligible correctness error (Definition 3.7), (2) the 2-Feistel-based encryption and decryption algorithms defined above, or the Tempo algorithms, (3) any key derivation function , and (4) any tag function . Then does not post-quantum UC-realize .
Proof. Consider the following environment interacting with 2-Feistel OEKE;
Environment
-
Sample and send (NewSession, sid, , , ) to for some nonce sid.
-
Prepare the normalized state
- Query on registers X, C into a new register (through A) to compute
- Query on registers X, into a new register (through A) to compute
-
Measure , to get and leftover state .
-
For each , compute
-
Let and apply the measurement to .
-
Output 1 if M accepts: otherwise output 0.
The above works exactly the same as for ideal cipher OEKE: the key point is that given a candidate password pw, decryption of under pw not only recovers the public key but also the randomness w used to encrypt, so the post-measurement state can be computed. Put another way, the computation of the first message is classically reversible given pw. is modified in the same way: since the only difference between and through Step 6 is how public keys are sampled, we can again reduce to public key uniformity.
The case of Tempo is analogous:
Environment
-
Sample and send (NewSession, sid, , , ) to for some nonce sid.
-
Prepare the normalized state
- Query on registers X, W, C into a new register (through A) to compute
- Query on registers X, W, into a new register (through A) to compute
-
Measure to get and leftover state .
-
For each , compute
-
Let and apply the measurement to .
-
Output 1 if M accepts: otherwise output 0.
In , we still prepare a superposition over all , but instead compute via . Thus we rely on the assumption that when is chosen uniformly, an efficient QPT adversary cannot distinguish (t \leftarrow \mathcal{PK}_1, \zeta \in \{0,1\}^\ell' and \zeta \in \{0,1\}^\ell' with as above. This is implied by the UNI - PK assumption in [ABJ26], and is necessary for the post-quantum security of Tempo by the same logic as the necessity of public key uniformity for OEKE: otherwise an adversary can mount an offline attack by decrypting the first message under many candidate passwords.
B Modified Measure-and-Reprogram
We sketch why can be given access to in Theorem 3.5. First we introduce some notation from [DFM20]. Let be defined as 's state right before making its st query—with the special case denoting the final output state— to which we add the superscript when all previous queries have been answered using . Next, we use to denote the unitary that brings from to , using from the -th query on. Finally, we use the shorthand . The measure-and-reprogram proof starts with the following lemma:
Lemma B.1. Let be a -query oracle quantum algorithm. Then, for any function , any , and any projector , it holds that
Here the expectation is over a random pair . The projector will function as later on. Notice that the expectation is only over the randomness of the measure-and-reprogram simulator, and it holds for any fixed . Therefore the same lemma holds for a projector that gets access to the reprogrammed random oracle.
The next lemma is proven by induction using the previous lemma as a base case:
Lemma B.2. Let be a -query oracle quantum algorithm. Then, for any function , any , , and any projector , it holds that
The notation required to define formally is quite complex so we omit it, only noting that is the simulator that chooses queries of to to measure and reprogram. The key observation is that the lemma once again holds for any fixed so it also holds for a projector .
Finally, we come to the proof of [DFM20, Theorem 6], the statement of which is the same as Theorem 3.5 but V is not given oracle access. The proof proceeds by taking the expectation of Lemma B.2 over random
and noting that after a change of variables the left hand side equals
If we repeat the argument with our new projector the same change of variables occurs: the left hand side becomes
Note that here it is important that we give access to the reprogrammed , not the original : otherwise and would be accessing different oracles. This makes intuitive sense since is applied after the oracle is reprogrammed. With that the proof of the main measure-and-reprogram theorem goes through the same way.