Preprint
Article

This version is not peer-reviewed.

MTSF—Market-Theoretic Security Framework: A Unified Paradigm for the Art of Proving and Disproving Security

Submitted:

01 April 2026

Posted:

03 April 2026

You are already at the latest version

Abstract
Cryptographic security proofs are the invisible backbone of modern digital systems, yet they remain fragmented across multiple paradigms—game-based proofs, Universal Composability (UC), formal verification, and ad hoc insecurity arguments—each with its own language, assumptions, and limitations. This article introduces the \textbf{Market-Theoretic Security Framework (MTSF)}, a unified paradigm that reinterprets all security proofs as economic markets. In this view, the defender acts as a seller offering \emph{security goods} (such as confidentiality or unforgeability), while the adversary acts as a buyer bidding computational resources to break them. Security emerges naturally as \emph{market equilibrium}, where no efficient adversary can afford to win, while insecurity is characterized as \emph{market collapse}, where attacks succeed at negligible cost. For cryptographers, MTSF provides a rigorous and expressive framework that unifies four major proof paradigms into a single formal language. It introduces key technical innovations such as the \textbf{extended difference lemma} for handling multiple simultaneous failure events, \textbf{bidding-based reductions} that explicitly model adversarial strategies, a \textbf{dual methodology that treats proofs and disproofs symmetrically within the same structure}, and a \textbf{session pinging mechanism} for unbounded session verification. The framework seamlessly extends to classical and post-quantum primitives, real-world protocols (including TLS~1.3 and Signal), and even quantum-adversarial settings, while preserving quantitative security bounds and composability guarantees.MTSF offers an intuitive, accessible, and powerful meta model: security is like a marketplace where attackers try to ``buy'' a break, and defenders ensure the price is prohibitively high. Each proof becomes a sequence of small price adjustments, and each attack corresponds to a failed or successful bid. By combining mathematical rigor with economic intuition, MTSF transforms security proofs from opaque technical artifacts into transparent, auditable, and universally understandable arguments, enabling both experts and practitioners to reason about security with clarity and confidence.
Keywords: 
;  ;  ;  ;  ;  ;  ;  ;  ;  
Preprints 206168 i001Preprints 206168 i002Preprints 206168 i003
Figure 1. MTSF at a Glance. The complete framework on one page: core equation (top), four pillars (row 2), case study scoreboard (row 3), universal dictionary (row 4), and proof pipeline (bottom). Pin this page to your wall.
Figure 1. MTSF at a Glance. The complete framework on one page: core equation (top), four pillars (row 2), case study scoreboard (row 3), universal dictionary (row 4), and proof pipeline (bottom). Pin this page to your wall.
Preprints 206168 g001
Preprints 206168 i004
Figure 2. Visual roadmap of the MTSF document. The theory layer (top) builds the market language; the primitives layer (middle) tests it on cryptographic building blocks; the protocol and quantum layer (bottom) deploys it on real-world systems. Arrows show logical dependencies.
Figure 2. Visual roadmap of the MTSF document. The theory layer (top) builds the market language; the primitives layer (middle) tests it on cryptographic building blocks; the protocol and quantum layer (bottom) deploys it on real-world systems. Arrows show logical dependencies.
Preprints 206168 g002

1. Introduction

Every digital system we trust—from the padlock in a browser to a hospital’s encrypted records, from a signed software update to a government identity card—rests on a hidden mathematical foundation: cryptographic security proofs. These proofs are the silent guardians of modern civilisation’s digital infrastructure, ensuring that encryption remains unbreakable, signatures remain unforgeable, and protocols remain resilient, no matter how powerful or resourceful the adversary. Yet despite their central role, today’s security proofs are fragmented across four disconnected languages that specialists in one paradigm often cannot easily interpret in another: game-based sequences of experiments, Universal Composability (UC) ideal-world simulations, formal symbolic verification tools such as ProVerif and Tamarin, and ad hoc insecurity demonstrations for flawed constructions. A cryptographer proving TLS secure employs different notation, definitions, and reasoning from one proving a post-quantum signature secure—even though both ultimately address the same fundamental question: can an efficient adversary succeed? The Market-Theoretic Security Framework (MTSF) introduced in this article answers this question through a single unifying perspective grounded in economics: every security proof is an auction, every adversary is a buyer, every security property is a tradable good, and security holds precisely when no buyer can afford to win. This article develops MTSF rigorously, proves its equivalence to all four paradigms, and demonstrates its expressive power across eighteen case studies spanning primitives, protocols, and quantum-aware security models.
Preprints 206168 i005Preprints 206168 i006

1.1. The Problem: Fragmented Security Paradigms

Cryptographic security analysis is conducted through four largely disconnected paradigms, each with distinct strengths and limitations that prevent any single approach from being fully satisfactory.

Problem 1: Game-based proofs are isolated and single-failure.

Game-based proofs [1,2] bound the adversary’s advantage through a sequence of game hops  B 0 , B 1 , , B q . The classical difference lemma [1] bounds each hop by a single failure event F:
| Pr B k = 1 Pr B k + 1 = 1 | Pr F .
In practice, however, many proof steps involve multiple simultaneous failures. For example, in a digital signature proof, a single game hop may need to eliminate nonce collisions, hash collisions, and public-key recovery failures all at once. The classical lemma forces practitioners to split such hops into multiple games, inflating proofs and loosening bounds unnecessarily. Furthermore, game-based proofs are isolated: each theorem is a standalone argument with no built-in mechanism for combining security guarantees when protocols are composed.
Preprints 206168 i007Preprints 206168 i008
Figure 3. Feature comparison: game-based proofs, UC/GUC, formal verification, and MTSF. Green = full support; yellow = partial support; red = not supported. MTSF is the only framework achieving all eight capabilities.
Figure 3. Feature comparison: game-based proofs, UC/GUC, formal verification, and MTSF. Green = full support; yellow = partial support; red = not supported. MTSF is the only framework achieving all eight capabilities.
Preprints 206168 g003

Problem 2: UC/GUC provide composition but lack concrete bounds.

The UC framework [3] guarantees that a secure protocol remains secure when composed with arbitrary other protocols running concurrently—the gold standard for real-world deployability. However, UC proofs do not produce numerical advantage bounds. A UC proof says “the protocol is secure” but not “the adversary’s advantage is at most ϵ ”. The GUC framework [4] with CNF session checking [5] adds session correctness verification but still lacks the quantitative output needed for concrete parameter selection.
Preprints 206168 i009Preprints 206168 i010

Problem 3: Formal verification tools lack quantitative output and human interpretability.

ProVerif [6] and Tamarin [7] check whether a protocol is secure symbolically and for unbounded sessions, but produce a binary pass/fail output with no numerical bounds. CryptoVerif [8] closes this gap partially with machine-checked game-based proofs, but requires significant manual guidance and does not natively support the UC/GUC framework. More importantly, none of these tools produce human-readable arguments that practitioners can understand, audit, and reason about without specialist training.
Preprints 206168 i011

Problem 4: No unified insecurity analysis.

When a primitive is insecure (e.g., textbook RSA has a free homomorphism attack) or a protocol is insecure (e.g., Needham–Schroeder [9] is vulnerable to Lowe’s MITM [10]), this is demonstrated ad hoc using bespoke arguments. There is no common framework that handles both security proofs and insecurity demonstrations with the same language and tools. This asymmetry means that protocol designers cannot use the same methodology to “test” their protocol against known attack classes before submitting a full proof.
Preprints 206168 i012Preprints 206168 i013

Problem 5: Protocol-level security goods lack a unified market formulation.

Existing game-based frameworks treat entity authentication, mutual authentication, session-key secrecy, and session correctness as separate definitions with separate games and separate proofs. There is no unified treatment embedding all four as simultaneous market goods offered by a single seller, with the adversary bidding against all of them in parallel. This separation makes it hard to see which property fails first under a given attack and how the failures interact.

1.1.0.6. Problem 6: No framework addresses the QROM, unbounded sessions, and CNF correctness simultaneously.

Post-quantum security requires proofs in the Quantum Random Oracle Model (QROM), where adversaries can query hash functions in superposition. Classical ROM proofs fail in this setting. Simultaneously, real deployments run for unbounded numbers of sessions (not the polynomial bound assumed by game-based proofs). And CNF session correctness must be verified across all sessions. No existing framework addresses all three requirements—QROM, unbounded, and CNF—within a single proof methodology.
Figure 4. The unification problem: four disconnected security paradigms converge into MTSF’s single market language. Game-based proofs become price adjustments, UC becomes market regulation, formal verification becomes stress testing, and ad hoc insecurity becomes market collapse.
Figure 4. The unification problem: four disconnected security paradigms converge into MTSF’s single market language. Game-based proofs become price adjustments, UC becomes market regulation, formal verification becomes stress testing, and ad hoc insecurity becomes market collapse.
Preprints 206168 g004

1.2. What MTSF Provides

Preprints 206168 i014Preprints 206168 i015

1.3. Key Technical Innovations

Extended difference lemma.

The classical difference lemma bounds a single failure event. Our extension (Lemma 2) handles m simultaneous events:
| Pr B k = 1 Pr B k + 1 = 1 | Pr i = 1 m F i i = 1 m Pr F i i < j Pr F i F j +
with inclusion-exclusion giving a tight upper bound when failure events are correlated. We apply this in every case study: ECDSA ( F nonce F hash F fork F extract ), ML-DSA ( F rejection F norm ), four-party protocols ( i = 1 4 F sig , i ), and Telegram ( F salt F entropy F cnf F ping ).

1.3.0.8. Session pinging for unbounded security.

Bounded game-based proofs say “secure for q sessions” but real systems run for millions of sessions over years. We define structural distinctness (Theorem 14) and the session ping function (Theorem 15), and prove by induction (Theorem 3) that if the base case is secure and all pings pass, then every session is secure—providing unbounded coverage with quantitative bounds. This bridges game-based proofs (bounded, quantitative) and formal verification (unbounded, qualitative).

1.3.0.9. Dual proof/disproof methodology.

MTSF characterises insecurity as market collapse: Ask = 1 means any adversary wins for free. Secure schemes have Ask negl . The same bidding-round machinery proves both. For the Needham–Schroeder protocol, we show the masquerade bid succeeds with probability 1 (no cryptographic break needed). For textbook RSA, the homomorphism bid succeeds in O ( 1 ) time. For MTProto, the salt extraction bid quasi-collapses the market to Ask 1 . These are not ad hoc observations—they are formal theorems within MTSF.

1.4. Article Organisation

Section 2: notation, semantic security, four paradigms with figures. Section 3: MTSF with extended difference lemma. Section 4: CNF session verification algorithm and easy manual worksheet. Section 5: session pinging for unbounded security. Section 6: thirteen unified novelties. Section 8: authentication, mutual authentication, session-key secrecy, and CNF checking games as market goods. Section 9: ECDSA, ML-KEM, ML-DSA (secure) and textbook RSA (insecure); extended primitives HMAC, AEAD, SLH-DSA, FN-DSA. Section 10: AES block-cipher market with differential, rotational, linear, and related-key bids. Section 11: Keccak/SHA-3 hash-function market. Section 12: Grain-128a stream-cipher market. Section 13: ISO/IEC 11770-3 protocol family (two-, three-, and four-party), PKI, Needham–Schroeder insecurity proof, Signal Protocol (X3DH + Double Ratchet) security proof and X3DH-noOPK insecurity proof, TLS 1.3 (1-RTT equilibrium proof, 0-RTT replay collapse, downgrade attack collapse, CNF session verification and unbounded ping), and Telegram MTProto disproof (salt extraction) and RMTP proof (HMAC-bound salts). Section 14: QROM-based FO-transform KEM with full protocol description, sequence diagram, and six-bidding-round proof. Section 15: BB84 Quantum Key Distribution as a full quantum market dynamics case study (quantum seller, quantum buyer, information-theoretic security via no-cloning and QLHL). Section 16: TLS 1.3 + Signal multi-protocol composition network case study (market merger theorem instantiation, resource competition analysis, network CNF verification). Section 19: comprehensive related work in ten subsections. Section 20: conclusion with seventeen contributions, lessons learned, and seven future directions (with initial formalisations of quantum market dynamics and multi-protocol composition networks). Appendix A: expanded MTSF correspondence table (79 entries). Appendix B: comprehensive bid taxonomy with QROM, Telegram, BB84, and composition bids.
Figure 5. Decision flowchart: “Which MTSF tool do I need?” Start with your cryptographic object, follow the arrows, and arrive at the correct MTSF section and proof technique.

2. Preliminaries and Background

2.1. Notation

Preprints 206168 i016Preprints 206168 i017

2.2. Semantic Security and Core Definitions

Preprints 206168 i018Preprints 206168 i019
Definition 1 
(Semantic Security [11]). Encryption Π issemantically secureif for every PPT  A , whatever  A computes from ciphertext  c = Enc ( K , m ) , a PPT simulator  S can compute from the message length  | m | alone: | Pr f A ( c ) Pr f S ( | m | ) | negl ( λ ) . In market terms: the ciphertext is a worthless good—the buyer (adversary) gains zero information from purchasing it.
Preprints 206168 i020
Definition 2 
(IND-CPA). A submits  m 0 , m 1 ; receives  Enc ( K , m b ) for random b; guesses b. Secure if Adv IND - CPA negl ( λ ) .
Preprints 206168 i021
Definition 3 
(IND-CCA2). As IND-CPA but A additionally gets a decryption oracle (except on the challenge). Secure if Adv IND - CCA 2 negl ( λ ) .
Preprints 206168 i022
Definition 4 
(EUF-CMA). A gets a signing oracle; must produce a valid signature on anewmessage. Secure if Pr forge negl ( λ ) .
Preprints 206168 i023
Definition 5 
(SUF-CMA). Strong unforgeability: A cannot produceanynew valid (message, signature) pair, even for previously signed messages with a different signature.
Preprints 206168 i024
Definition 6 
(INT-CTXT (Ciphertext Integrity)) For an authenticated encryption scheme AE , the adversary A has access to an encryption oracle and wins if it produces any ciphertext c * that decrypts successfully but was never output by the encryption oracle. Secure if Pr INT - CTXT forge negl ( λ ) .
Preprints 206168 i025Preprints 206168 i026
Definition 7 
(PRF Security). A keyed function F K : { 0 , 1 } n { 0 , 1 } m is asecure PRFif no PPT distinguisher tells F K ( · ) from a truly random function R ( · ) :
Adv F PRF ( A ) = Pr [ A F K ( · ) = 1 ] Pr [ A R ( · ) = 1 ] negl ( λ ) .
Preprints 206168 i027

2.3. Bidding-Round Proofs in the Random Oracle Model

Preprints 206168 i028
A bidding round  B k is a formal experiment between a challenger  C and adversary  A . The challenger sets up keys, answers oracle queries, and presents challenges; the adversary tries to win (guess correctly, produce a forgery, etc.). The bidding-round sequence technique [1,2] transforms  B 0 (the real security experiment) into  B q (an ideal experiment where winning is impossible):
Adv A sec ( λ ) k = 0 q 1 | Pr B k ( A ) = 1 Pr B k + 1 ( A ) = 1 | price adjustment Δ Price k .
Preprints 206168 i029
Lemma 1 
(Classical Difference Lemma [1]). If  B k and  B k + 1 are identical except when a single failure event F occurs, then: | Pr B k ( A ) = 1 Pr B k + 1 ( A ) = 1 | Pr F in B k .
Preprints 206168 i030
In the Random Oracle Model (ROM) [12], hash functions are modelled as perfectly random functions accessible only via queries. This idealisation enables clean reductions.
Preprints 206168 i031
Figure 6. Bidding-round proof architecture. The seller (challenger) and buyer (adversary) interact via oracles. The bidding-round chain B 0 B q bounds the total advantage. In MTSF, each Δ Price k is a “price adjustment” in the security market.
Figure 6. Bidding-round proof architecture. The seller (challenger) and buyer (adversary) interact via oracles. The bidding-round chain B 0 B q bounds the total advantage. In MTSF, each Δ Price k is a “price adjustment” in the security market.
Preprints 206168 g005

2.4. Universal Composability (UC) Framework

The UC framework [3] guarantees that a protocol secure in isolation remains secure under arbitrary concurrent composition. A protocol  π UC-realises an ideal functionality  F if for every PPT adversary  A there exists a PPT simulator  S such that no PPT environment  Z can distinguish:
Real π , A , Z c Ideal F , S , Z .
Preprints 206168 i032Preprints 206168 i033
Figure 7. UC framework. The environment Z interacts with either the real world (protocol π with adversary A ) or the ideal world (trusted functionality F with simulator S ). UC security: Z cannot tell which world it observes.
Figure 7. UC framework. The environment Z interacts with either the real world (protocol π with adversary A ) or the ideal world (trusted functionality F with simulator S ). UC security: Z cannot tell which world it observes.
Preprints 206168 g006

2.5. GUC and CNF Session Correctness

Preprints 206168 i034
The GUC framework [4] removes the CRS assumption via shared functionalities. Camenisch et al. [5] encode each session as a CNF formula  φ sid = j C j , where satisfiability under the honest trace implies session correctness.
Preprints 206168 i035

2.6. Formal Verification

Preprints 206168 i036
ProVerif [6] and Tamarin [7] provide automated, unbounded symbolic analysis. They check secrecy, authentication, replay/masquerade/MITM resistance. Limitation: no concrete advantage bounds.
Preprints 206168 i037Preprints 206168 i038

3. The Market-Theoretic Security Framework

3.1. Security Market Model

Definition 8 
(Security Market). M = ( Seller , { Buyer i } i [ n ] , G , Price ) : seller (challenger), buyers (adversaries), security goods catalogue G = { g 1 , , g k } (e.g., IND-CPA, EUF-CMA, key secrecy), price function Price : G × N [ 0 , 1 ] .
Preprints 206168 i039
Definition 9 
(Bid). Bid i = ( g j , T i , ϵ i ) : buyer i targets good  g j with budget  T i poly ( λ ) and target advantage  ϵ i . Succeeds if advantage ϵ i within T i steps.
Preprints 206168 i040Preprints 206168 i041
Definition 10 
(Quoted Price). Thequoted price QPrice 0 ( g j ) is the seller’s initial listing price for security good  g j in bidding round  B 0 . It equals the adversary’s raw advantage in the unmodified real-world game:
QPrice 0 ( g j ) = Adv A g j ( λ ) = Ask 0 ( g j , λ ) .
The quoted price is anunknown but boundedquantity: it is the number the entire proof exists to bound. Subsequent bidding rounds B 1 , B 2 , , B q decompose QPrice 0 into a telescoping sum of price adjustments:
QPrice 0 = Δ Price 0 bid 1 + Δ Price 1 bid 2 + + Δ Price q 1 bid q + Pr [ B q = 1 ] ideal residual .
Security holds when QPrice 0 negl ( λ ) ; insecurity holds when QPrice 0 = Ω ( 1 ) .
Preprints 206168 i042
Figure 8. The quoted price QPrice 0 as a bar decomposed into bidding-round contributions. Each bidding round “peels off” one piece of the quoted price by bounding one attack vector. If every piece is negligible and the residual is zero, the quoted price is negligible—the market is in equilibrium.
Figure 8. The quoted price QPrice 0 as a bar decomposed into bidding-round contributions. Each bidding round “peels off” one piece of the quoted price by bounding one attack vector. If every piece is negligible and the residual is zero, the quoted price is negligible—the market is in equilibrium.
Preprints 206168 g007
Figure 9. MTSF market: seller offers security goods; buyers bid computation; equilibrium = security.
Figure 9. MTSF market: seller offers security goods; buyers bid computation; equilibrium = security.
Preprints 206168 g008
Definition 11 
(Ask Price & Equilibrium). Ask ( g j , λ ) = max A PPT Adv A g j ( λ ) . The market is inequilibriumif Ask ( g j , λ ) negl ( λ ) : no PPT buyer profits. The market hascollapsedif Ask ( g j , λ ) = Ω ( 1 ) : some buyer profits cheaply.
Preprints 206168 i043Preprints 206168 i595
Figure 10. Individual seller–buyer interaction: the four-phase security game as a market transaction.
Figure 10. Individual seller–buyer interaction: the four-phase security game as a market transaction.
Preprints 206168 g009
Theorem 1 
(Equilibrium ⇔ Security; Collapse ⇔ Insecurity). Π is secure for  g j iff  M is in equilibrium. Π is insecure iff  M has collapsed.
Preprints 206168 i044Preprints 206168 i045Preprints 206168 i046
Figure 11. The Security Thermometer: visualising ask prices on a scale from perfectly secure (bottom, green) to completely broken (top, red). Real-world case studies are plotted along the scale, with everyday probability comparisons on the right.
Figure 11. The Security Thermometer: visualising ask prices on a scale from perfectly secure (bottom, green) to completely broken (top, red). Real-world case studies are plotted along the scale, with everyday probability comparisons on the right.
Preprints 206168 g010

3.2. Game Hops as Price Adjustments

Definition 12 
(Price Adjustment). Δ Price k = | Pr B k ( A ) = 1 Pr B k + 1 ( A ) = 1 | . Cumulative cost: Cost ( A ) = k = 0 q 1 Δ Price k .
Preprints 206168 i047Preprints 206168 i048
Figure 12. Game hops as a descending staircase: each step reduces the attacker’s advantage by eliminating one attack vector. The total advantage (height of the staircase) is the sum of all step sizes. If every step is negligibly small, the scheme is secure.
Figure 12. Game hops as a descending staircase: each step reduces the attacker’s advantage by eliminating one attack vector. The total advantage (height of the staircase) is the sum of all step sizes. If every step is negligibly small, the scheme is secure.
Preprints 206168 g011
Preprints 206168 i049Preprints 206168 i050

3.3. The Extended Difference Lemma

The classical difference lemma (Lemma 1) handles one failure per hop. In practice, a single game transition often involves multiple simultaneous failures. We extend the lemma:
Lemma 2 
(Extended Difference Lemma—Multiple Failures).
Preprints 206168 i051
Let  B k and  B k + 1 be identical unless at least one of  F 1 , F 2 , , F m occurs. Then:
| Pr B k ( A ) = 1 Pr B k + 1 ( A ) = 1 | Pr F 1 F 2 F m .
By theunion bound: Pr i F i i Pr F i . When failures are correlated, theinclusion-exclusionbound is tighter:
Pr i F i = i Pr F i i < j Pr F i F j + + ( 1 ) m + 1 Pr i F i .
Proof. 
B k and B k + 1 agree on  i F i ¯ . Hence:
| Pr B k = 1 Pr B k + 1 = 1 | = | Pr B k = 1 F i + Pr B k = 1 F i ¯ Pr B k + 1 = 1 F i Pr B k + 1 = 1 F i ¯ | = | Pr B k = 1 F i Pr B k + 1 = 1 F i | Pr i F i .
   □
Preprints 206168 i052Preprints 206168 i053Preprints 206168 i054
Figure 13. Venn diagram of simultaneous failure events in the extended difference lemma. The union bound adds all circles; inclusion-exclusion subtracts the overlaps for a tighter bound. Each failure event corresponds to a specific “bad thing” that could happen during a game hop.
Figure 13. Venn diagram of simultaneous failure events in the extended difference lemma. The union bound adds all circles; inclusion-exclusion subtracts the overlaps for a tighter bound. Each failure event corresponds to a specific “bad thing” that could happen during a game hop.
Preprints 206168 g012
Figure 14. Before/After: the same ECDSA proof written in classical game-based style (left) vs. MTSF style (right). The mathematical content is identical; MTSF adds named bids, composition, session auditing, and unbounded coverage.
Figure 14. Before/After: the same ECDSA proof written in classical game-based style (left) vs. MTSF style (right). The mathematical content is identical; MTSF adds named bids, composition, session auditing, and unbounded coverage.
Preprints 206168 g013

3.4. UC as Market Regulation; GUC as Shared Infrastructure

The UC environment  Z is recast as a market regulator: an entity monitoring all concurrent trades (protocol messages) and capable of intervening at any point. UC-security: the real market (protocol execution) is computationally indistinguishable from the ideal market (ideal functionality) from any regulator’s perspective— Real π , A , Z c Ideal F , S , Z . The simulator S is the market arbitrageur: it bridges the real and ideal worlds by simulating the real protocol’s market behaviour using only the ideal functionality’s interface.
The UC composition theorem is a market merger theorem: two equilibrium markets, when merged for concurrent execution, remain in equilibrium. GUC shared functionalities (PKI, common reference strings) are market infrastructure: public goods accessible to all buyers and sellers. In MTSF, the CNF session formula plays the role of a GUC correctness requirement: each session passes the audit iff all clauses are satisfied, and a failed clause identifies which market good has been compromised.
Preprints 206168 i055Preprints 206168 i056Preprints 206168 i057Preprints 206168 i058
Figure 15. Systematic translation from UC/GUC to MTSF. Every UC concept (left) maps to an MTSF counterpart (right) that preserves all guarantees and adds quantitative bounds. The translation is lossless—MTSF strictly extends UC/GUC.
Figure 15. Systematic translation from UC/GUC to MTSF. Every UC concept (left) maps to an MTSF counterpart (right) that preserves all guarantees and adds quantitative bounds. The translation is lossless—MTSF strictly extends UC/GUC.
Preprints 206168 g014

3.5. Formal Verification as Market Stress Testing

Model checking (ProVerif [6], Tamarin [7]) is recast as regulatory stress testing: the regulator enumerates all possible buyer strategies (adversarial protocol traces τ ) and checks τ Traces ( M ) : τ φ g j for all goods g j . In MTSF notation: replay attack= stale bid (old session transcript at discounted price; blocked by SID clause); masquerade attack= identity fraud (claiming to be a different party; blocked by signature/certificate clause); MITM attack= market manipulation (intercepting and altering both sides; blocked by SID-binding and identity-binding clauses). Formal verification provides exhaustive coverage for all traces; MTSF’s session pinging (Section 5) provides quantitative advantage bounds for all sessions—together bridging the qualitative-unbounded and quantitative-bounded paradigms.
Preprints 206168 i059Preprints 206168 i060Preprints 206168 i061Preprints 206168 i062

4. CNF Session Verification in MTSF

4.1. Why CNF?

Conjunctive Normal Form is natural for encoding session correctness because: (1) each clause corresponds to one security check—adding a check means adding a clause; (2) the conjunction semantics ensures all checks must pass; (3) given an execution trace, checking satisfiability is linear in the formula size; (4) an unsatisfied clause directly identifies which security property was violated.
Preprints 206168 i063Preprints 206168 i064
Figure 16. CNF session verification as airport security: five sequential checkpoints (SID, freshness, signatures, MACs, consistency) each modelled as a CNF clause. A session “boards the plane” (is accepted) only if ALL checks pass. Any single failure rejects the session and identifies which check failed.
Figure 16. CNF session verification as airport security: five sequential checkpoints (SID, freshness, signatures, MACs, consistency) each modelled as a CNF clause. A session “boards the plane” (is accepted) only if ALL checks pass. Any single failure rejects the session and identifies which check failed.
Preprints 206168 g015

4.2. Session-CNF Construction

Definition 13 
(MTSF Session-CNF). Let  Session i = ( sid i , pid i 1 , , pid i p , trans i ) denote the i-th session with p parties and transcript  trans i . TheMTSF session-CNFis:
φ i = φ i sid SID binding φ i fresh freshness φ i sig signature binding φ i mac MAC binding φ i consist consistency .
Figure 17. Structure of the MTSF session-CNF φ i : five components ANDed together. A session is correct iff the entire formula is satisfiable under the honest trace.
Figure 17. Structure of the MTSF session-CNF φ i : five components ANDed together. A session is correct iff the entire formula is satisfiable under the honest trace.
Preprints 206168 g016

SID Clauses.

Every message must carry the correct session identifier:
φ i sid = j = 1 x sid i , j ¬ x other , j ,
where  x sid i , j is true if message j carries  sid i , and  x other , j is true if it carries a different SID.

4.2.0.11. Freshness Clauses.

All nonces must be fresh and distinct:
φ i fresh = k = 1 r x n k , fresh k k ¬ x n k = n k .

4.2.0.12. Signature-Binding Clauses.

Every signature must verify or the session aborts:
φ i sig = j x Vrfy ( pk j , m j sid i , σ j ) = 1 x abort .

4.2.0.13. MAC-Binding Clauses.

Every MAC must verify or the session aborts:
φ i mac = j x Mac . Vrfy ( K j , m j sid i , τ j ) = 1 x abort .

Consistency Clauses.

Protocol-specific invariants (message ordering, state-machine compliance):
φ i consist = j = 1 c C j protocol .
Preprints 206168 i065
Theorem 2 
(Session Correctness via CNF). Session i is correct iff  φ i is satisfiable under the honest trace  trans i .
Proof. 
Soundness. If  φ i is satisfiable: SID clauses ⇒ correct binding; freshness ⇒ unique nonces; sig/MAC ⇒ all verifications pass; consistency ⇒ invariants hold. This is session correctness.
Completeness. If the session is correct, the honest trace provides a satisfying assignment.    □
Proposition 1 
(Adversarial CNF Unsatisfiability). If all underlying primitives are secure (markets in equilibrium), then:
Pr A produces a satisfying assignment for φ i under a dishonest trace negl ( λ ) .
Proof. 
A satisfying dishonest assignment requires at least one of: (1) signature forgery (breaks EUF-CMA equilibrium); (2) MAC forgery (breaks SUF-CMA); (3) nonce prediction (breaks freshness); (4) SID reuse (breaks binding). Each contradicts the equilibrium assumption.    □

4.3. CNF Verification Algorithm

The session-CNF φ sess is a conjunction of atomic Boolean clauses. Verifying it manually is hard because (i) the number of clauses can be large, (ii) clause ordering matters for cascading failures, and (iii) cryptographic verification steps are interleaved with structural ones. Algorithm 1 provides the canonical machine-checkable procedure. The MTSF CNF Truth-Table Worksheet below gives a four-step manual recipe.
Algorithm 1:MTSF-CNF Session Verification (Canonical, 5-Phase)
Require: 
Transcript  trans i , session ID  sid i , public keys  { pk j } , shared/MAC keys  { K j }
Ensure: 
Accept or Reject
Ensure: 
Phase 1 – SID Binding Check
1:
for each message m j trans i  do
2:
    if  ExtractSID ( m j ) sid i thenreturn Reject ▹ Clause φ sid fails
3:
    end if
4:
end for
4:
Phase 2 – Nonce Freshness & Disjointness
5:
N
6:
for each nonce n k trans i  do
7:
    if  n k N thenreturn Reject ▹ Clause φ fresh fails
8:
    end if
9:
     N N { n k }
10:
end for
10:
Phase 3 – Signature & MAC Verification
11:
for each ( σ j , pk j , data j ) trans i  do
12:
    if  Vrfy ( pk j , data j , σ j ) 1 thenreturn Reject ▹ Clause φ j sig fails
13:
    end if
14:
end for
15:
for each ( τ j , K j , macData j ) trans i  do
16:
    if  Mac . Vrfy ( K j , macData j , τ j ) 1 thenreturn Reject ▹ Clause φ j mac fails
17:
    end if
18:
end for
18:
Phase 4 – Message Ordering & Consistency
19:
if CheckOrdering ( trans i ) 1 thenreturn Reject ▹ Clause φ consist fails
20:
end if
20:
Phase 5 – Ping (Unbounded Freshness)
21:
if i > 1 and Ping ( Session i 1 , Session i ) 1 thenreturn Reject ▹ Unbounded bid fails
22:
end if
23:
return Accept
Preprints 206168 i066Preprints 206168 i067

5. Unbounded Verification via Session Pinging

Session pinging is one of the two core technical contributions of MTSF (the other being CNF session verification, Section 4). This section develops the full theory: motivation, formal mechanism, the main induction theorem with a detailed proof, a quantitative advantage-accumulation analysis, the interaction between pinging and CNF checking, failure-mode taxonomy, and a comparison with symbolic unbounded verification tools.

5.1. Why Bounded Is Not Enough

A protocol correct for sessions  1 , , 1000 may fail at session 1001 if the randomness generator cycles. Game-based proofs are inherently bounded (polynomial in  λ ). Formal verification handles unbounded sessions symbolically but without concrete bounds. Session pinging bridges this gap.
Preprints 206168 i068

Bounded-session limitations in existing frameworks.

Consider a protocol  π proven secure for q concurrent sessions in the game-based model. The standard advantage bound takes the form Ask q · ϵ prim + q 2 / 2 λ + 1 , where  ϵ prim is the advantage against the underlying primitive and the quadratic term captures birthday-bound collisions among q nonces. This bound is meaningful only for  q = poly ( λ ) . Three real-world failure scenarios escape this analysis:
1.
Nonce/counter wrap-around. A 32-bit counter nonce wraps after  2 32 sessions, reusing the same nonce-key pair. Protocols such as AES-GCM with a 32-bit invocation field are vulnerable after 2 32 TLS records under the same key.
2.
Session-state accumulation. Adversaries that persist across sessions can accumulate partial information. For instance, each ECDSA signing session leaks a negligible amount of side-channel information about the nonce k; after  2 60 sessions the accumulated leakage may be non-negligible.
3.
Cross-session correlation. In multi-party protocols, an adversary may correlate session transcripts across sessions. Without a mechanism ensuring structural independence, subtle cross-session attacks (e.g. the Needham–Schroeder masquerade) succeed regardless of the session count.
Session pinging addresses all three by enforcing structural independence at each session boundary and enabling an inductive security argument that is session-index-independent.

5.2. The Pinging Mechanism

Definition 14 
(Session Structural Distinctness). Sessions  Session i and  Session i + 1 arestructurally distinctif:
  • sid i sid i + 1 (SID freshness);
  • N i N i + 1 = (disjoint nonce sets);
  • all signatures in  Session i + 1 sign data including  sid i + 1 (signature binding);
  • all MACs in  Session i + 1 authenticate data including  sid i + 1 (MAC binding);
  • all ciphertexts in  Session i + 1 are freshly generated (not replayed from  Session i ) (ciphertext freshness).
Remark 1 
(Condition (e): Ciphertext Freshness). Condition (e) is new compared to the minimal four-condition definition. It is necessary for KEM-based protocols (ML-KEM, QKEM) where the buyer could replay a ciphertext  c i from  Session i to  Session i + 1 . Without ciphertext freshness, the decapsulation oracle in  Session i + 1 might return the same key  K i , breaking key secrecy. The CNF clause  φ novel enforces this condition.
Definition 15 
(Session Ping). Ping ( Session i , Session i + 1 ) = 1 iff  Session i and  Session i + 1 are structurally distinct per Theorem 14.
Definition 16 
(Ping Failure Probability). Theping failure probabilityfor protocol π is:
δ ping ( π ) = max i 1 Pr Ping ( Session i , Session i + 1 ) = 0 ,
where the probability is taken over honest randomness (nonce generation, SID sampling). A protocol hasnegligible ping failureif  δ ping ( π ) negl ( λ ) .
Preprints 206168 i069Preprints 206168 i070Preprints 206168 i071
Figure 18. Session pinging for unbounded verification. Consecutive sessions are “pinged” to verify structural distinctness. The zigzag edges denote the ping check between adjacent sessions.
Figure 18. Session pinging for unbounded verification. Consecutive sessions are “pinged” to verify structural distinctness. The zigzag edges denote the ping check between adjacent sessions.
Preprints 206168 g017
Figure 19. Detailed ping verification flow for session Session i + 1 against its predecessor Session i . A failure at any step short-circuits to Ping = 0 (session rejected). This flowchart corresponds to Phase 5 of Algorithm 1.
Figure 19. Detailed ping verification flow for session Session i + 1 against its predecessor Session i . A failure at any step short-circuits to Ping = 0 (session rejected). This flowchart corresponds to Phase 5 of Algorithm 1.
Preprints 206168 g018

5.3. The Unbounded Security Theorem

Theorem 3 
(Unbounded Security via Session Pinging). If (i)  Session 1 is secure (market in equilibrium with Ask 1 ϵ ), (ii)  Ping ( Session i , Session i + 1 ) = 1 for all  i 1 , and (iii)  φ i + 1 is obtained from  φ i by variable renaming (substituting  sid i sid i + 1 and fresh nonces), then π is secure for unbounded sessions, with:
Ask i ϵ + ( i 1 ) · δ ping ( π ) for all i 1 .
When  δ ping ( π ) negl ( λ ) , the ask price remains negligible for all  i = poly ( λ ) .
Proof. 
We proceed by strong induction on the session index i.
Base case ( i = 1 ). Session  Session 1 is secure by hypothesis (i), with  Ask 1 ϵ . The session-CNF  φ 1 is satisfiable under the honest trace of  Session 1 by Theorem 2: SID clauses hold (the SID was freshly sampled), freshness clauses hold (nonces are freshly generated), signature and MAC clauses hold (honest parties execute correctly), and consistency clauses hold (honest execution follows the protocol specification). Since there is no predecessor session, the ping clause  φ 1 ping is vacuously true.
Inductive step. Assume that sessions  Session 1 , , Session i are all secure, i.e., for each  j i the session-CNF  φ j is satisfiable under the honest trace and  Ask j ϵ + ( j 1 ) δ ping . We must show that  Session i + 1 is secure.
Step 1: Structural distinctness via pinging. By hypothesis (ii), Ping ( Session i , Session i + 1 ) = 1 . By Theorem 14, this guarantees:
  • sid i + 1 is fresh (not equal to  sid i or any earlier SID, since all earlier pings also passed by the inductive hypothesis, giving a chain of distinct SIDs);
  • all nonces in  Session i + 1 are disjoint from those in  Session i (and by induction, disjoint from all earlier nonces with probability 1 i · δ ping );
  • all signatures and MACs in  Session i + 1 bind  sid i + 1 , which is distinct from all previous session identifiers.
Step 2: CNF isomorphism. By hypothesis (iii), φ i + 1 is obtained from  φ i by the variable renaming  sid i sid i + 1 and substituting fresh nonces. Since the CNF clauses are structural (they check SID binding, nonce freshness, signature verification, MAC verification, and consistency), and since all variables in  φ i + 1 are independently fresh, the satisfiability of  φ i + 1 under the honest trace of  Session i + 1 follows from the satisfiability of  φ i under the honest trace of  Session i . Formally:
φ i + 1 [ trans i + 1 honest ] = φ i [ trans i honest ] | sid i sid i + 1 , N i N i + 1 = TRUE .
Step 3: Market equilibrium preservation. The security reduction for  Session i + 1 is identical to that for  Session 1 (and hence  Session i ): the reduction converts a buyer who breaks  Session i + 1 into a buyer who breaks the underlying primitive. Crucially, this reduction is session-index-independent: it does not use the session index  i + 1 in any way beyond the fresh SID and nonces. Therefore:
Ask i + 1 Ask 1 + Pr j i : Ping ( Session j , Session j + 1 ) = 0 ϵ + i · δ ping ( π ) .
The second inequality follows from a union bound over i ping checks, each failing with probability at most  δ ping .
Conclusion. By induction, Ask i ϵ + ( i 1 ) δ ping for all  i 1 . When  δ ping negl ( λ ) and  i = poly ( λ ) , the total ask price is  ϵ + poly ( λ ) · negl ( λ ) = ϵ + negl ( λ ) , which is negligible whenever  ϵ is negligible. The market remains in equilibrium for all sessions.    □
Preprints 206168 i072Preprints 206168 i073

5.4. Interaction Between Session Pinging and CNF Verification

Preprints 206168 i074
Session pinging and CNF verification are complementary mechanisms that together provide the strongest possible session-security guarantee. Their interaction is formalised as follows.
Proposition 2. 
For any session  Session i + 1 with predecessor  Session i :
[ P i n g C N F S o u n d n e s s ] φ i + 1 = SAT Ping ( Session i , Session i + 1 ) = 1 Session i + 1 is correct and structurally independent of Session i .
Proof. 
CNF satisfiability (Theorem 2) guarantees that all intra-session checks pass: SID binding, nonce freshness within the session, all signatures and MACs verify, and message ordering is correct. The ping check (Theorem 15) guarantees inter-session independence: the SID, nonces, and cryptographic bindings of  Session i + 1 are structurally distinct from those of  Session i . Together, they ensure that  Session i + 1 is both internally correct and externally independent, which is the full session-correctness requirement.    □
Proposition 3 
(Ping Failure Implies CNF Clause Failure). If  Ping ( Session i , Session i + 1 ) = 0 , then at least one of the following CNF clauses in  φ i + 1 is violated:
  • φ i + 1 sid : SID binding (if sid i + 1 = sid i );
  • φ i + 1 fresh : nonce freshness (if N i + 1 N i );
  • φ i + 1 sig or φ i + 1 mac : cryptographic binding (if signatures or MACs do not bind sid i + 1 ).
Therefore, the four-column CNF worksheet automatically detects any ping failure, and the failing clause identifies the specific inter-session attack vector.
Proof. 
By contrapositive: if all CNF clauses pass and include the SID of the current session in all cryptographic bindings, then conditions (a)–(e) of Theorem 14 are satisfied, so the ping passes.    □

5.4.0.16. Phase 5 of Algorithm 1 explained.

The ping check in Phase 5 of the CNF verification algorithm serves as the “inter-session bridge” between the intra-session CNF verification (Phases 1–4) and the unbounded induction theorem (Theorem 3). Concretely, Phase 5 performs five sub-checks corresponding to the five conditions of Theorem 14:
1.
SID uniqueness: Verify sid i + 1 { sid 1 , , sid i } by consulting the SID log.
2.
Nonce disjointness: Verify N i + 1 j = 1 i N j = by consulting the nonce log.
3.
Signature SID-binding: For each signature  σ in  Session i + 1 , verify that the signed data includes  sid i + 1 .
4.
MAC SID-binding: For each MAC tag  τ in  Session i + 1 , verify that the authenticated data includes  sid i + 1 .
5.
Ciphertext freshness: For each ciphertext c in  Session i + 1 , verify c { c 1 , , c i } .
If any sub-check fails, the session is rejected immediately with a diagnostic indicating which structural-distinctness condition was violated. This early rejection prevents the accumulation of insecure sessions.

5.5. Taxonomy of Ping Failure Modes

Not all protocols satisfy the pinging requirements. The following taxonomy classifies the failure modes that prevent unbounded security, ordered by severity.
Figure 20. Taxonomy of ping failure modes: SID collision (counter issues), nonce reuse (RNG problems), signature unbinding (design flaws), and ciphertext replay (KEM reuse). Each mode has a specific probability bound. Well-designed protocols have negligible failure in all modes.
Figure 20. Taxonomy of ping failure modes: SID collision (counter issues), nonce reuse (RNG problems), signature unbinding (design flaws), and ciphertext replay (KEM reuse). Each mode has a specific probability bound. Well-designed protocols have negligible failure in all modes.
Preprints 206168 g019
Definition 17 
(Ping Failure Taxonomy).
1.
Type I: SID collision. sid i + 1 = sid j for some j i . Probability: i / | SID - space | (birthday bound if SIDs are random).Consequence:Cross-session replay becomes possible.Example:A 64-bit SID space after 2 32 sessions gives collision probability 2 1 .
2.
Type II: Nonce reuse. N i + 1 N j for some j i .Consequence:Signature key recovery (ECDSA), ciphertext XOR leakage (stream ciphers), or MAC forgery.Example:ECDSA with a biased nonce generator (cf. the Sony PlayStation 3 ECDSA break, where all nonces were identical).
3.
Type III: Unsigned SID.Signatures in  Session i + 1 do not bind  sid i + 1 .Consequence:Signatures from one session can be replayed in another.Example:Needham–Schroeder protocol, where no SID is signed (cf. Section 13.4).
4.
Type IV: Unauthenticated SID.MACs in  Session i + 1 do not bind  sid i + 1 .Consequence:MAC tags from one session can be injected into another.Example:Original Telegram MTProto 2.0, where the salt is not HMAC-bound (cf. Section 13.9).
5.
Type V: Ciphertext replay.Ciphertexts from  Session i are accepted in  Session i + 1 .Consequence:Key reuse across sessions.Example:A KEM without implicit rejection may accept a replayed ciphertext.
Table 1. Ping failure taxonomy with protocol examples and CNF clause that detects each failure.
Table 1. Ping failure taxonomy with protocol examples and CNF clause that detects each failure.
Type Failure mode Probability CNF clause Example protocol
I SID collision i / | SID | φ sid 64-bit SID after 2 32 sessions
II Nonce reuse q N 2 / 2 λ + 1 φ fresh ECDSA with biased nonces
III Unsigned SID 1 φ sig Needham–Schroeder
IV Unauthenticated SID 2 64 φ mac Telegram MTProto 2.0
V Ciphertext replay q D / | C | φ novel KEM without implicit rej.
Preprints 206168 i075

5.6. Quantitative Advantage Accumulation

The accumulation bound in Theorem 3 is additive: each session adds at most  δ ping to the total advantage. We now give concrete numerical examples for the protocols and primitives analysed in this article.
Proposition 4 
(Concrete Ping Degradation Bounds). For the following schemes, the ping failure probability and accumulated advantage after N sessions are:
Scheme δ ping After N = 2 40 sessions After N = 2 64 sessions
ECDSA (256-bit q) q S 2 / ( 2 q ) 2 129 2 89 2 65
ML-KEM-768 q D / 2 γ 2 200 2 160 2 136
ML-DSA-65 Adv MSIS 2 128 2 88 2 64
AES-128 q E · 2 128 2 64 2 24 1 (key rotation needed)
Keccak/SHA-3 q f / 2 c = q f / 2 512 2 472 2 448
ISO two-party q N 2 / 2 257 + Adv EUF 2 128 2 128
Remark 2 
(AES Key Rotation). The AES entry highlights an important practical point: for block ciphers with 128-bit keys, the accumulated ping degradation reaches unity after  2 64 sessions under the same key. This is the well-known birthday bound for block ciphers and mandates key rotation (rekeying) before 2 64 blocks. The ping mechanism makes this requirementexplicitwithin the MTSF framework, rather than leaving it as an implicit assumption.

5.7. Comparison with Symbolic Unbounded Verification

Preprints 206168 i076
ProVerif [6] and Tamarin [7] provide symbolic unbounded session analysis: they check whether any number of concurrent sessions can be attacked, using abstract term algebras where cryptographic operations are perfect. Session pinging provides a complementary computational unbounded analysis with concrete advantage bounds.
Table 2. Comparison of MTSF session pinging with symbolic formal verification for unbounded sessions.
Table 2. Comparison of MTSF session pinging with symbolic formal verification for unbounded sessions.
Property ProVerif/Tamarin CryptoVerif MTSF Pinging
Session bound Unbounded Polynomial Unbounded (by induction)
Concrete bounds No Yes Yes
Cross-session attacks Detected Partially Detected (ping clause)
CNF audit trail No No Yes (worksheet)
Manual verification No No Yes (four-column method)
Key rotation guidance No No Yes (accumulation bound)
Preprints 206168 i077
Figure 21. MTSF’s session pinging bridges the gap between formal verification (unbounded, qualitative) and game-based proofs (bounded, quantitative), providing the best of both worlds.
Figure 21. MTSF’s session pinging bridges the gap between formal verification (unbounded, qualitative) and game-based proofs (bounded, quantitative), providing the best of both worlds.
Preprints 206168 g020

6. Unified Novelties

Preprints 206168 i078Preprints 206168 i079Preprints 206168 i080Preprints 206168 i081
Figure 22. MTSF as a superset of existing paradigms. Game-based proofs, UC/GUC, formal verification, and ad hoc insecurity are all contained within MTSF as special cases.

7. Soundness and Completeness of MTSF

Any formal security framework must justify why its verdicts are trustworthy. In logic, a proof system is sound if it never declares a false statement true, and complete if it eventually declares every true statement provable. This section establishes analogous guarantees for MTSF: soundness means that if the market reaches equilibrium then the scheme is genuinely secure; completeness means that if the scheme is insecure then some buyer can collapse the market. The central technical mechanism is a subroutine-consumption reduction: during the bidding round the seller embeds the buyer as a black-box subroutine inside an algorithm for a computationally hard problem, thereby showing that the buyer’s success would yield an efficient solver for that problem—a contradiction under standard hardness assumptions.
Preprints 206168 i082

7.1. Subroutine Consumption: The Core Reduction Mechanism

The backbone of every MTSF security proof is a subroutine-consumption reduction. During a bidding round  B k , the seller constructs a polynomial-time algorithm  R (the reducer) that:
1.
receives an instance x of a computationally hard problem  Π hard ;
2.
simulates the market environment for the buyer  A (setting up keys, answering oracle queries, issuing challenges) without knowing the solution to x;
3.
invokes the buyer  A as a black-box subroutine—feeding A the simulated view and collecting A ’s output;
4.
translates the buyer’s bid output (a forgery, a distinguishing guess, a key recovery) into a valid solution for x.
Thus R A ( · ) is a polynomial-time oracle machine that solves  Π hard whenever the buyer’s bid succeeds.
Definition 18 
(Subroutine-Consumption Reduction). Let  Π hard be a computational problem and let  M = ( Seller , { Buyer i } , G , Price ) be an MTSF security market for a scheme Π. Asubroutine-consumption reductionfor good  g j G is a PPT oracle machine  R such that for every PPT buyer  A :
Adv R A Π hard ( λ ) 1 L ( λ ) · Adv A g j ( λ ) δ ( λ ) ,
where  L ( λ ) poly ( λ ) is thetightness lossand  δ ( λ ) is a negligible simulation error. The reducer  R consumes  A as a subroutine: it runs  A internally, relaying queries and collecting outputs, without knowledge of  A ’s internal strategy.
Preprints 206168 i083
Figure 23. Subroutine-consumption reduction: the seller (reducer R ) receives a hard-problem instance x, simulates the market for the buyer A , consumes A ’s bid output to solve x. Hardness of Π hard implies the buyer’s advantage is negligible—market equilibrium.
Figure 23. Subroutine-consumption reduction: the seller (reducer R ) receives a hard-problem instance x, simulates the market for the buyer A , consumes A ’s bid output to solve x. Hardness of Π hard implies the buyer’s advantage is negligible—market equilibrium.
Preprints 206168 g021
Preprints 206168 i084Preprints 206168 i085

7.2. NP-Hard Subroutine Chains: Consuming One Hard Problem to Solve Another

The subroutine-consumption mechanism extends naturally to chains of NP-hard reductions. If the buyer’s bid strategy  A constitutes an algorithm for NP-hard problem  Π A , and an algorithm for  Π A can itself be consumed as a subroutine to solve a different NP-hard problem  Π B , then the seller constructs a two-layer reduction: the outer reducer solves  Π B by consuming a solver for  Π A , which itself is the buyer. This mechanism mirrors the structure of Karp reductions in complexity theory, but operationalised within the MTSF bidding-round framework.
Preprints 206168 i086
Definition 19 
(NP-Hard Subroutine Chain). Let  Π A and  Π B be NP-hard problems and let  g j be a security good in market  M . AnNP-hard subroutine chainof depth d is a sequence of PPT oracle machines R 1 , R 2 , , R d such that:
1.
R 1 A : consumes the buyer  A (who attacks good  g j ) to produce a solver for  Π A .
2.
R 2 R 1 A : consumes the Π A -solver as a subroutine to produce a solver for  Π B .
3.
In general, R i + 1 R i consumes the Π i 1 -solver to produce a Π i -solver.
The total tightness loss is L total ( λ ) = i = 1 d L i ( λ ) and the total simulation error is δ total ( λ ) = i = 1 d δ i ( λ ) .
Preprints 206168 i087
Algorithm 2:NP-Hard Subroutine Chain Reduction
Require: 
NP-hard problems Π A , Π B ; buyer  A attacking good g j ; instance y Π B
Ensure: 
Solution to y (if A succeeds) or
Ensure: 
// Layer 1: Reduce Π B instance to Π A instance
1:
Parse y as an instance of Π B
2:
Compute Karp reduction: x KarpReduce B A ( y ) x is a Π A instance
2:
// Layer 2: Reduce Π A instance to security game instance
3:
Embed x into market setup: ( pk , state ) R 1 . Setup ( x , 1 λ )
4:
Initialise buyer: send pk to A
4:
// Layer 3: Execute bidding round with buyer as subroutine
5:
while A makes oracle query q i  do
6:
     a i R 1 . SimOracle ( q i , state ) ▹ Simulate oracle using x
7:
    Send a i to A
8:
end while
9:
Issue challenge c * R 1 . Challenge ( state ) to A
10:
Receive bid output β A ( c * ) Buyer consumed as subroutine
10:
// Layer 4: Extract solutions up the chain
11:
if β is a valid bid (forgery/guess/key) then
12:
    Extract Π A solution: s A R 1 . Extract ( β , state )
13:
    Lift to Π B solution: s B KarpLift A B ( s A , y ) ▹ Inverse map
14:
    return  s B
15:
else
16:
    return ▹ Buyer’s bid failed; no solution extracted
17:
end if
Preprints 206168 i088
Figure 24. NP-hard subroutine chain: the seller reduces Π B to Π A to the security game. The buyer is consumed as the innermost subroutine. Solution extraction propagates outward: β s A s B . NP-hardness of Π B prevents the buyer from succeeding.
Figure 24. NP-hard subroutine chain: the seller reduces Π B to Π A to the security game. The buyer is consumed as the innermost subroutine. Solution extraction propagates outward: β s A s B . NP-hardness of Π B prevents the buyer from succeeding.
Preprints 206168 g022

7.3. Soundness of MTSF

Soundness asserts that MTSF equilibrium implies genuine security: if the bidding-round chain terminates with negligible cumulative cost, then no efficient adversary can break the scheme.
Theorem 4 
(Soundness of MTSF). Let  M = ( Seller , { Buyer i } , G , Price ) be a security market for scheme Π, and let  g j G be a security good. Suppose there exists a subroutine-consumption reduction  R from the security game for  g j to a computational problem  Π hard with tightness loss  L ( λ ) and simulation error  δ ( λ ) . If  Π hard is ( T ( λ ) , ϵ hard ( λ ) ) -hard (i.e., no algorithm running in time T succeeds with probability  > ϵ hard ), then for all PPT buyers  A :
Ask ( g j , λ ) L ( λ ) · ϵ hard ( λ ) + δ ( λ ) .
In particular, if  Π hard is hard against PPT (i.e., ϵ hard ( λ ) negl ( λ ) ) and L ( λ ) poly ( λ ) and δ ( λ ) negl ( λ ) , then Ask ( g j , λ ) negl ( λ ) —the market is in equilibrium.
Proof. 
By contradiction. Suppose some PPT buyer  A * achieves Adv A * g j ( λ ) = ϵ * ¬ negl ( λ ) —i.e., ϵ * is non-negligible. By the subroutine-consumption reduction (Theorem 18), the reducer  R A * solves  Π hard with advantage:
Adv R A * Π hard ( λ ) 1 L ( λ ) · ϵ * δ ( λ ) .
Since  ϵ * is non-negligible, L ( λ ) poly ( λ ) , and  δ ( λ ) negl ( λ ) , the right-hand side is non-negligible. Thus  R A * is a PPT algorithm (since  R is PPT and  A * is PPT, the composition is PPT) that solves  Π hard with non-negligible advantage—contradicting the hardness assumption on  Π hard . Therefore no such  A * exists, and:
Ask ( g j , λ ) = max A PPT Adv A g j ( λ ) L ( λ ) · ϵ hard ( λ ) + δ ( λ ) negl ( λ ) .
The market is in equilibrium for good  g j .    □
Preprints 206168 i089Preprints 206168 i090

7.4. Completeness of MTSF

Completeness asserts the converse: if a scheme is insecure, then MTSF detects the flaw—some buyer’s bid collapses the market.
Theorem 5 
(Completeness of MTSF). Let  M = ( Seller , { Buyer i } , G , Price ) be a security market for scheme Π, and let  g j G be a security good. If there exists a PPT algorithm  A * such that  Adv A * g j ( λ ) = ϵ * ( λ ) 1 / poly ( λ ) (i.e., A * breaks  g j with non-negligible advantage), then:
1.
Bid construction:The buyer submits bid Bid * = ( g j , T * , ϵ * ) where T * = Time ( A * ) .
2.
Market collapse: Ask ( g j , λ ) ϵ * ( λ ) 1 / poly ( λ ) , which is non-negligible.
3.
Equilibrium failure:The market isnotin equilibrium for  g j .
Moreover, if ϵ * ( λ ) = 1 negl ( λ ) (the scheme is totally broken), then Ask ( g j , λ ) = 1 negl ( λ ) : the market has fully collapsed.
Proof. 
By the definition of ask price (Theorem 11):
Ask ( g j , λ ) = max A PPT Adv A g j ( λ ) Adv A * g j ( λ ) = ϵ * ( λ ) .
Since ϵ * ( λ ) 1 / poly ( λ ) is non-negligible, Ask ( g j , λ ) ¬ negl ( λ ) , so the equilibrium condition of Theorem 11 fails. The buyer  A * realises the bid  Bid * = ( g j , T * , ϵ * ) by running its attack strategy in time  T * and achieving advantage  ϵ * . The market has collapsed (or is at least non-equilibrium) for good  g j .
For total collapse: if Adv A * g j ( λ ) = 1 negl ( λ ) , then the ask price satisfies Ask ( g j , λ ) 1 negl ( λ ) , and by the trivial upper bound Ask ( g j , λ ) 1 , we obtain Ask ( g j , λ ) = 1 negl ( λ ) . This is full market collapse: the security good is worthless.    □
Preprints 206168 i091Preprints 206168 i092

7.5. The Soundness–Completeness Duality

Figure 25. The soundness–completeness duality of MTSF. Soundness ensures no false positives (broken schemes declared secure); completeness ensures no false negatives (insecure schemes undetected). Together, they make MTSF’s market verdicts fully reliable.
Figure 25. The soundness–completeness duality of MTSF. Soundness ensures no false positives (broken schemes declared secure); completeness ensures no false negatives (insecure schemes undetected). Together, they make MTSF’s market verdicts fully reliable.
Preprints 206168 g023
The soundness and completeness theorems together establish a precise duality between the computational world and the market world:
Corollary 1 
(MTSF Duality). For any security good  g j in a market  M with a valid subroutine-consumption reduction to  Π hard :
Π is sec ure for g j M is in equilibrium for g j
no PPT buyer profits from bidding on g j ,
under the assumption that  Π hard is hard against PPT.
Proof. 
(⇒, Soundness) If  Π is secure for  g j , then by Theorem 4 the market is in equilibrium. (⇐, Completeness) If  Π is insecure for  g j , then by Theorem 5 some buyer’s bid collapses the market—so the market is not in equilibrium. The contrapositive gives: equilibrium ⇒ security.    □
Figure 26. The soundness–completeness duality of MTSF. Soundness (bottom-left): hardness of Π hard implies security and equilibrium. Completeness (top): insecurity implies market collapse. The three worlds—security, market, and computational—are formally equivalent under MTSF.
Preprints 206168 i093Preprints 206168 i094Preprints 206168 i095

7.6. Worked Example: ECDSA Soundness via Subroutine Consumption

To make the abstract machinery concrete, we trace the subroutine-consumption reduction for ECDSA’s EUF-CMA security (proved in detail in Section 9.1).
Example 1 
(ECDSA Subroutine Consumption). Consider the ECDSA market  M ECDSA with good g EUF = EUF-CMA (unforgeability). The hard problem is Π hard = ECDLP (Elliptic Curve Discrete Logarithm Problem).
Subroutine consumption in action:
1.
Reducer setup.The reducer  R receives an ECDLP instance ( G , Q = d G ) where d is the unknown discrete log. R sets pk = Q and begins simulating the signing oracle for the buyer  A .
2.
Oracle simulation.When the buyer requests a signature on message  m i , the reducer simulates ( r i , s i ) using the forking lemma technique: it programs the random oracle so that valid-looking signatures can be produced without knowing d.
3.
Buyer consumed.After q S signing queries, the buyer outputs a forgery ( m * , σ * = ( r * , s * ) ) on a fresh message m * { m 1 , , m q S } .
4.
Solution extraction.Using the forking lemma, R rewinds A to obtain two valid signatures ( r * , s 1 * ) and ( r * , s 2 * ) on m * with different random oracle responses h 1 h 2 . From these, R computes:
d = s 1 * h 2 s 2 * h 1 s 2 * s 1 * · r * 1 mod n ,
solving the ECDLP instance.
Soundness conclusion:By Theorem 4:
Ask ( g EUF , λ ) q H · Adv ECDLP ( λ ) + q S 2 λ + q H 2 2 λ negl ( λ ) .
The tightness loss is  L = q H (number of hash queries) and the simulation error accounts for nonce collisions and birthday terms. The ECDSA market is in equilibrium.
Preprints 206168 i096

7.7. Worked Example: NP-Hard Subroutine Chain for CNF-Based Security

The NP-hard subroutine chain is particularly natural when the security game involves CNF-satisfiability checks, since 3-SAT is the canonical NP-complete problem.
Example 2 
(CNF Subroutine Chain: SAT → Subset Sum → Security Game). Consider a scheme Π whose session security is verified via a CNF formula φ (Section 4). Suppose a buyer  A can find a satisfying assignment for a class of CNF formulae as part of its attack strategy (e.g., it finds an adversarial transcript that passes the CNF audit).
Chain construction:
1.
Layer 1 ( Π A = 3-SAT):The buyer’s ability to satisfy the session-CNF implies an algorithm for a subclass of 3-SAT instances (those arising from protocol transcripts). The reducer  R 1 embeds a 3-SAT instance into the session-CNF by encoding the SAT variables as session parameters (nonces, keys, timestamps).
2.
Layer 2 ( Π B = Subset Sum):By Karp’s classical reduction, any 3-SAT instance can be transformed into a Subset Sum instance in polynomial time. The outer reducer  R 2 first transforms the Subset Sum instance y into a 3-SAT instance x (via the reverse encoding), then invokes  R 1 A to solve x.
3.
Solution propagation:If the buyer satisfies the session-CNF, R 1 extracts a 3-SAT assignment, and R 2 lifts it to a Subset Sum solution.
Conclusion:If the buyer could pass the CNF audit with an adversarial transcript, the chain would yield an efficient Subset Sum solver—contradicting the NP-hardness of Subset Sum (under P NP ). The session-CNF audit is sound: no adversarial transcript passes.
Preprints 206168 i097

7.8. Relationship to Classical Meta-Theorems

Preprints 206168 i098Preprints 206168 i099
The soundness and completeness of MTSF are not merely analogies—they are formal instantiations of classical meta-theorems in cryptographic proof theory.
Remark 3 
(Connection to Bellare–Rogaway Reductions). The subroutine-consumption reduction (Theorem 18) is the MTSF formalisation of the classical Bellare–Rogaway reduction paradigm [2]. In the classical setting, a “reduction” is a PPT oracle machine that uses the adversary as a black-box subroutine to solve a hard problem. MTSF adds the market interpretation: the reduction is thesellerconsuming thebuyerduring the bidding round, and the hard problem’s intractability ensures market equilibrium. The key insight is that this interpretation makes thedirectionof the reduction intuitive: the buyer bids (attacks), the seller co-opts the bid (reduces), and the hard problem’s resistance prevents profit (equilibrium).
Remark 4 
(Connection to Cook–Levin and Karp Reductions). The NP-hard subroutine chain (Theorem 19) operationalises the Cook–Levin theorem and Karp’s 21 reductions [13] within the MTSF bidding framework. The Cook–Levin theorem states that every problem in NP reduces to SAT; Karp’s reductions show that SAT reduces to 20 other specific NP-complete problems. In MTSF language: if the buyer’s bid strategy implicitly solves any NP-complete problem, the seller can chain reductions to solveallNP-complete problems—a catastrophic violation of the P NP assumption. This connection grounds MTSF’s security guarantees in the deepest conjectures of computational complexity theory.
Figure 27. Correspondence between classical meta-theorems in complexity/cryptography and their MTSF counterparts. Each classical result has a precise market-theoretic formalisation.
Figure 27. Correspondence between classical meta-theorems in complexity/cryptography and their MTSF counterparts. Each classical result has a precise market-theoretic formalisation.
Preprints 206168 g024

7.9. Implications for MTSF Case Studies

The soundness and completeness theorems have direct implications for every case study in this article:
Figure 28. The four-step MTSF security pipeline that every case study follows: (1) define the market (seller, buyers, goods), (2) construct bidding-round chain with price adjustments, (3) fill in the CNF verification worksheet, (4) verify session pinging for unbounded security.
Figure 28. The four-step MTSF security pipeline that every case study follows: (1) define the market (seller, buyers, goods), (2) construct bidding-round chain with price adjustments, (3) fill in the CNF verification worksheet, (4) verify session pinging for unbounded security.
Preprints 206168 g025
Preprints 206168 i100
Remark 5 
(Subroutine Consumption and the NP-Hardness Paradigm). The subroutine-consumption mechanism establishes a fundamental link between cryptographic security and computational complexity. In the MTSF framework, every security proof is an instance of the following paradigm:
An algorithm for NP-hard problem  Π A can solve another NP-hard problem  Π B if the algorithm for  Π A is consumed as a subroutine.
The buyer’s attack strategy constitutes an “algorithm” for a specific computational task (forging signatures, distinguishing ciphertexts, recovering keys). The seller’s reduction shows that this task is at least as hard as a known NP-hard problem. The subroutine chain (Theorem 19) extends this to multiple layers: if the buyer’s algorithm (for task  Π A ) is consumed as a subroutine by a converter that solves  Π B , and Π B is consumed by another converter that solves  Π C , then the buyer’s success would yield an efficient solver for  Π C —a contradiction cascading through the entire NP-hardness hierarchy. This is the market-theoretic operationalisation of the NP-completeness web: breaking one problem breaks them all.

8. Protocol-Level Security Games in MTSF

In a protocol market, the seller offers not just primitive-level goods (EUF-CMA, IND-CCA2) but also protocol-level goods: entity authentication, mutual authentication, session-key secrecy, and CNF session correctness. Each is formalised as an individual buyer game within the market.
Preprints 206168 i101

8.1. The Authentication Game

Definition 20 
(Authentication Good g auth ). The seller offers g auth : the guarantee that after a protocol run, if honest party B accepts, then B’s intended partner A was indeed participating. The buyer (active network adversary A ) wins if B accepts a session without A having sent the corresponding messages.
Theorem 6 
(Authentication Game—Game-Based Bound). For a protocol using signatures for entity authentication:
Ask ( g auth ) Adv Sig EUF - CMA + q N 2 2 λ + 1 + negl ( λ ) ,
where q N is the number of sessions (nonces sampled).
Proof. 
We construct four games, bounding the difference at each hop.
B 0 (Bidding Round 0: Real Market Execution).
Preprints 206168 i102
The seller (challenger C ) runs the protocol honestly, offering the authentication good g auth at ask price Ask 0 . The buyer (adversary A ) controls the network: it may delay, reorder, drop, and inject messages between honest parties A and B, placing a full-control network bid. The buyer wins—and the market collapses for g auth —if B accepts and outputs pid = A , but A did not participate in any matching session. This is the baseline: Ask 0 = Adv A auth ( λ ) .
B 1 (Bidding Round 1: Nonce Freshness Bid).
Preprints 206168 i103
The seller adds an internal audit: abort the session if any two concurrent or sequential sessions sample the same nonce. This models the seller refusing to sell under a nonce-reuse bid—a buyer strategy that exploits repeated randomness. The two bidding rounds B 0 and B 1 are identical until the bad event F nonce (a nonce collision) occurs; by the difference lemma, the price adjustment is Δ Price 0 = | Pr B 0 = 1 Pr B 1 = 1 | Pr F nonce .
Difference bound. By the birthday bound over q N nonces sampled uniformly from { 0 , 1 } λ :
| Pr B 0 ( A ) = 1 Pr B 1 ( A ) = 1 | Pr F nonce q N 2 2 λ + 1 .
B 2 (Bidding Round 2: Signature Forgery Bid).
Preprints 206168 i104
The seller now also maintains a signature ledger: a complete record of every signature honest party A has generated. If the buyer causes B to accept a signature σ * on session data m * sid that does not appear in the ledger, the market flags this as a forgery bid event F forge —the buyer is attempting to sell counterfeit goods. The price adjustment is bounded by the EUF-CMA advantage: a forgery bid succeeds only if the buyer can produce a valid signature under A‘s key without ever querying A‘s signing oracle on that message, which by EUF-CMA security costs Adv Sig EUF - CMA .
Difference bound. We reduce F forge to EUF-CMA: given an EUF-CMA challenger for A’s key, the reduction embeds A’s public key and forwards signing queries. If A triggers F forge , the reduction outputs ( m * sid , σ * ) as a forgery. Hence:
| Pr B 1 ( A ) = 1 Pr B 2 ( A ) = 1 | Pr F forge Adv Sig EUF - CMA .
B 3 (Bidding Round 3: Ideal Market—All Entity-Auth Bids Fail).
Preprints 206168 i105
Conditioned on no nonce-reuse bid ( ¬ F nonce ) and no forgery bid ( ¬ F forge ) succeeding, the market reaches equilibrium for g auth : if B accepts with partner A, then B verified a valid, ledger-registered signature under A’s genuine key on session-specific data including a fresh sid and nonce N B . The signature is in the ledger (no forgery bid succeeded), and the nonce is unique (no nonce bid succeeded), so A must have generated this signature for this exact session—A genuinely participated. The buyer’s winning probability in the ideal market: Pr B 3 = 1 = 0 . Market equilibrium for g auth is established.
Summing:
Ask ( g auth ) q N 2 2 λ + 1 + Adv Sig EUF - CMA + 0 = Adv Sig EUF - CMA + q N 2 2 λ + 1 + negl ( λ ) .
   □
Preprints 206168 i108

8.2. The Mutual Authentication Game

Definition 21 
(Mutual Authentication Good g mutual ). The seller offers g mutual : after a protocol run,bothA and B accept with correct partner identities, or neither accepts. The buyer wins if either (a) B accepts with partner A but A did not participate, or (b) A accepts with partner B but B did not participate.
Theorem 7 
(Mutual Authentication Equilibrium). For a protocol with bidirectional signatures:
Ask ( g mutual ) 2 · Adv Sig EUF - CMA + q N 2 2 λ + 1 + negl ( λ ) .
Proof. 
We construct five games.
B 0 (Bidding Round 0: Real Market, Full Dual-Direction Bid).
Preprints 206168 i109
Preprints 206168 i110
The seller offers the mutual authentication good g mutual . The buyer places a dual-direction impersonation bid: it attempts to violate authentication in at least one direction—either impersonating A to B or impersonating B to A (or both). The market ask price is Ask 0 = Adv A mutual ( λ ) .
B 1 (Bidding Round 1: Nonce Freshness Bid—Both Directions).
Preprints 206168 i111
The seller enforces nonce uniqueness across all sessions in both directions, placing a freshness constraint on nonce bids. Identical-until- F nonce ; price adjustment:
| Pr B 0 = 1 Pr B 1 = 1 | q N 2 2 λ + 1 .
B 2 (Bidding Round 2: Signature Forgery Bid on A—Impersonating A to B).
Preprints 206168 i112
The seller adds a signature ledger for A. The buyer places a directed forgery bid: cause B to accept a signature σ A that A never generated, thereby impersonating A to B. Any success here is an EUF-CMA forgery against A’s signing key. Price adjustment (buyer’s cost to break A’s signature):
| Pr B 1 = 1 Pr B 2 = 1 | Adv Sig , A EUF - CMA .
B 3 (Bidding Round 3: Signature Forgery Bid on B—Impersonating B to A).
Preprints 206168 i113
Symmetrically, the seller adds a signature ledger for B. The buyer places a directed forgery bid in the other direction: cause A to accept a signature σ B that B never generated. By the extended difference lemma, F forge _ A (targeting A) and F forge _ B (targeting B) use independent signing keys, so their failure events are handled separately. Price adjustment (buyer’s cost to break B’s signature):
| Pr B 2 = 1 Pr B 3 = 1 | Adv Sig , B EUF - CMA .
B 4 (Bidding Round 4: Ideal Market—Both Dual-Direction Bids Fail).
Preprints 206168 i114
With no nonce-reuse bid, no forgery bid on A, and no forgery bid on B: both signatures in any accepted session are ledger-verified, session-specific, and nonce-fresh. Both parties participated genuinely. The dual-direction impersonation bid fails completely. Pr B 4 = 1 = 0 . Market equilibrium for g mutual is established.
Extended difference lemma (combined). The forgery events F A and F B use independent keys, so: Pr F A F B Pr F A + Pr F B Pr F A F B 2 · Adv EUF , since Pr F A F B 0 .
Total: Ask ( g mutual ) 2 · Adv Sig EUF - CMA + q N 2 / 2 λ + 1 .    □

8.3. The Session-Key Secrecy Game

Preprints 206168 i115
Definition 22 
(Session-Key Secrecy Good g sk ). After a completed protocol run producing session key K sess , the buyer receives either K sess or a uniformly random key K (chosen by a random bit b). The buyer wins by guessing b. The good is secure if Ask ( g sk ) negl ( λ ) .
Theorem 8 
(Session-Key Secrecy Equilibrium). For a protocol using a KEM for key transport and a KDF for derivation:
Ask ( g sk ) Adv KEM IND - CCA 2 + Adv KDF PRF + 2 · Adv Sig EUF - CMA + q N 2 2 λ + 1 + negl ( λ ) .
Proof. 
We construct six games.
B 0 (Bidding Round 0: Real Market—Key-Secrecy Distinguishing Bid).
Preprints 206168 i116
The seller generates keys and runs the protocol honestly, offering the session-key secrecy good g sk . The buyer places a key-distinguishing bid: after the protocol completes, the seller flips b $ { 0 , 1 } and presents the buyer with either the real session key K sess (if b = 0 ) or a uniformly random K $ { 0 , 1 } λ (if b = 1 ). The buyer bids on guessing b by outputting b . The market ask price is Ask 0 = | Pr B 0 ( b = b ) 1 / 2 | —the buyer’s advantage over random guessing.
B 1 (Bidding Round 1: Nonce Freshness Bid—Preventing Replay).
Preprints 206168 i117
The seller enforces nonce uniqueness: a nonce-reuse bid would enable session key correlation. This costs the market: | Pr B 0 = 1 Pr B 1 = 1 | q N 2 / 2 λ + 1 .
B 2 (Bidding Round 2: Signature Forgery Bid on A).
Preprints 206168 i118
A forgery on A‘s signature would inject a rogue session, compromising key secrecy without breaking the KEM. The seller blocks this via EUF-CMA. Price adjustment:
| Pr B 1 = 1 Pr B 2 = 1 | Adv Sig EUF .
B 3 (Bidding Round 3: Signature Forgery Bid on B).
Preprints 206168 i119
Preprints 206168 i120
Symmetric to B 2 : a forgery on B‘s signature is blocked. Both forgery bids use independent keys (extended difference lemma applies). Price adjustment: | Pr B 2 = 1 Pr B 3 = 1 | Adv Sig EUF .
B 4 (Bidding Round 4: KEM Ciphertext Bid—Replacing the Session Secret).
Preprints 206168 i121
The seller now replaces the real encapsulated key K with a uniformly random K ˜ . Any buyer that distinguishes B 3 from B 4 is placing a KEM plaintext-recovery bid: it can distinguish a real KEM ciphertext from one encapsulating a random key, which is exactly IND-CCA2 security. Price adjustment: | Pr B 3 = 1 Pr B 4 = 1 | Adv KEM IND - CCA 2 .
B 5 (Bidding Round 5: KDF Randomness Bid—Replacing the Derived Key).
Preprints 206168 i122
The seller replaces K sess = KDF ( K ˜ , sid N A N B ) with a uniformly random key K rand . Any buyer distinguishing B 4 from B 5 is placing a PRF-distinguishing bid against the KDF—it detects that the output is a PRF evaluation rather than random, which breaks PRF security. Price adjustment: | Pr B 4 = 1 Pr B 5 = 1 | Adv KDF PRF .
In B 5 , the test key is independent of b, so Pr B 5 = 1 = 1 / 2 exactly.
Total: Ask ( g sk ) = | Pr B 0 = 1 1 / 2 | Adv KEM IND - CCA 2 + Adv KDF PRF + 2 · Adv Sig EUF + q N 2 / 2 λ + 1 .    □

8.4. The CNF Checking Game

Preprints 206168 i123
Definition 23 
(CNF Checking Good g CNF ). The seller offers g CNF : the guarantee that for every completed session, the session-CNF φ i (Theorem 13) is satisfiable under the honest trace and unsatisfiable under any adversarial trace. The buyer wins if it produces a dishonest transcript for which φ i is nonetheless satisfiable.
Theorem 9 
(CNF Checking Equilibrium).
Ask ( g CNF ) Adv Sig EUF - CMA + Adv MAC SUF - CMA + q N 2 2 λ + 1 + negl ( λ ) .
Proof. 
We construct four games.
B 0 (Bidding Round 0: Real Market—CNF Audit Evasion Bid).
Preprints 206168 i124
A interacts with the protocol and produces a transcript trans * that is dishonest (i.e., contains at least one adversarially modified message). A wins if the CNF verification algorithm (Algorithm 1) outputs Accept on trans * .
B 1 (Bidding Round 1: Freshness Audit Bid—Nonce Reuse and SID Mismatch).
Preprints 206168 i125
Abort if A ’s transcript reuses a nonce from an honest session or carries a mismatched SID while still passing the SID clauses. Let F fresh be this event:
| Pr B 0 = 1 Pr B 1 = 1 | Pr F fresh q N 2 2 λ + 1 .
B 2 (Bidding Round 2: Signature Forgery Bid—Bypassing the Signature Clause).
Preprints 206168 i126
For φ i sig to be satisfied under a dishonest trace, A must produce a valid signature under an honest party’s key on adversarially chosen data (or a modified message). Flag this as F sig - forge :
| Pr B 1 = 1 Pr B 2 = 1 | Pr F sig - forge Adv Sig EUF - CMA .
B 3 (Bidding Round 3: MAC Forgery Bid—Bypassing the MAC Clause).
Preprints 206168 i127
Preprints 206168 i128
For φ i mac to be satisfied dishonestly, A must produce a valid MAC tag on a message not authenticated by an honest party. Flag as F mac - forge :
| Pr B 2 = 1 Pr B 3 = 1 | Pr F mac - forge Adv MAC SUF - CMA .
In B 3 , conditioned on no freshness violation, no signature forgery, and no MAC forgery, the only transcripts that satisfy φ i are honest ones. So Pr B 3 = 1 = 0 .
Total: Ask ( g CNF ) Adv Sig EUF + Adv MAC SUF + q N 2 / 2 λ + 1 .    □
Preprints 206168 i129

9. Case Study I: Primitives

9.1. ECDSA: Security via Bidding

9.1.0.17. Setup.

Seller offers g EUF - CMA for ECDSA over curve  E ( F p ) of order q. Buyer makes  q S signing queries, q H hash queries, then attempts forgery  ( m * , σ * ) .
Theorem 10 
(ECDSA Market Equilibrium). Ask ( g EUF - CMA ) q S 2 / ( 2 q ) + q H 2 / ( 2 q ) + q H · q S · Adv ECDLP + negl ( λ ) .
Proof. 
We construct five games. Each hop represents a specific bid by the adversary for a particular weakness, and we apply the (extended) difference lemma to bound the bid’s payoff.
B 0 (Bidding Round 0: Real ECDSA Market).
Preprints 206168 i130
The seller generates ( sk , pk ) ECDSA . KeyGen ( 1 λ ) and offers the EUF-CMA good g EUF - CMA at ask price Ask 0 . The buyer (adversary) interacts adaptively with the signing oracle (placing signing bids—up to q S queries) and the random oracle H (placing hash queries—up to q H queries), then outputs a forgery bid: a new message-signature pair ( m * , ( r * , s * ) ) never queried to the signing oracle. If the forgery verifies, the buyer wins and the market collapses.
B 1 (Bidding Round 1: Nonce Freshness Bid).
Preprints 206168 i131
The seller adds an internal nonce-collision check: abort if any two signing nonces k i = k j for i j among the q S signing queries. This models the seller refusing to process a nonce-reuse bid—if two nonces collide, an attacker can compute sk = ( s 2 e 1 s 1 e 2 ) ( r ( s 1 s 2 ) ) 1 mod q directly, instantly collapsing the market. The bad event F nonce : “any two of the q S nonces collide among samples from Z q ”.
Difference lemma. Let  F nonce : “ i j : k i = k j ” among  q S samples from  Z q . Bidding rounds B 0 and B 1 are identical-until- F nonce . By birthday bound:
Δ Price 0 Pr F nonce q S 2 2 q .
Market interpretation: The nonce-freshness bid fails because nonces are sampled from a space of size  q 2 256 ; the birthday collision requires q S 2 128 signing queries—computationally infeasible. The bid’s market value is negligible.
B 2 (Bidding Round 2: Hash Collision Bid).
Preprints 206168 i132
The seller adds a hash-collision check: abort if any two distinct inputs to H produce the same output among the q H oracle queries. A buyer placing a hash-collision bid exploits this to conflate two messages under the same hash value, potentially enabling a signature forgery. The bad event F hash : “any two of the q H hash queries collide”. By birthday paradox over the 2 n -bit output space of H:
Difference lemma. F hash : “ i j : H ( m i ) = H ( m j ) ”. Birthday bound: Δ Price 1 q H 2 / ( 2 q ) .
B 3 (Bidding Round 3: Oracle Programming—Costless Market Restructuring).
Preprints 206168 i133
The seller secretly restructures the market by programming the random oracle: for each signing query m i , the hash output is set to H ( m i ) = α i · G + β i · pk for fresh random α i , β i . This embeds an ECDLP challenge into the oracle. Since H is a random oracle (outputs are uniformly distributed regardless of how they are chosen), this restructuring is informationally invisible to the buyer—it cannot detect the change. The price adjustment is Δ Price 2 = 0 : this is a costless market restructuring.
Δ Price 2 = 0 (information-theoretic; the distribution of oracle outputs is unchanged).
B 4 (Bidding Round 4: Forgery-to-ECDLP Extraction Bid).
Preprints 206168 i134
If the buyer places a successful forgery bid in B 3 (outputs valid ( m * , ( r * , s * ) ) ), the seller converts the forgery into an ECDLP solution: apply the general forking lemma [14] to rewind the buyer with a different random oracle coin at the same fork point, obtaining a second forgery ( m * , r * , s * * ) with s * * s * (the same nonce but different hash). From both forgeries, extract: sk = ( s * * H ( m * ) s * H ( m * ) ) ( r ( s * s * * ) ) 1 mod q . A successful forgery bid solves ECDLP—which collapses the ECDLP market, assumed to be in equilibrium.
Extended difference lemma with multiple failures. The extraction step can fail due to simultaneous events:
  • F fork : forking fails (the rewound execution does not produce a second valid forgery). By the forking lemma: Pr F fork 1 acc 2 / q H + 1 / q where  acc is the original success probability.
  • F extract : s * = s * * (extraction yields  0 / 0 ). Pr F extract 1 / q .
By Lemma 2: Δ Price 3 Pr F fork F extract Pr F fork + Pr F extract .
A successful extraction solves ECDLP, so the residual advantage is bounded by  Adv ECDLP ( λ ) .
Total market cost:
Ask q S 2 2 q nonce bid + q H 2 2 q hash bid + 0 programming + q H q S · Adv ECDLP forgery bid + negl ( λ ) .
For standard parameters ( q S , q H 2 64 , q 2 256 ), each term is negligible. The market is in equilibrium.
B sca (Side-Channel Bid: Comprehensive Physical Leakage Attack.)
Preprints 206168 i135
Preprints 206168 i136
SCA extended difference lemma. F sca = F SPA F DPA F timing F cache F EMA F fault F cold F acoustic F photonic : “ A phys recovers 1 secret bit via any physical channel from q phys measurements.” By Lemma 2, the side-channel event is independent of the mathematical failure events F nonce , F hash , in the preceding rounds, so their joint probability satisfies Pr k F k F sca k Pr [ F k ] + Adv total SCA ( λ , d ) . With the comprehensive countermeasure suite, Adv total SCA = negl ( λ ) , preserving market equilibrium.
B tight (Tight Security Reduction—Additional Proof.)
Preprints 206168 i137
Total Session Bound and Key Rotation Recommendation.
Preprints 206168 i138
Session pinging and CNF checking within the proof. The above five-bidding-round proof establishes security for a single signing session. To extend to unbounded sessions, we verify that the session-pinging mechanism (Theorem 15) is satisfied within the proof structure itself. Concretely, consider two consecutive signing sessions Session i and Session i + 1 , each producing a signature ( m i , ( r i , s i ) ) and ( m i + 1 , ( r i + 1 , s i + 1 ) ) respectively.
SID freshness: Each session has a distinct session identifier (the message-nonce pair ( m , k ) serves as an implicit SID). Since nonces are freshly sampled from Z q in each session, sid i + 1 sid i with probability 1 1 / q .
Nonce disjointness: The nonce k i + 1 is sampled independently from Z q . By B 1 (nonce freshness bid), k i + 1 { k 1 , , k i } except with birthday probability i / ( 2 q ) , which is negligible for i = poly ( λ ) .
Signature SID-binding: Each ECDSA signature ( r , s ) is computed over ( m , k ) where r = x ( k G ) uniquely determines the nonce commitment. The hash e = H ( m ) binds the message. Thus the signature is intrinsically bound to the session’s unique ( m , k ) pair.
CNF satisfiability: The session-CNF φ ECDSA , i + 1 is isomorphic to φ ECDSA , i by variable renaming k i k i + 1 , m i m i + 1 . Since φ ECDSA , i is satisfiable (inductive hypothesis) and all new variables are fresh, φ ECDSA , i + 1 is satisfiable. By Theorem 3, the ECDSA market remains in equilibrium for unbounded signing sessions, with accumulated ping degradation δ ping q S 2 / ( 2 q ) = negl ( λ ) .    □
Preprints 206168 i139Preprints 206168 i140
Figure 29. Real-world applications protected by ECDSA’s market equilibrium. Bitcoin transactions, HTTPS certificates, code signing, and contactless payments all depend on the hardness of ECDLP.
Figure 29. Real-world applications protected by ECDSA’s market equilibrium. Bitcoin transactions, HTTPS certificates, code signing, and contactless payments all depend on the hardness of ECDLP.
Preprints 206168 g026
Figure 30. ECDSA bidding-round chain. Five bidding rounds from real ( B 0 ) to ideal ( B 4 ), with the price adjustment (bid cost) labelled on each arrow. Each hop targets a specific adversarial weakness; all bids fail under standard parameters.
Figure 30. ECDSA bidding-round chain. Five bidding rounds from real ( B 0 ) to ideal ( B 4 ), with the price adjustment (bid cost) labelled on each arrow. Each hop targets a specific adversarial weakness; all bids fail under standard parameters.
Preprints 206168 g027
Preprints 206168 i141Preprints 206168 i142

9.2. ML-KEM (FIPS 203): IND-CCA2 via Bidding

Theorem 11 
(ML-KEM Equilibrium). Ask ( g IND - CCA 2 ) 2 · Adv MLWE + q D / 2 γ + negl ( λ ) .
Proof. 
B 0 (Real IND-CCA2). Buyer gets  pk , a decapsulation oracle, and challenge  ( c * , K b ) where  K 0 is real and  K 1 is random.
B 1 (Decapsulation bypass bid). Replace the decapsulation oracle with implicit rejection. Difference lemma: F rej : implicit rejection differs from real. Δ Price 0 q D / 2 γ where  γ is the implicit rejection parameter and  q D is the number of decapsulation queries.
B 2 (Public-key bid—MLWE I). Replace  pk = ( A , t = A s + e ) with  ( A , u ) for uniform  u . This is a computational hop: detecting the change solves MLWE. Δ Price 1 Adv MLWE ( λ ) .
B 3 (Ciphertext bid—MLWE II). Replace challenge ciphertext components with uniform random. Δ Price 2 Adv MLWE ( λ ) .
B 4 (Ideal). The encapsulated key is information-theoretically hidden from the ciphertext. Buyer advantage = 0. Total: 2 Adv MLWE + q D / 2 γ .
B sca (Side-Channel Bid: Comprehensive Physical Leakage Attack.)
Preprints 206168 i143
Preprints 206168 i144
SCA extended difference lemma. F sca = F SPA F DPA F timing F cache F EMA F fault F cold F acoustic F photonic : “ A phys recovers 1 secret bit via any physical channel from q phys measurements.” By Lemma 2, the side-channel event is independent of the mathematical failure events F nonce , F hash , in the preceding rounds, so their joint probability satisfies Pr k F k F sca k Pr [ F k ] + Adv total SCA ( λ , d ) . With the comprehensive countermeasure suite, Adv total SCA = negl ( λ ) , preserving market equilibrium.
B tight (Tight Security Reduction—Additional Proof.)
Preprints 206168 i145
Preprints 206168 i146
Total Session Bound and Key Rotation Recommendation.
Preprints 206168 i147
Session pinging and CNF checking within the proof. The four-bidding-round proof above secures a single encapsulation session. We now verify the session-pinging conditions (Theorem 15) hold within the proof structure for consecutive sessions Session i and Session i + 1 .
Ciphertext freshness (ping condition (e)): Each encapsulation samples fresh randomness r i + 1 to produce c i + 1 = KEM . Enc ( pk ; r i + 1 ) . Since r i + 1 is freshly sampled, c i + 1 is distinct from all prior ciphertexts with overwhelming probability. A buyer attempting a ciphertext replay bid (submitting c i + 1 = c j for some j i ) is detected by the CNF clause φ novel : the ciphertext log C used already contains c j , triggering rejection.
Implicit rejection preserves ping soundness: Even if the buyer replays c j , ML-KEM’s implicit rejection mechanism returns K = H ( c j ) , which is independent of the original key K j . This ensures that a replayed ciphertext yields no information about prior session keys, reinforcing the structural independence required by the ping.
CNF isomorphism: The session-CNF φ ML - KEM , i + 1 is obtained from φ ML - KEM , i by substituting c i c i + 1 , K i K i + 1 , and fresh randomness. Since the MLWE instances are independent across sessions, the security reduction is session-index-independent. By Theorem 3, ML-KEM is IND-CCA2 secure for unbounded encapsulation sessions with δ ping q D / 2 γ = negl ( λ ) .    □
Preprints 206168 i148Preprints 206168 i149Preprints 206168 i150Preprints 206168 i151Preprints 206168 i152

9.3. ML-DSA (FIPS 204): EUF-CMA via Bidding

Theorem 12 
Preprints 206168 i153
Proof. 
B 0 : Real EUF-CMA. B 1 (Hash programming bid): programme H to embed structured challenges ( Δ = 0 , syntactic). B 2 (Public-key bid—MLWE): replace key matrix with MLWE challenge ( Δ Adv MLWE ). B 3 (Forgery-to-MSIS bid): a forgery yields a short vector solving Module-SIS. Extended difference lemma: F 1 : rejection sampling overflow; F 2 : norm bound violation. Δ Price Pr F 1 F 2 + Adv MSIS . Both Pr F 1 and Pr F 2 are negligible by parameter choice.
B sca (Side-Channel Bid: Comprehensive Physical Leakage Attack.)
Preprints 206168 i154
Preprints 206168 i155
Preprints 206168 i156
SCA extended difference lemma. F sca = F SPA F DPA F timing F cache F EMA F fault F cold F acoustic F photonic : “ A phys recovers 1 secret bit via any physical channel from q phys measurements.” By Lemma 2, the side-channel event is independent of the mathematical failure events F nonce , F hash , in the preceding rounds, so their joint probability satisfies Pr k F k F sca k Pr [ F k ] + Adv total SCA ( λ , d ) . With the comprehensive countermeasure suite, Adv total SCA = negl ( λ ) , preserving market equilibrium.
B tight (Tight Security Reduction—Additional Proof.)
Preprints 206168 i157
Total Session Bound and Key Rotation Recommendation.
Preprints 206168 i158
Session pinging and CNF checking within the proof. The three-bidding-round proof secures a single signing session. We verify the session-pinging conditions for consecutive sessions Session i and Session i + 1 , each producing ( m i , σ i ) and ( m i + 1 , σ i + 1 ) .
Nonce disjointness: ML-DSA uses a commitment vector y i + 1 sampled from a discrete Gaussian distribution with fresh randomness in each session. The probability that the same commitment vector is reused across sessions is bounded by the Gaussian smoothing parameter: Pr y i + 1 = y j 2 256 for any j i .
Rejection sampling and session independence: ML-DSA’s rejection sampling ensures that each signature  σ i + 1 is statistically close to a session-independent distribution. Specifically, the distribution of ( m i + 1 , σ i + 1 ) conditioned on the secret key is within statistical distance Δ DGS 2 128 of the ideal distribution. This ensures that observing signatures from sessions Session 1 , , Session i provides negligible information useful for forging in Session i + 1 .
CNF clause φ novel enforces ping: The novelty clause m i + 1 Q sign checks that the forgery message was not previously signed. Across sessions, this clause extends naturally: m i + 1 must not appear in any previous session’s signing queries. The session-CNF φ ML - DSA , i + 1 is isomorphic to φ ML - DSA , i with fresh MSIS/MLWE instances. By Theorem 3, ML-DSA is EUF-CMA secure for unbounded signing sessions with δ ping Adv MSIS + Adv MLWE = negl ( λ ) .    □
Preprints 206168 i159Preprints 206168 i160Preprints 206168 i161

Scheme.

Sign: σ = m d mod N . Verify: check m = σ e mod N . No hash, no padding.
Preprints 206168 i162
Theorem 13 
(Textbook RSA Market Collapse). Ask ( g EUF - CMA ) = 1 .
Proof. 
The buyer achieves advantage 1 with budget  O ( 1 ) :
Existential forgery (free message bid). Choose arbitrary  σ $ Z N * . Compute  m * = σ e mod N . Then  ( m * , σ ) is valid. Cost: one modular exponentiation. The buyer “purchases” a forgery for free.
Chosen-message forgery (homomorphism bid). For target  m * , factor m * = m 1 · m 2 mod N . Request signatures  σ 1 = m 1 d , σ 2 = m 2 d . Compute  σ * = σ 1 · σ 2 = ( m 1 m 2 ) d = ( m * ) d . Cost: two signing queries + one multiplication.
Difference lemma (degenerate case). B 0 (real) and B 1 (ideal) differ on every execution: the failure event F homo : “RSA is multiplicatively homomorphic” has Pr F homo = 1 . Hence Δ Price = 1 , and the market has collapsed.
Preprints 206168 i163
Preprints 206168 i164Preprints 206168 i165
Table 3. Primitives: security vs. insecurity in MTSF.
Table 3. Primitives: security vs. insecurity in MTSF.
Primitive Good Ask Price Market Status Key Bid That Decides
ECDSA EUF-CMA negl Equilibrium Forgery bid → ECDLP
ML-KEM IND-CCA2 negl Equilibrium PK/CT bids → MLWE
ML-DSA EUF-CMA negl Equilibrium Forgery bid → MSIS
Textbook RSA Sig EUF-CMA 1 Collapsed Homomorphism bid: free

9.4. Extended Primitives

Preprints 206168 i166

9.5. HMAC: SUF-CMA via Bidding

Preprints 206168 i167Preprints 206168 i168

Setup.

HMAC K ( m ) = H ( K opad ) H ( ( K ipad ) m ) where H is a Merkle–Damgård hash function, K is the key, and ipad , opad are fixed padding constants [19]. The seller offers g SUF - CMA : the buyer has a tagging oracle HMAC K ( · ) and must produce a new valid pair ( m * , τ * ) not previously returned by the oracle.
Theorem 14 
(HMAC Market Equilibrium). If the compression function h of H is a PRF when keyed via its chaining-value input, then:
Ask ( g SUF - CMA ) 2 · Adv h PRF + q T 2 2 n + 1 + negl ( λ ) ,
where q T is the number of tagging queries and n is the output length of H.
Proof. 
We construct five games.
B 0 (Bidding Round 0: Real HMAC Market—SUF-CMA Bid).
Preprints 206168 i169
The seller generates K $ { 0 , 1 } n and offers the SUF-CMA good g SUF - CMA for HMAC. The buyer places tagging bids: up to q T adaptive queries to HMAC K ( · ) , observing all tag responses. It then places the forgery bid: a new message-tag pair ( m * , τ * ) not previously queried, satisfying HMAC K ( m * ) = τ * . If it succeeds, the authentication market collapses.
B 1 (Bidding Round 1: Inner PRF Replacement Bid).
Preprints 206168 i170
Preprints 206168 i171
The seller restructures the inner layer of HMAC: replace the keyed inner hash H ( ( K ipad ) m ) with a truly random function R in ( m ) . Any buyer that distinguishes bidding round B 0 from B 1 is placing a PRF-distinguishing bid: it detects that the inner computation changed from a keyed compression function to a random function. Winning this bid is exactly breaking the PRF security of h keyed by the chaining value K ipad . The seller constructs a PRF challenger D that simulates both bidding rounds using its oracle.
Difference bound. Let F in : “the buyer distinguishes the inner keyed hash from random.” We construct a PRF distinguisher D that simulates B 0 vs B 1 using its oracle: D replaces each evaluation of the inner hash chain with a query to its PRF/random oracle. If A behaves differently, D outputs 1:
| Pr B 0 ( A ) = 1 Pr B 1 ( A ) = 1 | Pr F in Adv h PRF .
B 2 (Bidding Round 2: Outer PRF Replacement Bid).
Preprints 206168 i172
The seller restructures the outer layer: replace H ( ( K opad ) y ) (where y = R in ( m ) ) with a truly random function R out ( y ) . Same argument as B 1 —any distinguishing buyer is placing an outer PRF bid, breaking PRF security of h keyed by K opad . Price adjustment (outer PRF bid cost):
| Pr B 1 ( A ) = 1 Pr B 2 ( A ) = 1 | Adv h PRF .
B 3 (Bidding Round 3: Inner Collision Bid).
Preprints 206168 i173
In B 2 , HMAC is R out ( R in ( m ) ) . The seller adds a collision audit: abort if any two distinct queries collide under R in . A buyer placing an inner-collision bid exploits this to forge a tag by matching a queried inner value: if R in ( m * ) = R in ( m i ) for some queried m i , then τ * = τ i is a valid tag on m * . Bad event F coll : “any inner collision among q T queries”. By birthday paradox over the 2 n -bit inner output space:
Difference bound. Since R in is a random function with n-bit output:
| Pr B 2 ( A ) = 1 Pr B 3 ( A ) = 1 | Pr F coll q T 2 2 n + 1 .
B 4 (Bidding Round 4: Ideal HMAC Market—All Bids Exhausted).
Preprints 206168 i174
In B 3 , with no inner collision ( ¬ F coll ), R in is injective on the queried set. The composed function R out R in is a random function on distinct inputs. Any forgery bid ( m * , τ * ) with m * { m 1 , , m q T } requires guessing R out ( R in ( m * ) ) —a value uniformly random in { 0 , 1 } n , independent of all oracle responses. The forgery bid succeeds with probability at most 2 n . Market equilibrium for g SUF - CMA (HMAC) is established: Pr B 4 = 1 2 n .
For SUF-CMA with m * = m i but τ * τ i : since R out is a function (deterministic), R out ( R in ( m i ) ) is unique, so no second valid tag exists. Hence Pr B 4 = 1 = 0 for this case.
Total:
Ask ( g SUF - CMA ) 2 · Adv h PRF + q T 2 2 n + 1 + 2 n .
B sca (Side-Channel Bid: Comprehensive Physical Leakage Attack.)
Preprints 206168 i175
Preprints 206168 i176
Preprints 206168 i177
SCA extended difference lemma. F sca = F SPA F DPA F timing F cache F EMA F fault F cold F acoustic F photonic : “ A phys recovers 1 secret bit via any physical channel from q phys measurements.” By Lemma 2, the side-channel event is independent of the mathematical failure events F nonce , F hash , in the preceding rounds, so their joint probability satisfies Pr k F k F sca k Pr [ F k ] + Adv total SCA ( λ , d ) . With the comprehensive countermeasure suite, Adv total SCA = negl ( λ ) , preserving market equilibrium.
B tight (Tight Security Reduction—Additional Proof.)
Preprints 206168 i178
Total Session Bound and Key Rotation Recommendation.
Preprints 206168 i179
Session pinging and CNF checking within the proof. The five-bidding-round proof secures a single HMAC tagging session. For unbounded sessions, consider consecutive tagging sessions Session i and Session i + 1 producing ( m i , τ i ) and ( m i + 1 , τ i + 1 ) under the same key K.
Tag freshness as implicit SID: HMAC is a stateless primitive (no explicit SID), but the message-tag pair ( m , τ ) serves as an implicit session identifier. The CNF clause φ novel enforces m i + 1 { m 1 , , m i } for SUF-CMA security. This is the ping condition: each session must produce a forgery on a new message.
Cross-session tag independence: In B 4 (ideal market), HMAC K is a random function. The tag τ i + 1 = R out ( R in ( m i + 1 ) ) is independent of all previous tags τ 1 , , τ i whenever m i + 1 is fresh (no inner collision with any m j ). The inner collision probability across i sessions is i · q T / 2 n + 1 , which is negligible for i = poly ( λ ) and n = 256 .
CNF isomorphism: The session-CNF φ HMAC , i + 1 is isomorphic to φ HMAC , i with fresh message substitution. By Theorem 3, HMAC is SUF-CMA secure for unbounded tagging sessions with δ ping 2 n = negl ( λ ) .
B sca (Side-Channel Bid: Comprehensive Physical Leakage Attack.)
Preprints 206168 i180
Preprints 206168 i181
SCA extended difference lemma. F sca = F SPA F DPA F timing F cache F EMA F fault F cold F acoustic F photonic : “ A phys recovers 1 secret bit via any physical channel from q phys measurements.” By Lemma 2, the side-channel event is independent of the mathematical failure events F nonce , F hash , in the preceding rounds, so their joint probability satisfies Pr k F k F sca k Pr [ F k ] + Adv total SCA ( λ , d ) . With the comprehensive countermeasure suite, Adv total SCA = negl ( λ ) , preserving market equilibrium.
Total Session Bound and Key Rotation Recommendation.
Preprints 206168 i182
Session pinging and CNF checking within the proof. For consecutive AEAD sessions Session i and Session i + 1 , the ping check verifies nonce freshness: N i + 1 N used . Nonce reuse under the same key is catastrophic for all AEAD schemes: in AES-GCM, reusing a nonce leaks the GHASH key H = AES K ( 0 128 ) , enabling universal forgery; in ChaCha20-Poly1305, it leaks the one-time Poly1305 key. The CNF clause φ nonce detects nonce reuse via the nonce log N used .
Nonce-misuse resistance and ping: Some AEAD schemes (e.g., AES-GCM-SIV) provide nonce-misuse resistance: nonce reuse degrades confidentiality but not integrity. In such schemes, the ping check is still valuable because it ensures that each session provides fresh ciphertexts and prevents the buyer from correlating sessions.
Accumulated advantage: The nonce space for AES-GCM is | N | = 2 96 . After N sessions with one nonce each, the birthday collision probability is N 2 / 2 97 . For N 2 48 , this is 2 1 —still safe but approaching the limit. Key rotation before N = 2 48 maintains full equilibrium. The session-CNF φ AEAD , i + 1 is isomorphic to φ AEAD , i with fresh nonce and key material; by Theorem 3, AEAD is secure for unbounded sessions.    □
Preprints 206168 i183Preprints 206168 i184Preprints 206168 i185Preprints 206168 i186
Figure 31. HMAC structure: two nested keyed hash evaluations. The inner hash mixes K ipad with the message; the outer hash mixes K opad with the inner hash output. Security relies on each keyed hash being a PRF.
Figure 31. HMAC structure: two nested keyed hash evaluations. The inner hash mixes K ipad with the message; the outer hash mixes K opad with the inner hash output. Security relies on each keyed hash being a PRF.
Preprints 206168 g028

9.6. AEAD: IND-CCA2 + INT-CTXT via Bidding

Preprints 206168 i187

Setup.

An Authenticated Encryption with Associated Data scheme AE = ( Enc , Dec ) provides both confidentiality (IND-CPA/CCA) and integrity (INT-CTXT). The seller offers two goods simultaneously: g IND - CCA 2 and g INT - CTXT . We consider a generic Encrypt-then-MAC construction: Enc ( K e , K m , N , A , m ) = ( c , τ ) where c = E K e ( N , m ) and τ = MAC K m ( A N c ) .
Theorem 15 
(AEAD Market Equilibrium). For an Encrypt-then-MAC AEAD scheme:
Ask ( g IND - CCA 2 ) Adv E IND - CPA + Adv MAC SUF - CMA + negl ( λ ) ,
Ask ( g INT - CTXT ) Adv MAC SUF - CMA + negl ( λ ) .
Proof. Part 1: INT-CTXT. We prove the integrity bound first.
B 0 (Bidding Round 0: Real AEAD Market—Ciphertext Injection Bid).
Preprints 206168 i188
Buyer has encryption oracle Enc ( K e , K m , · , · , · ) ; wins by producing ( N * , A * , c * , τ * ) that decrypts successfully but was never an oracle output.
B 1 (Bidding Round 1: MAC Forgery Bid—Bypassing Integrity Check).
Preprints 206168 i189
Note that successful decryption requires MAC . Vrfy ( K m , A * N * c * , τ * ) = 1 . If ( A * N * c * , τ * ) is new (not from the oracle), this constitutes a MAC forgery.
Difference bound. We build a SUF-CMA adversary B : B simulates the AEAD encryption oracle by encrypting with K e (which B chooses itself) and using its MAC oracle for tagging. When A outputs a successful INT-CTXT forgery, B outputs the corresponding MAC forgery. Hence:
Ask ( g INT - CTXT ) = Pr B 0 ( A ) = 1 Adv MAC SUF - CMA .
Part 2: IND-CCA2. We prove confidentiality.
B 0 (Bidding Round 0: Real AEAD Market—Plaintext Distinguishing Bid).
Preprints 206168 i190
Buyer submits ( m 0 , m 1 , N * , A * ) ; receives Enc ( K e , K m , N * , A * , m b ) for random b; has encryption and decryption oracles (except on the challenge).
B 1 (Bidding Round 1: Oracle Restriction Bid—Blocking Chosen-Ciphertext Queries).
Preprints 206168 i191
Replace decryption oracle: reject all queries ( N , A , c , τ ) where τ does not verify, and also reject the challenge ciphertext. For non-challenge ciphertexts with valid τ that were not produced by the encryption oracle, this is a MAC forgery.
Extended difference lemma. Let F mac : “buyer submits a valid ( c , τ ) not from the oracle.” F trivial : “buyer submits the challenge ciphertext to decryption.” By game rules, Pr F trivial = 0 . So:
| Pr B 0 = 1 Pr B 1 = 1 | Pr F mac Adv MAC SUF - CMA .
B 2 (Bidding Round 2: IND-CPA Reduction Bid—Eliminating Decryption Power).
Preprints 206168 i192
In B 1 , the decryption oracle only decrypts ciphertexts the encryption oracle produced, so the buyer gains no new information from decryption queries. The game reduces to IND-CPA:
| Pr B 1 = 1 1 / 2 | Adv E IND - CPA .
Total: Ask ( g IND - CCA 2 ) Adv E IND - CPA + Adv MAC SUF - CMA .
Preprints 206168 i193
Preprints 206168 i194
Preprints 206168 i195Preprints 206168 i196
Figure 32. AEAD Encrypt-then-MAC structure. The plaintext is encrypted first with key K e ; then the MAC key K m authenticates the associated data, nonce, and ciphertext together. The combined output provides both IND-CCA2 confidentiality and INT-CTXT integrity.
Figure 32. AEAD Encrypt-then-MAC structure. The plaintext is encrypted first with key K e ; then the MAC key K m authenticates the associated data, nonce, and ciphertext together. The combined output provides both IND-CCA2 confidentiality and INT-CTXT integrity.
Preprints 206168 g029

9.7. SLH-DSA (FIPS 205): Hash-Based EUF-CMA via Bidding

Preprints 206168 i197Preprints 206168 i198Preprints 206168 i199

Setup.

SLH-DSA is a stateless hash-based signature scheme. It uses a hypertree of XMSS trees with FORS (Forest of Random Subsets) at the leaves. Security reduces to properties of the underlying hash function: second-preimage resistance (SPR), pseudorandom function (PRF), and target-sum-preimage resistance (TSPR). The seller offers g EUF - CMA .
Theorem 16 
(SLH-DSA Market Equilibrium).
Ask ( g EUF - CMA ) q S · d · Adv H SPR + q S · k · Adv H TSPR + Adv F PRF + negl ( λ ) ,
where d is the hypertree depth, k is the number of FORS trees, q S is the number of signing queries, and H, F are the hash/PRF primitives.
Proof. 
We construct six games.
B 0 (Bidding Round 0: Real SLH-DSA Market—EUF-CMA Forgery Bid).
Preprints 206168 i200
Buyer receives public key (hypertree root), queries signing oracle q S times, outputs forgery ( m * , σ * ) .
B 1 (Bidding Round 1: PRF Randomness Bid—Detecting Key-Dependent Randomness).
Preprints 206168 i201
Replace the deterministic randomness generation R = F sk . prf ( opt m ) with truly random R $ { 0 , 1 } n . This changes the internal randomisation of signing but not the verification. The buyer bids that F is distinguishable from random.
Difference bound. Standard PRF reduction: any distinguisher yields a PRF adversary:
| Pr B 0 = 1 Pr B 1 = 1 | Adv F PRF .
B 2 (Bidding Round 2: FORS Target-Sum Preimage Bid).
Preprints 206168 i202
A valid forgery requires the buyer to produce valid FORS signatures on leaves that were not revealed by prior signing queries. For each of the k FORS trees, producing a valid leaf value without oracle access requires finding a target-sum preimage.
Difference bound. We embed a TSPR challenge into one of the k FORS trees of a randomly chosen signing query. If the buyer forges successfully for that tree, it solves TSPR. By a hybrid argument over q S · k FORS tree instances:
| Pr B 1 = 1 Pr B 2 = 1 | q S · k · Adv H TSPR .
B 3 (Bidding Round 3: WOTS+ Chain Second-Preimage Bid).
Preprints 206168 i596
Preprints 206168 i203
Even if the buyer has valid FORS leaves, it must authenticate them through the hypertree. Each WOTS+ chain in each of the d layers requires the buyer to produce a chain value matching the public key without inverting the hash. A forgery on any chain yields a second preimage.
Difference bound. Hybrid over q S · d WOTS+ instances:
| Pr B 2 = 1 Pr B 3 = 1 | q S · d · Adv H SPR .
B 4 (Bidding Round 4: Merkle Tree Collision Bid—Forging Authentication Paths).
Preprints 206168 i204
Within each XMSS tree, the buyer must produce a valid Merkle authentication path. An inconsistency yields a collision in H. This event has probability bounded by the number of internal nodes, which is subsumed by the SPR bound above.
Δ Price 4 = 0 (absorbed into the SPR bound).
B 5 (Bidding Round 5: Ideal SLH-DSA Market—All Hash-Based Bids Exhausted).
Preprints 206168 i205
With no PRF bid, no TSPR bid, and no SPR bid, valid FORS leaves, WOTS+ chains, and Merkle paths cannot be forged. Pr B 5 = 1 = 0 .
Total:
Ask Adv F PRF + q S · k · Adv H TSPR + q S · d · Adv H SPR .
B sca (Side-Channel Bid: Comprehensive Physical Leakage Attack.)
Preprints 206168 i206
Preprints 206168 i207
SCA extended difference lemma. F sca = F SPA F DPA F timing F cache F EMA F fault F cold F acoustic F photonic : “ A phys recovers 1 secret bit via any physical channel from q phys measurements.” By Lemma 2, the side-channel event is independent of the mathematical failure events F nonce , F hash , in the preceding rounds, so their joint probability satisfies Pr k F k F sca k Pr [ F k ] + Adv total SCA ( λ , d ) . With the comprehensive countermeasure suite, Adv total SCA = negl ( λ ) , preserving market equilibrium.
B tight (Tight Security Reduction—Additional Proof.)
Preprints 206168 i208
Total Session Bound and Key Rotation Recommendation.
Preprints 206168 i209
Preprints 206168 i210
Session pinging and CNF checking within the proof. For consecutive signing sessions Session i and Session i + 1 , the ping check verifies PRF randomness freshness: the internal PRF randomness R i + 1 used to derive FORS indices and WOTS+ chains must be distinct from all prior sessions. SLH-DSA derives R deterministically from the message and a secret PRF key: R = PRF ( sk . prf , opt _ rand , m ) . For distinct messages m i + 1 m j , the PRF output is fresh with probability 1 Adv F PRF . If the optional randomness opt _ rand is used (hedged signing), freshness holds even for repeated messages. The CNF clause φ prf checks that R i + 1 does not repeat. Reuse of R would simultaneously compromise FORS leaf selection (clause φ fors ) and WOTS+ chain computation (clause φ wots )—two simultaneous failures captured by the extended difference lemma: Pr F fors F wots Adv F PRF = negl . By Theorem 3, SLH-DSA is EUF-CMA secure for unbounded sessions.    □
Preprints 206168 i211Preprints 206168 i212

9.8. FN-DSA (FIPS 206): NTRU-Lattice EUF-CMA via Bidding

Preprints 206168 i213Preprints 206168 i214Preprints 206168 i215

Setup.

FN-DSA is a lattice-based signature scheme over NTRU lattices. Key generation produces a short basis B of an NTRU lattice; signing uses GPV-style discrete Gaussian sampling over the lattice coset H ( m ) + Λ . Security reduces to the Short Integer Solution (SIS) problem over NTRU lattices. The seller offers g EUF - CMA .
Theorem 17 
(FN-DSA Market Equilibrium).
Ask ( g EUF - CMA ) Adv NTRU SIS + Δ DGS + q H 2 2 n + 1 + negl ( λ ) ,
where Adv NTRU SIS is the advantage against SIS over NTRU lattices, Δ DGS is the statistical distance arising from discrete Gaussian sampling, and q H is the number of hash queries.
Proof. 
We construct five games.
B 0 (Bidding Round 0: Real FN-DSA Market—Lattice Forgery Bid).
Preprints 206168 i216
Buyer receives public key h = g / f mod q (where ( f , g ) is the NTRU secret key pair), queries signing oracle q S times, outputs forgery ( m * , σ * ) where σ * = ( s 1 * , s 2 * ) satisfying s 1 * + s 2 * · h = H ( m * ) mod q and ( s 1 * , s 2 * ) β .
B 1 (Bidding Round 1: Hash Collision Bid—Conflating Two Messages).
Preprints 206168 i217
Abort on hash collision; the buyer places a collision bid on the random oracle. Identical-until- F hash :
| Pr B 0 = 1 Pr B 1 = 1 | q H 2 2 n + 1 .
B 2 (Bidding Round 2: Gaussian Sampling Statistical Bid—Detecting Key-Dependent Distribution).
Preprints 206168 i218
Replace the fast-Fourier discrete Gaussian sampler with exact discrete Gaussian sampling. Let σ real be the distribution produced by the fast sampler and σ ideal the exact distribution. By the Rényi divergence analysis of the sampler:
| Pr B 1 = 1 Pr B 2 = 1 | Δ DGS ,
where Δ DGS 2 128 for recommended parameters.
B 3 (Bidding Round 3: Oracle Programming—Embedding SIS Challenge).
Preprints 206168 i219
Program the random oracle H so that for the forgery message m * , H ( m * ) encodes an SIS challenge vector. Since H is a random oracle, this is a syntactic change: Δ Price 2 = 0 .
B 4 (Bidding Round 4: Forgery-to-SIS Extraction Bid—Solving the Lattice Problem).
Preprints 206168 i220
If the buyer produces valid ( s 1 * , s 2 * ) with s 1 * + s 2 * h = c * (the embedded challenge) and ( s 1 * , s 2 * ) β , then ( s 1 * , s 2 * ) is a short vector in the NTRU lattice solving the SIS instance. We extract and forward:
Pr B 4 ( A ) = 1 Adv NTRU SIS .
Total:
Ask q H 2 2 n + 1 + Δ DGS + Adv NTRU SIS + negl ( λ ) .
B sca (Side-Channel Bid: Comprehensive Physical Leakage Attack.)
Preprints 206168 i221
Preprints 206168 i222
SCA extended difference lemma. F sca = F SPA F DPA F timing F cache F EMA F fault F cold F acoustic F photonic : “ A phys recovers 1 secret bit via any physical channel from q phys measurements.” By Lemma 2, the side-channel event is independent of the mathematical failure events F nonce , F hash , in the preceding rounds, so their joint probability satisfies Pr k F k F sca k Pr [ F k ] + Adv total SCA ( λ , d ) . With the comprehensive countermeasure suite, Adv total SCA = negl ( λ ) , preserving market equilibrium.
B tight (Tight Security Reduction—Additional Proof.)
Preprints 206168 i223
Total Session Bound and Key Rotation Recommendation.
Preprints 206168 i224
Preprints 206168 i225
Session pinging and CNF checking within the proof. For consecutive FN-DSA signing sessions Session i and Session i + 1 , the ping check verifies that the signature ( s 1 * , s 2 * ) i + 1 on message m i + 1 * is structurally distinct from all prior signatures. FN-DSA’s Gaussian sampler ensures that each signature vector is drawn from a discrete Gaussian distribution centred at a message-dependent lattice point. The statistical distance between the actual distribution and the ideal round Gaussian is Δ DGS 2 128 , ensuring that observing signatures across sessions Session 1 , , Session i provides negligible information about the secret NTRU basis ( f , g ) .
Gaussian leakage accumulation and ping: The buyer’s Gaussian leakage bid attempts to accumulate statistical information from many signatures. After N sessions, the total leakage is bounded by N · Δ DGS N · 2 128 . For N 2 64 , this is 2 64 —negligible. The ping mechanism ensures each session contributes an independently sampled signature vector; the CNF clause φ norm verifies ( s 1 * , s 2 * ) β per session. By Theorem 3 with δ ping Δ DGS + Adv NTRU SIS = negl , FN-DSA is EUF-CMA secure for unbounded sessions.    □
Preprints 206168 i226Preprints 206168 i227
Table 4. Extended primitives summary.
Table 4. Extended primitives summary.
Primitive Good Ask Price Status Reduction Target
HMAC SUF-CMA negl Equilibrium PRF of compression function
AEAD (EtM) IND-CCA2 + INT-CTXT negl Equilibrium IND-CPA + SUF-CMA
SLH-DSA EUF-CMA negl Equilibrium SPR + TSPR + PRF
FN-DSA EUF-CMA negl Equilibrium SIS over NTRU

10. Case Study II: Block-Cipher Market—AES

10.1. AES Market Setup

The Advanced Encryption Standard [20] operates on 128-bit blocks with 10/12/14 rounds for 128/192/256-bit keys. We model AES as a market where the seller offers the good g PRP : pseudorandom permutation security. The buyer’s goal is to distinguish AES K ( · ) from a truly random permutation π ( · ) on { 0 , 1 } 128 .
Preprints 206168 i228
Figure 33. AES round structure. Each of the 10/12/14 rounds applies SubBytes (confusion), ShiftRows and MixColumns (diffusion), and AddRoundKey (key injection). The final round omits MixColumns. Multiple rounds compound the complexity, making any differential or algebraic attack computationally infeasible.
Figure 33. AES round structure. Each of the 10/12/14 rounds applies SubBytes (confusion), ShiftRows and MixColumns (diffusion), and AddRoundKey (key injection). The final round omits MixColumns. Multiple rounds compound the complexity, making any differential or algebraic attack computationally infeasible.
Preprints 206168 g030
Definition 24 
(PRP Security Good). Ask ( g PRP ) = max A PPT | Pr A AES K ( · ) = 1 Pr A π ( · ) = 1 | , where K $ { 0 , 1 } κ and π $ Perm ( { 0 , 1 } 128 ) .
Preprints 206168 i229Preprints 206168 i230
Figure 34. AES round operations visualised: a 4×4 byte grid undergoes SubBytes (non-linear substitution), ShiftRows (position mixing), MixColumns (column blending), and AddRoundKey (key injection). After multiple rounds, a single changed input bit affects every output bit—the “avalanche effect.”
Figure 34. AES round operations visualised: a 4×4 byte grid undergoes SubBytes (non-linear substitution), ShiftRows (position mixing), MixColumns (column blending), and AddRoundKey (key injection). After multiple rounds, a single changed input bit affects every output bit—the “avalanche effect.”
Preprints 206168 g031

10.2. Differential Cryptanalysis Bid

Differential cryptanalysis [21] analyses how input differences Δ x = x x propagate to output differences Δ y = AES K ( x ) AES K ( x ) . The buyer constructs a differential characteristic Ω = ( Δ 0 , Δ 1 , , Δ r ) specifying the expected difference at each round.
Preprints 206168 i231
Definition 25 
(Differential Characteristic Probability). DP ( Ω ) = i = 0 r 1 Pr Round i ( Δ i ) = Δ i + 1 .
Theorem 18 
(AES Differential Bid Failure). For AES-128 with r = 10 rounds:
Ask ( g PRP , differential bid ) q E · 2 150 + negl ( λ ) ,
where q E is the number of encryption queries. That is, the differential bid fails.
Proof. 
We construct five games.
B 0 (Bidding Round 0: Real AES Market—Differential Distinguishing Bid).
Preprints 206168 i232
Preprints 206168 i233
Buyer queries AES K on chosen-plaintext pairs ( x , x Δ 0 ) and checks whether the output difference matches the predicted Δ r .
B 1 (Bidding Round 1: Wide-Trail Resistance Bid—Counting Active S-Boxes).
Preprints 206168 i234
We lower-bound the number of active S-boxes (S-boxes with non-zero input difference) across the characteristic. By the wide-trail design strategy of AES [22]: the MixColumns and ShiftRows operations ensure that any 4-round characteristic activates at least B 4 = 25 S-boxes.
Δ Price 0 = 0 (this is an analytical observation, not a game change).
B 2 (Bidding Round 2: S-Box Differential Probability Bid—Bounding Per-S-Box Advantage).
Preprints 206168 i235
Each active S-box uses the AES S-box (inversion in GF ( 2 8 ) followed by an affine map). The maximum differential probability of the AES S-box is DP max = 4 / 256 = 2 6  [22].
Difference bound. For a characteristic over 10 rounds with at least 25 active S-boxes per 4-round block (and at least 10 / 4 · 25 = 50 active S-boxes overall for truncated differentials across rounds):
DP ( Ω ) ( 2 6 ) 25 = 2 150
for any 4-round sub-characteristic. The full 10-round probability is even smaller.
B 3 (Bidding Round 3: Data Complexity Bid—Infeasibility of Collecting Right Pairs).
Preprints 206168 i236
The buyer’s strategy is to query q E pairs and check for the predicted output difference. The expected number of “right pairs” (pairs following the characteristic) among q E queries is μ = q E · 2 150 . The buyer can only distinguish AES from random if μ 1 , requiring q E 2 150 . Since data is bounded by 2 128 blocks (codebook), the attack is infeasible.
Difference bound. By Markov’s inequality:
| Pr B 0 = 1 Pr B 3 = 1 | q E · 2 150 2 128 · 2 150 = 2 22 .
B 4 (Bidding Round 4: Ideal AES Market—Differential Bid Fails Against Random Permutation).
Preprints 206168 i237
Against a truly random permutation, the output difference for any fixed input difference is uniformly distributed. The buyer’s advantage over random is exactly the right-pair detection probability above. Hence: Pr B 4 = 1 = 1 / 2 (random guessing).
Total differential bid cost:
Ask ( g PRP , diff ) q E · 2 150 .
   □
Preprints 206168 i238Preprints 206168 i239Preprints 206168 i240Preprints 206168 i241

10.3. Rotational Cryptanalysis Bid

Preprints 206168 i242
Rotational cryptanalysis [23] exploits the potential for bitwise rotations to commute with cipher operations. For a rotation by r bits, denoted rot r , the buyer checks whether AES K ( rot r ( x ) ) rot r ( AES K ( x ) ) .
Preprints 206168 i243
Theorem 19 
(AES Rotational Bid Failure). For AES-128:
Ask ( g PRP , rotational bid ) q E · 2 128 + negl ( λ ) .
Proof. 
We construct four games.
B 0 (Bidding Round 0: Real AES Market—Rotational Distinguishing Bid).
Preprints 206168 i244
Buyer queries pairs ( x , rot r ( x ) ) and checks whether outputs satisfy the rotational relationship.
B 1 (Bidding Round 1: Key Schedule Asymmetry Bid—Rcon Destroys Rotational Symmetry).
Preprints 206168 i245
The round keys K 0 , K 1 , , K 10 are derived from the master key via the AES key schedule. For rotational cryptanalysis to succeed, the key schedule must preserve the rotational relationship: rot r ( K i ) = K i for some related key K i . However, the AES key schedule includes the Rcon constants (powers of x in GF ( 2 8 ) ), which are not rotationally symmetric.
Difference bound. Let F Rcon : “Rcon values preserve rotational structure.” Since Rcon [ i ] occupies only one byte position and its values ( 01 , 02 , 04 , 08 , ) break rotational symmetry:
Pr F Rcon = 0 ( deterministic : Rcon never preserves rotation ) .
Hence | Pr B 0 = 1 Pr B 1 = 1 | = 0 and the rotational property is destroyed after the first AddRoundKey.
B 2 (Bidding Round 2: S-Box Non-Commutativity Bid—SubBytes Breaks Rotation).
Preprints 206168 i246
Preprints 206168 i247
Even if the key schedule were ignored, the S-box (based on GF ( 2 8 ) inversion) does not commute with bitwise rotation. For random inputs, the probability that S ( rot r ( x ) ) = rot r ( S ( x ) ) for a random byte x is at most 1 / 256 = 2 8 .
Difference bound. With 16 S-boxes per round and 10 rounds, requiring all to preserve rotation:
Pr rotation preserved through all S - boxes ( 2 8 ) 16 = 2 128 per round .
B 3 (Bidding Round 3: Ideal AES Market—Rotational Bid Collapses to Random Bound).
Preprints 206168 i248
Against a random permutation, Pr rot r ( π ( x ) ) = π ( rot r ( x ) ) = 1 / ( 2 128 1 ) . The buyer’s advantage: q E · 2 128 .
Total:
Ask ( g PRP , rotational ) q E · 2 128 .
   □
Preprints 206168 i249Preprints 206168 i250Preprints 206168 i251

10.4. Related-Key Bid and Combined AES Equilibrium

Preprints 206168 i252Preprints 206168 i253
Theorem 20 
(AES Combined Market Equilibrium). Combining all known bid types (differential, linear, rotational, related-key, algebraic, S-box algebraic, integral/Square, impossible differential, meet-in-the-middle):
Ask ( g PRP ) max q E · 2 150 , q E · 2 128 , q E 2 · 2 128 + negl ( λ ) negl ( λ ) ,
for q E 2 64 (practical query bound). The AES market is inequilibrium .
Proof. 
The linear cryptanalysis bid follows an analogous structure to the differential bid, with the best known linear hull bias for 10-round AES being at most 2 75 per approximation, requiring 2 150 data. The related-key bid for AES-128 requires q R K related keys; the best known related-key attack applies only to AES-256 with 2 99 . 5 complexity [24]. The algebraic bid (using Gröbner basis or XL algorithms) has complexity exceeding 2 128 for the full cipher. All bids fail for q E 2 64 .    □
Preprints 206168 i254Preprints 206168 i255Preprints 206168 i256
Theorem 21 
(AES S-Box Algebraic and Integral Bid Failure). The S-box-targeted attack surface of AES—comprising algebraic attacks on the S-box structure, integral/Square attacks, impossible differential attacks, and meet-in-the-middle attacks exploiting S-box linearity—yields a combined ask price bounded by:
Ask ( g PRP , S - box bids ) max 2 128 , q E · 2 83 , 2 13 + negl ( λ ) .
All S-box-targeted bids fail for full-round AES.
Proof. 
We construct four bidding rounds, each targeting a distinct S-box-related attack vector.
B 0 sbox (S-Box Bidding Round 0: Algebraic S-Box Inversion Bid—Exploiting the GF ( 2 8 ) Structure).
Preprints 206168 i257
Preprints 206168 i258
The buyer attempts to solve the AES multivariate equation system using Gröbner basis methods. The system comprises 1280 quadratic equations in 2688 variables over GF ( 2 ) . By the analysis of [25], the Gröbner basis complexity for the full system is:
Compl GB n d ω 2 128 ,
where n is the number of variables, d is the solving degree, and ω is the linear algebra exponent. The algebraic S-box bid fails: Δ Price 0 sbox 2 128 .
B 1 sbox (S-Box Bidding Round 1: Integral/Square Attack Bid—Exploiting S-Box Saturation Properties).
Preprints 206168 i259
The buyer constructs Λ -sets and checks the balanced property. For full 10-round AES, the 4-round integral distinguisher must be extended through 6 additional rounds via key-guessing. The best known integral attack reaches 7 rounds of AES-128 with complexity 2 128 · 2 83 = 2 45 data and 2 128 time—matching brute force. The 3-round security margin yields:
Δ Price 1 sbox q E · 2 83 .
B 2 sbox (S-Box Bidding Round 2: Impossible Differential Bid—S-Box Transition Gaps).
Preprints 206168 i260
The impossible differential bid uses 4-round impossible differentials through the S-box layer. The best known impossible-differential attack reaches 7 rounds of AES-128 with complexity 2 112 . 2 . The 3-round gap yields:
Δ Price 2 sbox 2 13 ( 7 - round attack extrapolated to 10 rounds ) .
B 3 sbox (S-Box Bidding Round 3: Meet-in-the-Middle Bid—S-Box Layer Decomposition).
Preprints 206168 i261
The MITM attack decomposes AES into forward and backward halves. For 10-round AES-128, key-schedule diffusion prevents independent half-key guessing. The bid fails:
Δ Price 3 sbox 2 23 .
Combined S-box bid cost. By the extended difference lemma (Lemma 2):
Ask ( g PRP , S - box bids ) Pr F alg F int F imp F mitm 2 128 + q E · 2 83 + 2 13 + 2 23 2 12 . 6 for q E 2 64 .
   □
Preprints 206168 i262

Session pinging and CNF checking across AES encryption sessions.

For consecutive encryption sessions Session i = ( K i , p i ) and Session i + 1 = ( K i + 1 , p i + 1 ) , the ping mechanism verifies that the key-plaintext pair is not reused: ( K i + 1 , p i + 1 ) ( K j , p j ) for all j i . Under the same key ( K i + 1 = K i ), this reduces to plaintext freshness. The CNF clause φ ping checks the session log for duplicates. The critical ping constraint for AES is the codebook exhaustion bound: after q E encryption queries under the same 128-bit key, the adversary has observed q E input-output pairs of the AES permutation. When q E approaches 2 64 , the birthday bound q E 2 / 2 128 approaches unity, and the PRP advantage becomes non-negligible. The session pinging mechanism makes this key-rotation requirement explicit: the accumulated ping degradation δ ping · N q E · 2 128 · N must remain negligible, mandating key rotation before q E · N 2 128 . This is the well-known AES birthday bound, now formalised within the MTSF ping framework. The session-CNF φ AES , i + 1 under a fresh key is isomorphic to φ AES , i with independent randomness; by Theorem 3, AES is PRP-secure for unbounded sessions under a key-rotation policy.
Table 5. AES block-cipher market: bid types and outcomes.
Table 5. AES block-cipher market: bid types and outcomes.
Bid Type Ask Bound Data Required Outcome
Differential q E · 2 150 2 150 pairs Fail (exceeds codebook)
Linear q E 2 · 2 150 2 150 texts Fail
Rotational q E · 2 128 2 128 pairs Fail
Related-key (AES-128) N/A None known Fail
Algebraic > 2 128 N/A Fail (exceeds brute force)
S-box algebraic (Gröbner) 2 128 2 8 texts Fail (matches brute force)
Integral/Square q E · 2 83 2 32 texts Fail (7-round limit)
Impossible differential 2 13 2 112 . 2 ops Fail (7-round limit)
Meet-in-the-middle 2 23 2 105 ops Fail (7-round limit)
Preprints 206168 i263Preprints 206168 i264Preprints 206168 i265

10.5. PRESENT: Lightweight Block-Cipher Market

Preprints 206168 i266Preprints 206168 i267
Figure 35. PRESENT round structure: a textbook Substitution–Permutation Network (SPN). Each of the 31 rounds applies AddRoundKey, 16 parallel 4-bit S-boxes (sBoxLayer), and a fixed bit permutation (pLayer). The simplicity of the design enables an extremely small hardware footprint (≈1,000 GE), making PRESENT suitable for RFID tags and IoT sensors.
Figure 35. PRESENT round structure: a textbook Substitution–Permutation Network (SPN). Each of the 31 rounds applies AddRoundKey, 16 parallel 4-bit S-boxes (sBoxLayer), and a fixed bit permutation (pLayer). The simplicity of the design enables an extremely small hardware footprint (≈1,000 GE), making PRESENT suitable for RFID tags and IoT sensors.
Preprints 206168 g032
Definition 26 
(PRESENT PRP Security Good).
Ask ( g PRP PRESENT ) = max A PPT | Pr A PRESENT K ( · ) = 1 Pr A π ( · ) = 1 | where K $ { 0 , 1 } 80 ( or { 0 , 1 } 128 ) , π $ Perm ( { 0 , 1 } 64 ) .
Theorem 22 
(PRESENT Differential Bid Failure). For PRESENT-80 with r = 31 rounds:
Ask ( g PRP PRESENT , differential bid ) q E · 2 62 + negl ( λ ) ,
where q E is the number of encryption queries.
Proof. 
We construct four games.
B 0 (Bidding Round 0: Real PRESENT Market—Differential Distinguishing Bid).
Preprints 206168 i268
Buyer queries PRESENT K on chosen-plaintext pairs ( x , x Δ 0 ) and checks whether the output difference matches the predicted Δ r .
B 1 (Bidding Round 1: Active S-Box Counting Bid—SPN Diffusion Guarantees).
Preprints 206168 i269
The PRESENT permutation layer (pLayer) ensures that active S-box outputs in one round spread to distinct S-box inputs in the next round. The minimum number of active S-boxes over 5 rounds is 10 (proven by the designers [28]). Each active 4-bit S-box has maximum differential probability DP max = 2 2 (the PRESENT S-box has max differential 4 / 16 = 2 2 ).
Difference bound. For a 31-round characteristic with at least 31 / 5 × 10 = 60 active S-boxes in the best case:
DP ( Ω ) ( 2 2 ) 10 = 2 20 per 5 - round block ,
giving a full-cipher differential probability of at most ( 2 2 ) 60 = 2 120 . Even the best truncated differentials [29] covering reduced rounds require at least 2 62 chosen plaintexts for a detectable bias.
| Pr B 0 = 1 Pr B 1 = 1 | q E · 2 62 .
B 2 (Bidding Round 2: Data Complexity Bid—64-Bit Block Codebook Bound).
Preprints 206168 i270
With only 2 64 possible plaintext blocks, the buyer can collect at most 2 64 pairs, and the best differential distinguisher requires q E 2 62 chosen plaintexts. For q E 2 32 (practical IoT sessions), the advantage is:
| Pr B 1 = 1 Pr B 2 = 1 | 2 32 · 2 62 = 2 30 .
B 3 (Bidding Round 3: Ideal PRESENT Market—Differential Bid Fails).
Preprints 206168 i271
Preprints 206168 i272
Against a random permutation on { 0 , 1 } 64 , the output difference is uniform. The buyer’s advantage: q E · 2 62 .
Total:
Ask ( g PRP PRESENT , diff ) q E · 2 62 .
   □
Theorem 23 
(PRESENT Linear Bid Failure). For PRESENT-80 with r = 31 rounds:
Ask ( g PRP PRESENT , linear bid ) q E 2 · 2 62 + negl ( λ ) .
Proof. 
We construct three games.
B 0 (Bidding Round 0: Real PRESENT Market—Linear Distinguishing Bid).
Preprints 206168 i273
The buyer collects q E known plaintext-ciphertext pairs and evaluates a linear approximation α , x β , PRESENT K ( x ) = γ , K for chosen masks α , β , γ . The bias ϵ L of the best linear approximation determines the data required: q E 1 / ϵ L 2 .
B 1 (Bidding Round 1: Linear Hull Bias Bid—Bounding Correlation Accumulation).
Preprints 206168 i274
The PRESENT S-box has maximum linear bias | ϵ max | = 4 / 16 = 2 2 per active S-box. By the Piling-Up Lemma, a linear trail over k active S-boxes has bias 2 k 1 · ( 2 2 ) k = 2 k 1 . With at least 60 active S-boxes over 31 rounds, the single-trail bias is 2 61 , and even accounting for linear hull effects [29], the best known bias for full-round PRESENT is below 2 31 , requiring q E 2 62 known plaintexts.
Difference bound.
| Pr B 0 = 1 Pr B 1 = 1 | q E 2 · 2 62 .
B 2 (Bidding Round 2: Ideal PRESENT Market—Linear Bid Fails).
Preprints 206168 i275
Random permutation; linear bias = 0. Buyer advantage: q E 2 · 2 62 .
Total: Ask ( g PRP PRESENT , linear ) q E 2 · 2 62 .    □
Theorem 24 
(PRESENT Combined Market Equilibrium). Combining all known bid types (differential, linear, algebraic, related-key):
Ask ( g PRP PRESENT ) max q E · 2 62 , q E 2 · 2 62 , 2 16 + negl ( λ ) negl ( λ ) ,
for q E 2 32 (practical query bound within 64-bit block birthday limit). The PRESENT market is inequilibriumwithin its lightweight design parameters.
Proof. 
The algebraic bid involves solving a system of multivariate quadratic equations over GF ( 2 ) representing the PRESENT round function. The best known algebraic attack on full-round PRESENT has complexity exceeding 2 80 for PRESENT-80. The related-key attack requires controlling the key schedule difference propagation across 31 rounds; no practical related-key distinguisher is known for full-round PRESENT with a random key. For q E 2 32 : q E 2 · 2 62 2 64 · 2 62 = 2 2 . However, practical IoT sessions have q E 2 30 , keeping all bids negligible. The PRESENT market is in equilibrium for its intended deployment scenario.    □
Preprints 206168 i276
Table 6. PRESENT lightweight block-cipher market: bid types and outcomes.
Table 6. PRESENT lightweight block-cipher market: bid types and outcomes.
Bid Type Ask Bound Data Required Outcome
Differential q E · 2 62 2 62 pairs Fail (exceeds birthday)
Linear q E 2 · 2 62 2 62 texts Fail
Algebraic (MQ) > 2 80 N/A Fail (exceeds brute force)
Related-key N/A None known Fail
Preprints 206168 i277Preprints 206168 i278

10.6. Serpent: Conservative Block-Cipher Market

Preprints 206168 i279Preprints 206168 i280Preprints 206168 i281
Figure 36. Serpent round structure. Each of the 32 rounds applies key mixing, a parallel 4-bit S-box layer (cycling through 8 distinct S-boxes), and a linear transformation for diffusion. The final round replaces the linear transformation with an extra key mixing. The 32-round design provides the largest security margin of any well-studied 128-bit block cipher: the best known attack covers only 12 rounds, leaving a 20-round margin.
Figure 36. Serpent round structure. Each of the 32 rounds applies key mixing, a parallel 4-bit S-box layer (cycling through 8 distinct S-boxes), and a linear transformation for diffusion. The final round replaces the linear transformation with an extra key mixing. The 32-round design provides the largest security margin of any well-studied 128-bit block cipher: the best known attack covers only 12 rounds, leaving a 20-round margin.
Preprints 206168 g033
Definition 27 
(Serpent PRP Security Good).
Ask ( g PRP Serpent ) = max A PPT | Pr A Serpent K ( · ) = 1 Pr A π ( · ) = 1 | where K $ { 0 , 1 } κ , κ { 128 , 192 , 256 } , π $ Perm ( { 0 , 1 } 128 ) .
Theorem 25 
(Serpent Differential Bid Failure). For Serpent-128 with r = 32 rounds:
Ask ( g PRP Serpent , differential bid ) q E · 2 196 + negl ( λ ) .
Proof. 
We construct four games.
B 0 (Bidding Round 0: Real Serpent Market—Differential Distinguishing Bid).
Preprints 206168 i282
Preprints 206168 i283
Buyer queries Serpent K on chosen-plaintext pairs ( x , x Δ 0 ) and checks the output difference.
B 1 (Bidding Round 1: Active S-Box Counting Bid—Conservative Diffusion Design).
Preprints 206168 i284
Serpent’s linear transformation is designed to achieve full diffusion in 2 rounds: every output bit depends on every input bit after 2 rounds. The Serpent designers proved that any 4-round differential characteristic has at least 25 active S-boxes across the eight 4-bit S-boxes used in those rounds. Each Serpent S-box has maximum differential probability DP max = 2 2 (by design: all eight S-boxes are chosen to have max DP 4 / 16 ).
Difference bound. For a 32-round characteristic with at least 32 / 4 × 25 = 200 active S-boxes:
DP ( Ω ) ( 2 2 ) 200 / 4 × 4 = ( 2 2 ) 200 = 2 400
for any single-path differential. Even the best truncated differential attacks on Serpent [31] reach only 12 rounds with 2 126 data complexity, far short of the full 32 rounds.
| Pr B 0 = 1 Pr B 1 = 1 | q E · 2 196 (using the best 12-round differential extrapolated conservatively to 32 rounds).
B 2 (Bidding Round 2: Attack-Reach Bid—Only 12 of 32 Rounds Penetrated).
Preprints 206168 i285
The buyer’s strongest bid covers at most 12 rounds. The remaining 20 rounds present an impenetrable diffusion barrier. Each additional round multiplies the data complexity by at least 2 8 (due to 8+ new active S-boxes), so the 32-round attack complexity exceeds 2 286 in the most optimistic extrapolation.
Difference bound. | Pr B 1 = 1 Pr B 2 = 1 | 2 128 (conservative: even the extrapolated attack exceeds brute force).
B 3 (Bidding Round 3: Ideal Serpent Market—Differential Bid Fails).
Preprints 206168 i286
Against a random permutation on { 0 , 1 } 128 : output difference is uniform. Buyer advantage bounded by q E · 2 196 .
Total:
Ask ( g PRP Serpent , diff ) q E · 2 196 .
   □
Theorem 26 
(Serpent Linear Bid Failure). For Serpent-128 with r = 32 rounds:
Ask ( g PRP Serpent , linear bid ) q E 2 · 2 196 + negl ( λ ) .
Proof. 
We construct three games.
B 0 (Bidding Round 0: Real Serpent Market—Linear Approximation Bid).
Preprints 206168 i287
The buyer collects q E known plaintext-ciphertext pairs and evaluates linear approximations with input mask α and output mask β , seeking a detectable bias.
B 1 (Bidding Round 1: Linear Hull Bias Bid—Multi-S-Box Bias Decay).
Preprints 206168 i288
Preprints 206168 i289
Each Serpent S-box has maximum linear bias | ϵ max | 2 2 . The Piling-Up Lemma gives a single-trail bias of 2 1 k for k active S-boxes, but the linear hull (sum over all trails with the same input/output masks) may concentrate. Nevertheless, the best known linear attack on Serpent [31] covers only 11 rounds with 2 89 known plaintexts, requiring a bias of 2 44 . 5 . Extrapolating to 32 rounds, the linear hull bias drops below 2 98 , requiring q E 2 196 .
Difference bound. | Pr B 0 = 1 Pr B 1 = 1 | q E 2 · 2 196 .
B 2 (Bidding Round 2: Ideal Serpent Market—Linear Bid Fails).
Preprints 206168 i290
Random permutation; bias = 0.
Total: Ask ( g PRP Serpent , linear ) q E 2 · 2 196 .    □
Theorem 27 
(Serpent Combined Market Equilibrium). Combining all known bid types (differential, linear, boomerang, algebraic, related-key):
Ask ( g PRP Serpent ) max q E · 2 196 , q E 2 · 2 196 , q E 2 · 2 128 + negl ( λ ) negl ( λ ) ,
for q E 2 64 (practical query bound). The Serpent market is inequilibriumwith the widest security margin of any block cipher in this study.
Proof. 
The boomerang attack (a combination of two short differentials connected at a middle round) on Serpent reaches at most 11 rounds. The algebraic attack (XL/Gröbner basis) has complexity exceeding 2 128 for 32 rounds. No practical related-key attack is known for full Serpent: the key schedule uses Φ = ( 5 1 ) / 2 (the golden ratio) and the Serpent S-boxes themselves, destroying linear relationships between subkeys. For q E 2 64 : all bid prices are negligible.    □
Table 7. Serpent block-cipher market: bid types and outcomes.
Table 7. Serpent block-cipher market: bid types and outcomes.
Bid Type Ask Bound Rounds Reached Outcome
Differential q E · 2 196 12 of 32 Fail (20-round margin)
Linear q E 2 · 2 196 11 of 32 Fail (21-round margin)
Boomerang q E 2 · 2 128 11 of 32 Fail
Algebraic (MQ) > 2 128 N/A Fail (exceeds brute force)
Related-key N/A None known Fail
Preprints 206168 i291Preprints 206168 i292Preprints 206168 i293

11. Case Study III: Hash-Function Market—Keccak/SHA-3

Preprints 206168 i294
Figure 37. The SHA-3 sponge construction: input blocks are absorbed into the state (XOR + permutation), then output blocks are squeezed from the state. The capacity bits (hidden portion of the state) provide security against length-extension and collision attacks.
Figure 37. The SHA-3 sponge construction: input blocks are absorbed into the state (XOR + permutation), then output blocks are squeezed from the state. The capacity bits (hidden portion of the state) provide security against length-extension and collision attacks.
Preprints 206168 g034
Preprints 206168 i295Preprints 206168 i296
Keccak [32] is the SHA-3 standard, based on the sponge construction with a 1600-bit permutation f = Keccak - f [ 1600 ] consisting of 24 rounds. The state is b = r + c = 1600 bits, with rate r and capacity c. The seller offers three goods:
  • g CR : Collision resistance. Buyer must find m m with H ( m ) = H ( m ) .
  • g Pre : Preimage resistance. Given y, buyer must find m with H ( m ) = y .
  • g LE : Length-extension resistance. Buyer must compute H ( m m ) from H ( m ) without knowing m.
Figure 38. Keccak sponge construction for SHA-3. Message blocks m 1 , , m k are XORed into the rate (r-bit) portion of the 1600-bit state, interleaved with permutation f (24 rounds of θ , ρ , π , χ , ι ). After absorbing, the rate portion is squeezed as the hash output. The capacity (c-bit) portion is never exposed, enforcing collision resistance ( 2 c / 2 ) and preimage resistance ( 2 c ). For SHA3-256: c = 512 .
Figure 38. Keccak sponge construction for SHA-3. Message blocks m 1 , , m k are XORed into the rate (r-bit) portion of the 1600-bit state, interleaved with permutation f (24 rounds of θ , ρ , π , χ , ι ). After absorbing, the rate portion is squeezed as the hash output. The capacity (c-bit) portion is never exposed, enforcing collision resistance ( 2 c / 2 ) and preimage resistance ( 2 c ). For SHA3-256: c = 512 .
Preprints 206168 g035
Theorem 28 
(Keccak Collision Resistance Equilibrium).
In the random sponge model with capacity c:
Ask ( g CR ) q f 2 2 c + 1 + negl ( λ ) ,
where q f is the number of queries to the permutation f.
Proof. 
We construct four games.
B 0 (Bidding Round 0: Real Keccak Market—Collision Bid).
Preprints 206168 i297
Buyer has oracle access to f and f 1 and must find m m with Keccak ( m ) = Keccak ( m ) .
B 1 (Bidding Round 1: Capacity Collision Bid—Matching Hidden State Bits).
Preprints 206168 i298
Preprints 206168 i299
For a collision in the output, the buyer needs the sponge states to match at some point during squeezing. Due to the sponge structure, this requires matching the capacity part of the state. Let F cap : “two queries to f produce the same capacity output.”
Difference bound. By the sponge indifferentiability theorem [33], the Keccak sponge is indifferentiable from a random oracle up to 2 c / 2 queries. For q f queries to f, the probability of a capacity collision:
| Pr B 0 = 1 Pr B 1 = 1 | q f 2 2 c + 1 .
B 2 (Bidding Round 2: Differential Trail Bid—Exploiting χ S-Box Structure). [enhanced,breakable,colback=blue!2!white,colframe=darkblue!40!black,boxrule=0.4pt,arc=1.5pt,left=5pt,right=5pt,top=2pt,bottom=2pt,fontupper=] Purpose: Bound the differential cryptanalysis advantage by establishing a lower bound on active S-boxes and an upper bound on per-S-box differential probability. Differential cryptanalysis works by finding an input difference Δ 0 that propagates to a predictable output difference Δ r with non-negligible probability; the adversary collects `right pairs’ and uses them to recover key bits.
Preprints 206168 i300
The buyer attempts to find a differential characteristic through the 24 rounds of Keccak - f . Each round consists of θ (column parity mixing), ρ (bitwise rotation), π (lane permutation), χ (non-linear mapping), and ι (round constant addition). The χ step has maximum differential probability DP χ 2 2 per 5-bit S-box, and there are 320 parallel 5-bit S-boxes per round.
Difference bound. A differential trail over 24 rounds activates at minimum 24 × 1 = 24 S-boxes (one per round in the best case). Hence:
DP ( Ω f ) ( 2 2 ) 24 = 2 48
for a single-path characteristic. More realistically, the minimum number of active S-boxes over 4 rounds is at least 12 (by the alignment properties of θ and π ), giving DP 2 24 per 4-round block and 2 144 for 24 rounds.
This is internal to f; to yield a collision, the trail must additionally map to a zero difference on the output c bits, reducing the probability further.
B 3 (Bidding Round 3: Ideal Keccak Market—Collision Bid Reaches Birthday Bound).
Preprints 206168 i301
Preprints 206168 i302
In the random sponge model, collisions require Ω ( 2 c / 2 ) queries by the generic birthday bound. For SHA3-256, c = 512 , so 2 256 queries. Pr B 3 = 1 = q f 2 / 2 c + 1 .
Total:
Ask ( g CR ) q f 2 2 c + 1 + negl ( λ ) .
   □
Theorem 29 
(Keccak Preimage Resistance Equilibrium).
Ask ( g Pre ) q f 2 c + negl ( λ ) .
Proof. 
We construct three games.
B 0 (Bidding Round 0: Real Keccak Market—Preimage Bid).
Preprints 206168 i303
Buyer receives target y = Keccak ( m ) for random m and must find any m with Keccak ( m ) = y .
B 1 (Bidding Round 1: Capacity Inversion Bid—Recovering Hidden State).
Preprints 206168 i304
To construct a preimage, the buyer must find an input that, after absorbing, produces a state whose capacity matches the target state’s capacity. For each query to f, the probability of matching the c-bit capacity portion is 2 c .
Difference bound. Over q f queries:
| Pr B 0 = 1 Pr B 1 = 1 | q f 2 c .
B 2 (Bidding Round 2: Ideal Keccak Market—Preimage Bid Bounded by Capacity).
Preprints 206168 i305
In the random sponge model, preimage resistance is min ( 2 n , 2 c ) where n is the output length. For SHA3-256 ( n = 256 , c = 512 ), the bound is 2 256 .
Total: Ask ( g Pre ) q f / 2 c .    □
Theorem 30 
(Keccak Length-Extension Resistance). Ask ( g LE ) q f / 2 c + negl ( λ ) .
Proof. 
B 0 (Bidding Round 0: Real Keccak Market—Length-Extension Bid).
Preprints 206168 i306
Buyer knows H ( m ) (but not m) and must compute H ( m m ) for chosen m .
B 1 (Bidding Round 1: Full-State Recovery Bid—Guessing Hidden Capacity Bits).
Preprints 206168 i307
Unlike Merkle–Damgård hashes, the sponge output reveals only r bits of the b-bit state. The remaining c bits are hidden. To extend, the buyer must recover the full b-bit state after absorbing m. The number of candidate states consistent with the r-bit output is 2 c .
Difference bound. Each query to f 1 tests one candidate capacity value:
| Pr B 0 = 1 Pr B 1 = 1 | q f 2 c .
B 2 (Bidding Round 2: Ideal Keccak Market—Length-Extension Bid Bounded by Capacity).
Preprints 206168 i308
Length-extension attack succeeds with probability q f / 2 c .
Total: Ask ( g LE ) q f / 2 c .    □
Preprints 206168 i309Preprints 206168 i310Preprints 206168 i311Preprints 206168 i312Preprints 206168 i313Preprints 206168 i314
Table 8. Keccak/SHA-3 market summary.
Table 8. Keccak/SHA-3 market summary.
Good Ask Bound SHA3-256 ( c = 512 ) Status
Collision ( g CR ) q f 2 / 2 c + 1 q f 2 / 2 513 Equilibrium
Preimage ( g Pre ) q f / 2 c q f / 2 512 Equilibrium
Length-extension ( g LE ) q f / 2 c q f / 2 512 Equilibrium

11.1. BLAKE3: Parallelisable Hash-Function Market

Preprints 206168 i315Preprints 206168 i316Preprints 206168 i317
Figure 39. BLAKE3 Merkle tree hash structure. Input is split into 64-byte chunks, each compressed by a 7-round ARX compression function. Chaining values are combined pairwise in a binary Merkle tree. The root node produces the 256-bit hash output. The tree structure provides inherent parallelism and structural length-extension resistance: appending data changes the tree structure, not just the final state.
Figure 39. BLAKE3 Merkle tree hash structure. Input is split into 64-byte chunks, each compressed by a 7-round ARX compression function. Chaining values are combined pairwise in a binary Merkle tree. The root node produces the 256-bit hash output. The tree structure provides inherent parallelism and structural length-extension resistance: appending data changes the tree structure, not just the final state.
Preprints 206168 g036
Definition 28 
(BLAKE3 Hash Security Goods). The BLAKE3 market offers three goods:
  • g CR B 3 : Collision resistance. Ask ( g CR B 3 ) = max A Pr A finds m m : BLAKE 3 ( m ) = BLAKE 3 ( m ) .
  • g Pre B 3 : Preimage resistance. Ask ( g Pre B 3 ) = max A Pr A finds m : BLAKE 3 ( m ) = y for random y.
  • g LE B 3 : Length-extension resistance.
    Ask ( g LE B 3 ) = max A Pr A computes BLAKE 3 ( m m ) from BLAKE 3 ( m ) .
Theorem 31 
(BLAKE3 Collision Resistance Equilibrium). In the ideal compression function model:
Ask ( g CR B 3 ) q f 2 2 257 + negl ( λ ) ,
where q f is the number of queries to the compression function.
Proof. 
We construct four games.
B 0 (Bidding Round 0: Real BLAKE3 Market—Collision Bid).
Preprints 206168 i318
Buyer has oracle access to the BLAKE3 compression function and must find m m with BLAKE 3 ( m ) = BLAKE 3 ( m ) .
B 1 (Bidding Round 1: Merkle Tree Collision Localisation Bid—Reducing to Compression Collision).
Preprints 206168 i319
A collision in the BLAKE3 output requires either: (a) a collision in the root compression call, or (b) a collision at some internal node that propagates to the root. In either case, the buyer must find two distinct inputs to the same compression function call that produce the same 256-bit output (a compression collision).
Difference bound. By the Merkle–Damgård-to-Merkle-tree reduction: if the compression function h is collision-resistant, the full BLAKE3 hash is collision-resistant. The number of compression calls for a message of chunks is 2 1 (binary tree nodes). Each compression call is an independent collision target.
| Pr B 0 = 1 Pr B 1 = 1 | 0 ( structural reduction , no loss ) .
B 2 (Bidding Round 2: ARX Compression Function Bid—7-Round Quarter-Round Diffusion).
Preprints 206168 i320
The BLAKE3 compression function applies 7 rounds of ChaCha-derived quarter-rounds to a 512-bit internal state (16 words × 32 bits). Each quarter-round performs: a + = b ; d = a ; d = 16 ; c + = d ; b = c ; b = 12 ; (and similarly with rotations by 8 and 7). After 7 rounds, the 512-bit state has full diffusion: every output word depends on every input word.
Difference bound. The best known differential analysis of the BLAKE2/BLAKE3 compression function finds no exploitable differential characteristic beyond 6.5 rounds. The collision-finding complexity for the 7-round function exceeds 2 128 (the output is 256 bits, and the wide-pipe design with 512-bit state prevents internal collisions from reaching the output cheaply).
| Pr B 1 = 1 Pr B 2 = 1 | q f 2 2 257 .
B 3 (Bidding Round 3: Ideal BLAKE3 Market—Collision Bid Reaches Birthday Bound).
Preprints 206168 i321
With an ideal compression function, the 256-bit output gives birthday bound q f 2 / 2 257 .
Total:
Ask ( g CR B 3 ) q f 2 2 257 + negl ( λ ) .
   □
Theorem 32 
(BLAKE3 Preimage Resistance Equilibrium).
Ask ( g Pre B 3 ) q f 2 256 + negl ( λ ) .
Proof. 
We construct three games.
B 0 (Bidding Round 0: Real BLAKE3 Market—Preimage Bid).
Preprints 206168 i322
Buyer receives y = BLAKE 3 ( m ) for random m and must find any m with BLAKE 3 ( m ) = y .
B 1 (Bidding Round 1: Root Inversion Bid—Inverting the Compression Function).
Preprints 206168 i323
To find a preimage, the buyer must produce a message whose Merkle tree root matches y. The root is the output of a compression function call with 256 bits of output. Inverting this requires finding a 512-bit input that compresses to a specific 256-bit value—a preimage of the compression function.
Difference bound. The wide-pipe structure (512-bit state → 256-bit output) means 2 256 states map to each output value on average. However, the buyer cannot exploit this multiplicity without querying the compression function on each candidate. Each query matches with probability 2 256 .
| Pr B 0 = 1 Pr B 1 = 1 | q f 2 256 .
B 2 (Bidding Round 2: Ideal BLAKE3 Market—Preimage Bid Bounded by Output Size). [enhanced,breakable,colback=blue!2!white,colframe=darkblue!40!black,boxrule=0.4pt,arc=1.5pt,left=5pt,right=5pt,top=2pt,bottom=2pt,fontupper=] Purpose: Reach the ideal game in which every adversarial attack vector has been systematically eliminated by the preceding hops. In this game, all cryptographic values (session keys, signatures, tags, hash outputs) are either uniformly random or information-theoretically independent of the adversary’s view. No further price adjustment is possible.
Preprints 206168 i324
Preprints 206168 i325
With an ideal compression function, preimage resistance is q f / 2 256 .
Total: Ask ( g Pre B 3 ) q f / 2 256 .    □
Theorem 33 
(BLAKE3 Length-Extension Resistance). Ask ( g LE B 3 ) = 0 (structural immunity).
Proof. 
Unlike Merkle–Damgård hashes (MD5, SHA-1, SHA-256), BLAKE3 uses a Merkle tree. Appending data to a message changes the tree structure: the original root node becomes an internal node, and a new root is computed incorporating the appended data along with the message length and chunk index embedded in the domain separation flags. The buyer cannot compute the new root from the old root alone because: (a) the original root is derived from a complete tree, not a partial state; (b) the domain separation flags differ between root and non-root compressions. Hence length-extension is structurally impossible:
Ask ( g LE B 3 ) = 0 .
   □
Preprints 206168 i326Preprints 206168 i327
Table 9. BLAKE3 hash-function market summary.
Table 9. BLAKE3 hash-function market summary.
Good Ask Bound Practical Value Status
Collision ( g CR B 3 ) q f 2 / 2 257 2 129 for q f 2 64 Equilibrium
Preimage ( g Pre B 3 ) q f / 2 256 2 192 for q f 2 64 Equilibrium
Length-extension ( g LE B 3 ) 0 0 (structural) Equilibrium

11.2. ASCON-Hash: NIST Lightweight Hash-Function Market

Preprints 206168 i328Preprints 206168 i329
Figure 40. ASCON permutation round structure. The 320-bit state (5 × 64-bit words) is processed by constant addition ( p C ), a parallel 5-bit S-box substitution layer ( p S , 64 S-boxes), and linear diffusion ( p L , word-level rotations and XOR). ASCON-Hash applies 12 rounds per absorption step.
Figure 40. ASCON permutation round structure. The 320-bit state (5 × 64-bit words) is processed by constant addition ( p C ), a parallel 5-bit S-box substitution layer ( p S , 64 S-boxes), and linear diffusion ( p L , word-level rotations and XOR). ASCON-Hash applies 12 rounds per absorption step.
Preprints 206168 g037
Definition 29 
(ASCON-Hash Security Goods). The ASCON-Hash market offers three goods, directly analogous to Keccak:
  • g CR Ascon : Collision resistance. Buyer must find m m with AsconHash ( m ) = AsconHash ( m ) .
  • g Pre Ascon : Preimage resistance. Given y, buyer must find m with AsconHash ( m ) = y .
  • g LE Ascon : Length-extension resistance. Buyer must compute AsconHash ( m m ) from AsconHash ( m ) without knowing m.
Theorem 34 
(ASCON-Hash Collision Resistance Equilibrium). In the random sponge model with capacity c = 256 :
Ask ( g CR Ascon ) q f 2 2 c + 1 + negl ( λ ) = q f 2 2 257 + negl ( λ ) .
Proof. 
We construct four games.
B 0 (Bidding Round 0: Real ASCON-Hash Market—Collision Bid). [enhanced,breakable,colback=blue!2!white,colframe=darkblue!40!black,boxrule=0.4pt,arc=1.5pt,left=5pt,right=5pt,top=2pt,bottom=2pt,fontupper=] Purpose: Establish the baseline game in which the scheme or protocol runs completely honestly and the adversary has unrestricted oracle access. This round defines the quantity Ask 0 that all subsequent price adjustments are measured against. Every following bidding round introduces a single controlled modification; summing the resulting price adjustments yields the final equilibrium bound.
Preprints 206168 i330
Buyer has oracle access to the ASCON permutation p and its inverse and must find m m with AsconHash ( m ) = AsconHash ( m ) .
B 1 (Bidding Round 1: Capacity Collision Bid—Matching 256 Hidden State Bits).
Preprints 206168 i331
Preprints 206168 i332
As in the Keccak proof, a sponge collision requires the capacity parts of two states to match at some point during squeezing. The ASCON sponge is indifferentiable from a random oracle up to 2 c / 2 = 2 128 queries [33] (the sponge indifferentiability theorem applies to any sponge with a random permutation).
| Pr B 0 = 1 Pr B 1 = 1 | q f 2 2 c + 1 = q f 2 2 257 .
B 2 (Bidding Round 2: Differential Trail Bid—Exploiting ASCON S-Box Structure). [enhanced,breakable,colback=blue!2!white,colframe=darkblue!40!black,boxrule=0.4pt,arc=1.5pt,left=5pt,right=5pt,top=2pt,bottom=2pt,fontupper=] Purpose: Bound the differential cryptanalysis advantage by establishing a lower bound on active S-boxes and an upper bound on per-S-box differential probability. Differential cryptanalysis works by finding an input difference Δ 0 that propagates to a predictable output difference Δ r with non-negligible probability; the adversary collects `right pairs’ and uses them to recover key bits.
Preprints 206168 i333
The ASCON S-box is a 5-bit non-linear function with maximum differential probability DP max = 2 2 and algebraic degree 2. With 64 parallel S-boxes per round and 12 rounds, the minimum number of active S-boxes over 3 rounds is at least 12 (by the ASCON designers’ analysis [36]). Hence:
DP ( Ω p ) ( 2 2 ) 48 = 2 96
for a 12-round characteristic (conservative estimate using 4 blocks of 3 rounds each, with 12 active S-boxes per block). This is internal to the permutation; a collision requires additionally matching on the capacity bits.
B 3 (Bidding Round 3: Ideal ASCON-Hash Market—Collision Bid Reaches Birthday Bound).
Preprints 206168 i334
In the random sponge model: collisions require Ω ( 2 c / 2 ) = Ω ( 2 128 ) queries. Pr B 3 = 1 = q f 2 / 2 c + 1 .
Total:
Ask ( g CR Ascon ) q f 2 2 257 + negl ( λ ) .
   □
Theorem 35 
(ASCON-Hash Preimage Resistance Equilibrium).
Ask ( g Pre Ascon ) q f 2 c + negl ( λ ) = q f 2 256 + negl ( λ ) .
Proof. 
We construct three games analogous to the Keccak preimage proof.
B 0 (Bidding Round 0: Real ASCON-Hash Market—Preimage Bid).
Preprints 206168 i335
Buyer receives target y = AsconHash ( m ) and must find m with AsconHash ( m ) = y .
B 1 (Bidding Round 1: Capacity Inversion Bid—Recovering 256 Hidden Bits).
Preprints 206168 i336
To construct a preimage, the buyer must find an input producing a sponge state whose capacity matches the target state’s capacity. Each query to the permutation p matches with probability 2 c = 2 256 .
| Pr B 0 = 1 Pr B 1 = 1 | q f 2 256 .
B 2 (Bidding Round 2: Ideal ASCON-Hash Market—Preimage Bid Bounded by Capacity).
Preprints 206168 i337
Preprints 206168 i338
Random sponge; preimage resistance is min ( 2 n , 2 c ) = min ( 2 256 , 2 256 ) = 2 256 .
Total: Ask ( g Pre Ascon ) q f / 2 256 .    □
Theorem 36 
(ASCON-Hash Length-Extension Resistance). Ask ( g LE Ascon ) q f / 2 256 + negl ( λ ) .
Proof. 
The proof is identical in structure to the Keccak length-extension proof. The sponge output reveals only r = 64 bits of the 320-bit state. The remaining c = 256 bits are hidden. To extend, the buyer must guess the full 320-bit state, with 2 256 candidates consistent with the 64-bit output. Each query tests one candidate: success probability q f / 2 256 .    □
Preprints 206168 i339Preprints 206168 i340
Table 10. ASCON-Hash lightweight market summary.
Table 10. ASCON-Hash lightweight market summary.
Good Ask Bound ASCON-Hash ( c = 256 ) Status
Collision ( g CR Ascon ) q f 2 / 2 c + 1 q f 2 / 2 257 Equilibrium
Preimage ( g Pre Ascon ) q f / 2 c q f / 2 256 Equilibrium
Length-extension ( g LE Ascon ) q f / 2 c q f / 2 256 Equilibrium
Preprints 206168 i341Preprints 206168 i342

12. Case Study IV: Stream-Cipher Market—Grain-128a

Preprints 206168 i343Preprints 206168 i344
Figure 41. Grain-128a stream cipher structure. The 128-bit LFSR and 128-bit NFSR form a 256-bit state. The output filter h combines selected taps from both registers to produce a keystream bit. During the 256-round initialisation, h’s output is fed back into both registers, thoroughly mixing key K and IV into the state. Normal keystream generation uses only the forward path.
Figure 41. Grain-128a stream cipher structure. The 128-bit LFSR and 128-bit NFSR form a 256-bit state. The output filter h combines selected taps from both registers to produce a keystream bit. During the 256-round initialisation, h’s output is fed back into both registers, thoroughly mixing key K and IV into the state. Normal keystream generation uses only the forward path.
Preprints 206168 g038
Preprints 206168 i345

12.1. Grain-128a Market Setup

Grain-128a [38] is a lightweight stream cipher with a 128-bit key K, a 96-bit IV, and an internal state of 256 bits split into a 128-bit LFSR (Linear Feedback Shift Register) and a 128-bit NFSR (Nonlinear Feedback Shift Register). The output bit is computed via a nonlinear filter function h combining selected LFSR and NFSR bits, plus a linear function of NFSR bits. The seller offers g PRG : pseudorandom generator security, i.e., distinguishing the keystream from random.
Definition 30 
(Stream Cipher PRG Good).
Ask ( g PRG ) = max A PPT | Pr A ( Grain ( K , IV ) ) = 1 Pr A ( R ) = 1 | where R $ { 0 , 1 } L , L is the keystream length .

12.2. State Recovery Attack Bid

Preprints 206168 i346
Theorem 37 
(Grain-128a State Recovery Bid Failure).
Ask ( g PRG , state recovery bid ) L · 2 256 + negl ( λ ) ,
where L is the observed keystream length.
Proof. 
We construct four games.
B 0 (Bidding Round 0: Real Grain-128a Market—State Recovery Bid). [enhanced,breakable,colback=blue!2!white,colframe=darkblue!40!black,boxrule=0.4pt,arc=1.5pt,left=5pt,right=5pt,top=2pt,bottom=2pt,fontupper=] Purpose: Establish the baseline game in which the scheme or protocol runs completely honestly and the adversary has unrestricted oracle access. This round defines the quantity Ask 0 that all subsequent price adjustments are measured against. Every following bidding round introduces a single controlled modification; summing the resulting price adjustments yields the final equilibrium bound.
Preprints 206168 i347
Buyer observes L keystream bits z 0 , z 1 , , z L 1 and attempts to determine the full 256-bit internal state at some time step t.
B 1 (Bidding Round 1: Algebraic Complexity Bid—Linearising the NFSR System).
Preprints 206168 i348
Preprints 206168 i349
The NFSR feedback polynomial g ( x ) of Grain-128a has algebraic degree 6 with 46 monomials. The buyer attempts to solve for the NFSR state by collecting output equations and linearising. Each output bit gives one equation in 256 unknowns. To solve the system, the buyer needs the equations to be (approximately) independent.
Difference bound. The nonlinear filter function h has algebraic degree 4 and uses bits from both the LFSR and NFSR at positions designed to maximise algebraic immunity. The algebraic immunity of h is AI ( h ) = 4 , meaning that any annihilator of h or h 1 has degree at least 4. Algebraic attacks [39] require 256 4 2 28 . 9 equations of degree 4 , but then solving a system of this size over GF ( 2 ) with 2 28 . 9 equations in 2 28 . 9 unknowns has complexity Ω ( ( 2 28 . 9 ) ω ) 2 68 where ω 2 . 37 is the matrix multiplication exponent.
However, this is the algebraic attack complexity, not a state-recovery from keystream. The critical observation is that the initialisation phase runs 256 rounds with output feedback, thoroughly mixing K and IV into the state. The buyer must invert this initialisation to recover K.
| Pr B 0 = 1 Pr B 1 = 1 | L · 2 256 .
This bound follows because each output bit is a degree-4 function of 256 state bits, providing at most O ( log ( L ) ) bits of information about the state, and the state space is 2 256 .
B 2 (Bidding Round 2: LFSR Correlation Bid—Exploiting Output Function Bias). [enhanced,breakable,colback=blue!2!white,colframe=darkblue!40!black,boxrule=0.4pt,arc=1.5pt,left=5pt,right=5pt,top=2pt,bottom=2pt,fontupper=] Purpose: Eliminate the adversarial attack vector identified by this bidding round’s title (LFSR Correlation Bid—Exploiting Output Function Bias), isolating the corresponding hardness assumption as the sole price adjustment. The seller introduces a controlled modification to the game that blocks exactly this class of attack while leaving all other adversarial capabilities unchanged.
Preprints 206168 i350
The buyer exploits the LFSR linearity to mount a correlation attack. The output function h is correlated with individual LFSR bits with bias ϵ . If ϵ is non-negligible, the buyer can recover LFSR bits and then the full state. The resiliency of h is designed to be 4, meaning correlation with any set of 4 input variables is zero.
Difference bound. Best-known correlation of h with linear functions of the state has bias 2 48 for the full function. Recovering the 128-bit LFSR state via fast correlation attacks requires L 2 96 / ϵ 2 = 2 96 / 2 96 = 2 192 keystream bits, which exceeds the maximal keystream length allowed per ( K , IV ) pair.
| Pr B 1 = 1 Pr B 2 = 1 | L 2 · 2 96 2 128 negl ( λ ) .
B 3 (Bidding Round 3: Ideal Grain-128a Market—State Recovery Bid Fails).
Preprints 206168 i351
Random keystream; state recovery gives no advantage: Pr B 3 = 1 = 1 / 2 .
Total: Ask ( state recovery ) L · 2 256 + negl ( λ ) .
B sca (Side-Channel Bid: Comprehensive Physical Leakage Attack.)
Preprints 206168 i352
Preprints 206168 i353
SCA extended difference lemma. F sca = F SPA F DPA F timing F cache F EMA F fault F cold F acoustic F photonic : “ A phys recovers 1 secret bit via any physical channel from q phys measurements.” By Lemma 2, the side-channel event is independent of the mathematical failure events F nonce , F hash , in the preceding rounds, so their joint probability satisfies Pr k F k F sca k Pr [ F k ] + Adv total SCA ( λ , d ) . With the comprehensive countermeasure suite, Adv total SCA = negl ( λ ) , preserving market equilibrium.
B tight (Tight Security Reduction—Additional Proof.)
Preprints 206168 i354
Total Session Bound and Key Rotation Recommendation.
Preprints 206168 i355
Session pinging and CNF checking within the proof. For consecutive keystream sessions Session i = ( K , IV i ) and Session i + 1 = ( K , IV i + 1 ) , the ping check verifies IV freshness: IV i + 1 { IV 1 , , IV i } . This is critical because IV reuse under the same key K immediately leaks z i z i + 1 (the XOR of two plaintexts), collapsing the distinguishing and state-recovery markets simultaneously. The CNF clause φ iv enforces this via an IV log. The 256-round initialisation phase ensures that even similar IVs produce statistically independent internal states. The session-CNF φ Grain , i + 1 is isomorphic to φ Grain , i with IV i IV i + 1 ; since the state after initialisation is a fresh 256-bit value, the security reduction is session-index-independent. By Theorem 3, Grain-128a is PRG-secure for unbounded sessions under IV non-reuse, with δ ping = 0 (enforced by counter-based IV management).    □

12.3. Key Recovery Attack Bid

Preprints 206168 i356
Theorem 38 
(Grain-128a Key Recovery Bid Failure).
Ask ( g PRG , key recovery bid ) 2 128 + log 2 ( q IV ) + negl ( λ ) ,
where q IV is the number of distinct IVs observed.
Proof. 
We construct four games.
B 0 (Bidding Round 0: Real Grain-128a Market—Key Recovery Bid). [enhanced,breakable,colback=blue!2!white,colframe=darkblue!40!black,boxrule=0.4pt,arc=1.5pt,left=5pt,right=5pt,top=2pt,bottom=2pt,fontupper=] Purpose: Establish the baseline game in which the scheme or protocol runs completely honestly and the adversary has unrestricted oracle access. This round defines the quantity Ask 0 that all subsequent price adjustments are measured against. Every following bidding round introduces a single controlled modification; summing the resulting price adjustments yields the final equilibrium bound.
Preprints 206168 i357
Buyer observes keystreams under the same key K but different IVs: ( z ( 1 ) , IV 1 ) , , ( z ( q IV ) , IV q IV ) . Goal: output K.
B 1 (Bidding Round 1: Initialisation Inversion Bid—Inverting 256 Rounds of Nonlinear Mixing). [enhanced,breakable,colback=blue!2!white,colframe=darkblue!40!black,boxrule=0.4pt,arc=1.5pt,left=5pt,right=5pt,top=2pt,bottom=2pt,fontupper=] Purpose: Bound the linear cryptanalysis advantage via the piling-up lemma. A linear distinguisher evaluates α , x β , E K ( x ) = γ , K for bias ϵ L ; with q E 1 / ϵ L 2 known plaintext pairs, it recovers key bits with non-negligible probability.
Preprints 206168 i358
The buyer attempts to invert the 256-round initialisation to recover ( K , IV ) from the post-initialisation state. The initialisation feeds back the output into the LFSR, creating a highly nonlinear, non-invertible mixing of K and IV .
Difference bound. Each initialisation round applies: LFSR [ t + 128 ] = f ( LFSR ) h ( state ) NFSR [ t ] , and NFSR [ t + 128 ] = g ( NFSR ) LFSR [ t ] h ( state ) . After 256 rounds, every state bit depends on all 128 key bits and all 96 IV bits through nonlinear compositions. The inversion complexity is at least 2 128 (exhaustive key search).
| Pr B 0 = 1 Pr B 1 = 1 | 2 128 .
B 2 (Bidding Round 2: Multi-IV Correlation Bid—Combining Equations Across IVs).
Preprints 206168 i359
With q IV keystreams, the buyer forms a system of equations. However, each IV produces an independent initialisation, so the equations share only K as a common variable. The buyer’s advantage grows linearly with q IV :
| Pr B 1 = 1 Pr B 2 = 1 | q IV · 2 128 .
B 3 (Bidding Round 3: Ideal Grain-128a Market—Key Recovery Bid Fails).
Preprints 206168 i360
K uniformly random and independent. Pr B 3 = 1 = 2 128 .
Total: Ask ( key recovery ) q IV · 2 128 .
Session pinging within key recovery. Each new IV session Session i + 1 = ( K , IV i + 1 ) contributes one additional equation to the buyer’s multi-IV correlation system. The ping mechanism bounds the total number of structurally distinct sessions: with q IV sessions, the accumulated advantage is q IV · 2 128 . The ping check IV i + 1 IV used ensures each session provides at most one independent equation. Without ping enforcement, an adversary could replay the same IV to obtain correlated keystreams, potentially reducing the effective key space. The CNF clause φ iv detects any such replay. By Theorem 3 with δ ping q IV · 2 128 , key recovery remains infeasible for q IV 2 64 .    □

12.4. Distinguishing Attack Bid

Preprints 206168 i361
Theorem 39 
(Grain-128a Distinguishing Bid Failure).
Ask ( g PRG , distinguishing bid ) L 2 · 2 97 + negl ( λ ) .
Proof. 
We construct three games.
B 0 (Bidding Round 0: Real Grain-128a Market—PRG Distinguishing Bid).
Preprints 206168 i362
Buyer receives either Grain ( K , IV ) or R $ { 0 , 1 } L and must decide which.
B 1 (Bidding Round 1: Statistical Bias Bid—Detecting Output Function Imbalance).
Preprints 206168 i363
The buyer looks for statistical biases in the keystream. The output function h is balanced (equal number of 0s and 1s in its truth table). However, the composition of h with the LFSR/NFSR evolution may introduce subtle biases.
Difference bound. The best known bias in the Grain-128a output is bounded by ϵ 2 48 . 5  [40]. Detecting a bias ϵ with confidence requires L 1 / ϵ 2 = 2 97 keystream bits. For L < 2 97 :
| Pr B 0 = 1 Pr B 1 = 1 | L · ϵ L · 2 48 . 5 .
More precisely, the advantage of the optimal linear distinguisher is:
Adv dist L · ϵ L 2 · 2 97 ( using Piling - up lemma ) .
B 2 (Bidding Round 2: Ideal Grain-128a Market—Distinguishing Bid Fails).
Preprints 206168 i364
Preprints 206168 i365
Random string; buyer advantage = 0.
Total: Ask ( distinguishing ) L 2 · 2 97 .
Session pinging within distinguishing. Across multiple sessions, the buyer accumulates keystream bits: session Session i + 1 provides L i + 1 additional bits. The total observed length is L total = j = 1 i + 1 L j . The distinguishing advantage grows as L total 2 · 2 97 . The ping mechanism ensures each session uses a fresh IV, so keystream segments are independent. The CNF clause φ dist checks that the accumulated keystream passes statistical bias tests. For practical keystream budgets ( L total 2 48 ), the accumulated advantage is 2 96 · 2 97 = 2 1 —still below the distinguishing threshold. Key rotation before L total = 2 48 maintains equilibrium.    □

12.5. Time-Memory-Data Trade-Off Bid

Preprints 206168 i366
Theorem 40 
(Grain-128a TMTO Bid Failure). For any time-memory-data trade-off with parameters T (time), M (memory), D (data):
Ask ( g PRG , TMTO bid ) T · M · D 2 256 + negl ( λ ) ,
subject to the constraint T · M 2 · D 2 2 512 (Babbage-Golić curve [41]).
Proof. 
We construct three games.
B 0 (Bidding Round 0: Real Grain-128a Market—TMTO Precomputation Bid).
Preprints 206168 i367
Preprints 206168 i368
Buyer precomputes a table of size M mapping keystream prefixes to states, observes D keystream segments, and inverts using time T.
B 1 (Bidding Round 1: Hellman TMTO Bid—Precomputed Chain Coverage).
Preprints 206168 i369
The buyer uses Hellman’s TMTO [42]: precompute M = 2 m chains of length T / M = 2 t in the state space N = 2 256 . Coverage: M · T / M = T states. The probability of the target state being in the table is T / N = T / 2 256 . With D observations, the success probability is:
Pr TMTO success D · T / 2 256 .
Difference bound. The classical TMTO curve gives T · M 2 = N 2 = 2 512 for single-target attacks. With D data points: T · M 2 · D 2 = 2 512 . For M = D = 2 64 : T = 2 512 / ( 2 128 · 2 128 ) = 2 256 , which is exhaustive search.
B 2 (Bidding Round 2: Ideal Grain-128a Market—TMTO Bid Faces Full 2 256 State Space).
Preprints 206168 i370
Random function; TMTO on a random function of the same state size has identical complexity.
Total: Ask ( TMTO ) T · D / 2 256 , which is negligible for practical parameters.
Session pinging within TMTO. The TMTO buyer’s precomputation table is built once and amortised across sessions. With each new session Session i + 1 using a fresh IV, the buyer obtains one additional data point D i + 1 . The total data across i + 1 sessions is D total = i + 1 . The TMTO curve T · M 2 · D total 2 2 512 constrains the buyer’s total resources. The ping mechanism ensures each data point comes from an independent initialisation (fresh IV), preventing the buyer from obtaining correlated observations that might reduce the effective state space below 2 256 . The session-CNF clause φ tmto checks that the buyer’s resource budget ( T , M , D ) satisfies the TMTO curve constraint. By Theorem 3, the TMTO bid remains unsuccessful for unbounded sessions as long as the accumulated resources satisfy the Babbage-Golić constraint.    □
Preprints 206168 i371Preprints 206168 i372
Table 11. Grain-128a stream-cipher market summary.
Table 11. Grain-128a stream-cipher market summary.
Bid Type Ask Bound Practical Bound Status
State recovery L · 2 256 2 192 Equilibrium
Key recovery q IV · 2 128 2 64 Equilibrium
Distinguishing L 2 · 2 97 2 33 Equilibrium
TMTO T D / 2 256 2 128 Equilibrium

12.6. ChaCha20: ARX Stream-Cipher Market

Preprints 206168 i373Preprints 206168 i374Preprints 206168 i375
Figure 42. ChaCha20 state matrix and quarter-round operation. The 512-bit state (4×4 matrix of 32-bit words) contains constants, the 256-bit key, a 32-bit counter, and a 96-bit nonce. Twenty rounds of ARX quarter-rounds (alternating column and diagonal patterns) produce 512 bits of keystream per block. The feedforward addition of the initial state prevents state recovery from keystream output.
Figure 42. ChaCha20 state matrix and quarter-round operation. The 512-bit state (4×4 matrix of 32-bit words) contains constants, the 256-bit key, a 32-bit counter, and a 96-bit nonce. Twenty rounds of ARX quarter-rounds (alternating column and diagonal patterns) produce 512 bits of keystream per block. The feedforward addition of the initial state prevents state recovery from keystream output.
Preprints 206168 g039
Definition 31 
(ChaCha20 PRG Security Good).
Ask ( g PRG ChaCha ) = max A PPT | Pr A ( ChaCha 20 ( K , nonce , ctr ) ) = 1 Pr A ( R ) = 1 | where R $ { 0 , 1 } L , L is the keystream length .
Theorem 41 
(ChaCha20 State Recovery Bid Failure).
Ask ( g PRG ChaCha , state recovery bid ) L · 2 256 + negl ( λ ) .
Proof. 
We construct four games.
B 0 (Bidding Round 0: Real ChaCha20 Market—State Recovery Bid).
Preprints 206168 i376
Buyer observes L keystream bits and attempts to determine the 512-bit internal state.
B 1 (Bidding Round 1: Feedforward Inversion Bid—Undoing the Addition).
Preprints 206168 i377
ChaCha20’s output is state final = ChaCha 20 _ block ( S 0 ) + S 0 , where S 0 is the initial state and + denotes word-wise addition mod 2 32 . The buyer observes 512 bits of state final + S 0 but does not know S 0 . To recover S 0 , the buyer must solve state final = F ( S 0 ) + S 0 for S 0 , where F is the 20-round ChaCha permutation. This is a nonlinear equation in 512 unknown bits.
Difference bound. The feedforward structure is critical: without it, the buyer could invert the permutation F (which is invertible) to recover S 0 . With feedforward, the buyer must find a fixed point of the function G ( S 0 ) = output F ( S 0 ) , which has no known efficient algorithm. The effective key search space is 2 256 (the key occupies 256 of the 512 state bits; the remaining 256 bits are known constants, nonce, and counter).
| Pr B 0 = 1 Pr B 1 = 1 | L · 2 256 .
B 2 (Bidding Round 2: Differential-ARX Bid—Propagating Differences Through Quarter-Rounds).
Preprints 206168 i378
The buyer attempts differential cryptanalysis on the ChaCha core function. Each quarter-round applies four ARX operations. The modular addition a + b has maximum differential probability DP max = 1 for zero differences but decays rapidly: for random non-zero differences, the expected number of rounds before the difference becomes uniformly distributed is approximately 4. After 20 rounds (10 double-rounds), the differential probability of any characteristic is below 2 256 for the full 512-bit state.
Difference bound. The best known differential-linear attack on ChaCha reaches 7 rounds with 2 218 complexity [43]. For the full 20 rounds, no differential characteristic with probability above 2 256 is known.
| Pr B 1 = 1 Pr B 2 = 1 | negl ( λ ) .
B 3 (Bidding Round 3: Ideal ChaCha20 Market—State Recovery Bid Fails).
Preprints 206168 i379
Random keystream; no state to recover. Pr B 3 = 1 = 1 / 2 .
Total: Ask ( state recovery ) L · 2 256 + negl ( λ ) .    □
Theorem 42 
(ChaCha20 Distinguishing Bid Failure).
Ask ( g PRG ChaCha , distinguishing bid ) L · 2 256 + negl ( λ ) .
Proof. 
We construct three games.
B 0 (Bidding Round 0: Real ChaCha20 Market—PRG Distinguishing Bid).
Preprints 206168 i380
Preprints 206168 i381
Buyer receives either ChaCha 20 ( K , nonce ) or R $ { 0 , 1 } L and must decide which.
B 1 (Bidding Round 1: Statistical Bias Bid—Detecting ARX Output Imbalance). [enhanced,breakable,colback=blue!2!white,colframe=darkblue!40!black,boxrule=0.4pt,arc=1.5pt,left=5pt,right=5pt,top=2pt,bottom=2pt,fontupper=] Purpose: Replace FN-DSA’s fast discrete Gaussian sampler with the ideal exact Gaussian, removing the small statistical gap introduced by the sampler’s fast-Fourier approximation. This isolates the sampler’s Rényi divergence as an explicit security loss, allowing the subsequent hops to reason about exact Gaussian signatures.
Preprints 206168 i382
The buyer searches for statistical biases in the 512-bit output blocks. Each output word is computed as ChaCha _ perm ( S 0 ) [ i ] + S 0 [ i ] mod 2 32 . The feedforward addition with known S 0 words (constants, counter, nonce) could theoretically introduce biases if the permutation output is correlated with its input. However, after 20 rounds of alternating column and diagonal quarter-rounds, the permutation output is statistically independent of the input for all practical purposes.
Difference bound. The best known distinguisher for full 20-round ChaCha20 has advantage 2 256 (no distinguisher better than exhaustive key search is known). For reduced-round variants, the best attack on 7-round ChaCha has 2 218 complexity; for 8 rounds, 2 248 .
| Pr B 0 = 1 Pr B 1 = 1 | L · 2 256 .
B 2 (Bidding Round 2: Ideal ChaCha20 Market—Distinguishing Bid Fails).
Preprints 206168 i383
Random string; buyer advantage = 0.
Total: Ask ( distinguishing ) L · 2 256 .    □
Theorem 43 
(ChaCha20 TMTO Bid Failure). For any time-memory-data trade-off with parameters T , M , D :
Ask ( g PRG ChaCha , TMTO bid ) T · D 2 256 + negl ( λ ) ,
subject to T · M 2 · D 2 2 512 .
Proof. 
We construct three games.
B 0 (Bidding Round 0: Real ChaCha20 Market—TMTO Precomputation Bid).
Preprints 206168 i384
Buyer precomputes a table mapping keystream prefixes to keys and inverts using time T.
B 1 (Bidding Round 1: Hellman Table Bid—Key Space Coverage).
Preprints 206168 i385
The buyer constructs Hellman tables over the 2 256 key space (the nonce and counter are known). Table coverage is T keys. Success probability per observation: T / 2 256 . With D distinct nonce observations:
Pr TMTO success D · T / 2 256 .
The TMTO curve T · M 2 = N 2 = 2 512 bounds the trade-off. For M = D = 2 64 : T = 2 512 / ( 2 128 · 2 128 ) = 2 256 (exhaustive search).
B 2 (Bidding Round 2: Ideal ChaCha20 Market—TMTO Faces Full Key Space).
Preprints 206168 i386
Preprints 206168 i387
Random function; TMTO has identical complexity.
Total: Ask ( TMTO ) T D / 2 256 , negligible for practical parameters.    □
Theorem 44 
(ChaCha20 Combined Market Equilibrium). Combining all known bid types:
Ask ( g PRG ChaCha ) max L · 2 256 , T D / 2 256 + negl ( λ ) negl ( λ ) ,
for practical parameters ( L 2 38 bytes per nonce, T 2 128 ). The ChaCha20 market is inequilibrium .
Proof. 
The nonce-misuse bid is the most dangerous practical threat: if the buyer reuses a ( K , nonce ) pair, the XOR of two keystreams is identical, leaking m 1 m 2 . This is not a cryptanalytic break but a protocol failure. With unique nonces (enforced by the session-CNF), all bids fail. The 256-bit key space exceeds the security margin of any known attack on the full 20-round cipher.    □
Preprints 206168 i388Preprints 206168 i389
Table 12. ChaCha20 stream-cipher market summary.
Table 12. ChaCha20 stream-cipher market summary.
Bid Type Ask Bound Practical Bound Status
State recovery L · 2 256 2 218 Equilibrium
Distinguishing L · 2 256 2 218 Equilibrium
TMTO T D / 2 256 2 128 Equilibrium
Nonce misuse 1 (if nonce reused) 0 (counter nonces) Equilibrium (with policy)

12.7. Trivium: Minimalist Stream-Cipher Market

Preprints 206168 i390Preprints 206168 i391Preprints 206168 i392
Figure 43. Trivium three-register stream cipher structure. Three coupled NFSRs (93 + 84 + 111 = 288 bits) with circular feedback ( A B C A ). Each register contributes a linear tap and an AND gate (nonlinear). The keystream bit is the XOR of all three outputs. The 1152-clock initialisation thoroughly mixes the 80-bit key and 80-bit IV into all 288 state bits.
Figure 43. Trivium three-register stream cipher structure. Three coupled NFSRs (93 + 84 + 111 = 288 bits) with circular feedback ( A B C A ). Each register contributes a linear tap and an AND gate (nonlinear). The keystream bit is the XOR of all three outputs. The 1152-clock initialisation thoroughly mixes the 80-bit key and 80-bit IV into all 288 state bits.
Preprints 206168 g040
Definition 32 
(Trivium PRG Security Good).
Ask ( g PRG Triv ) = max A PPT | Pr A ( Trivium ( K , IV ) ) = 1 Pr A ( R ) = 1 | where K $ { 0 , 1 } 80 , IV $ { 0 , 1 } 80 , R $ { 0 , 1 } L .
Theorem 45 
(Trivium State Recovery Bid Failure).
Ask ( g PRG Triv , state recovery bid ) L · 2 288 + negl ( λ ) .
Proof. 
We construct four games.
B 0 (Bidding Round 0: Real Trivium Market—State Recovery Bid).
Preprints 206168 i393
Preprints 206168 i394
Buyer observes L keystream bits and attempts to determine the 288-bit internal state.
B 1 (Bidding Round 1: Algebraic System Bid—Solving Nonlinear Equations).
Preprints 206168 i395
Each keystream bit is a quadratic function of the 288 state bits (due to the AND gates). The buyer collects L equations and attempts to solve the system. The algebraic degree of the output increases with each clock cycle; after t clocks, the output bit has algebraic degree roughly min ( 2 t / 93 , 2 80 )  [46]. For t > 288 , the system of equations is highly nonlinear.
Difference bound. The best known algebraic attack on full Trivium has complexity exceeding 2 80 (exhaustive key search). Linearisation-based approaches (XL, Gröbner bases) produce systems with 288 2 2 16 monomials of degree 2, but the system is heavily overdetermined only after 2 16 keystream bits, and solving requires Ω ( 2 48 ) operations for the linearised system—still far from the 2 288 state space.
| Pr B 0 = 1 Pr B 1 = 1 | L · 2 288 .
B 2 (Bidding Round 2: Correlation Bid—Exploiting Register Linearity).
Preprints 206168 i396
Each individual register is almost linear (the AND gate provides the only nonlinearity). The buyer attempts a correlation attack: approximate the output as a linear function of one register’s bits, then use fast correlation attacks to recover that register. The correlation between the output and any single register bit is bounded by the AND gate’s bias: for two uniformly random bits a , b , Pr a b = 0 = 3 / 4 , giving bias 1 / 4 = 2 2 . With three registers contributing, the effective bias per output bit is 2 6 .
Difference bound. Recovering the 93-bit Register A via fast correlation attacks requires L 1 / ϵ 2 = 2 12 keystream bits (for bias ϵ = 2 6 ) to obtain a statistical signal, but the system has 93 unknowns, so the actual attack complexity is Ω ( 2 46 ) using fast Walsh-Hadamard techniques. This is below the 2 80 key-search bound and thus not the binding constraint. However, recovering all three registers requires Ω ( 2 80 ) total (the key determines the full state via initialisation).
| Pr B 1 = 1 Pr B 2 = 1 | negl ( λ ) .
B 3 (Bidding Round 3: Ideal Trivium Market—State Recovery Fails).
Preprints 206168 i397
Random keystream; no state to recover. Pr B 3 = 1 = 1 / 2 .
Total: Ask ( state recovery ) L · 2 288 + negl ( λ ) .    □
Theorem 46 
(Trivium Cube Attack Bid Failure).
Ask ( g PRG Triv , cube attack bid ) 2 80 + d + negl ( λ ) ,
where d is the maximum cube dimension that yields a non-trivial superpoly (best known: d 42 for reduced-round Trivium).
Proof. 
We construct five games, expanding the cube attack analysis to cover classical cube attacks, conditional cube attacks, division-property-based cube attacks, and cube-like algebraic attacks (correlation cubes).
B 0 (Bidding Round 0: Real Trivium Market—Cube Attack Bid).
Preprints 206168 i398
B 1 (Bidding Round 1: Classical Cube Attack Bid—Dinur–Shamir Framework).
Preprints 206168 i399
Preprints 206168 i400
B 2 (Bidding Round 2: Division-Property Cube Attack Bid—Todo–Isobe–Hao–Meier Framework).
Preprints 206168 i401
The division-property cube attack is the tightest known attack on Trivium. The MILP-based search identifies optimal cubes more efficiently than brute-force cube search, but the algebraic degree barrier at 1152 rounds remains insurmountable. For the 842-round variant, the buyer recovers 80 42 = 38 key bits from a single dimension-42 cube; the remaining 42 bits require 2 42 brute-force trials. Combined complexity: max ( 2 42 , 2 38 ) = 2 42 .
For full Trivium, the superpoly degree for any practical cube dimension ( d 45 ) exceeds 2, preventing direct key-bit extraction. The bid fails with:
Δ Price 2 2 38 .
B 3 (Bidding Round 3: Conditional Cube Attack Bid—Exploiting Round-Reduced Nonlinear Structure).
Preprints 206168 i402
Preprints 206168 i403
B 4 (Bidding Round 4: Ideal Trivium Market—All Cube-Based Bids Fail). [enhanced,breakable,colback=blue!2!white,colframe=darkblue!40!black,boxrule=0.4pt,arc=1.5pt,left=5pt,right=5pt,top=2pt,bottom=2pt,fontupper=] Purpose: Reach the ideal game where the keystream is replaced by a truly random function.
Preprints 206168 i404
Random function; all cube sums are random. Buyer advantage: 2 80 .
Combined cube attack bid cost. By the extended difference lemma (Lemma 2):
Ask ( cube bids ) Pr F classical F div - prop F conditional 2 80 + 2 38 + 2 40 2 37 . 4 .
Cube attack timeline and security margin analysis:
Technique Rounds broken Cube dim. d Complexity Margin from 1152
Dinur–Shamir (2009) 767 27 2 27 385 rounds (33%)
Fouque–Vannet (2013) 799 33 2 39 353 rounds (31%)
Conditional (2020) 835 40 2 60 317 rounds (28%)
Todo–Isobe–Hao–Meier (2018) 842 42 2 62 310 rounds (27%)
Full Trivium 1152 79 2 79 0 (secure)
The security margin of 310 rounds ( 27 % ) indicates that Trivium’s 1152-round initialisation provides a substantial buffer against cube attacks. Even if future cube techniques improve by 100 rounds (a dramatic advance), Trivium would retain a 210 -round margin.    □
Theorem 47 
(Trivium Combined Market Equilibrium). Combining all known bid types:
Ask ( g PRG Triv ) max L · 2 288 , 2 38 , q IV · 2 80 , T D / 2 288 + negl ( λ ) negl ( λ ) ,
for practical parameters ( L 2 64 , q IV 2 40 ). The Trivium market is inequilibriumwith an 80-bit security margin.
Proof. 
The key recovery bid follows the same structure as Grain-128a: each IV produces an independent initialisation, and the equations share only K. The buyer’s advantage grows linearly with q IV : Ask ( key recovery ) q IV · 2 80 . The TMTO bid faces the full 2 288 -state space: Ask ( TMTO ) T D / 2 288 . The cube attack bid is the tightest constraint at 2 38 , but this is still negligible for the security parameter λ = 80 . All bids fail.    □
Preprints 206168 i405Preprints 206168 i406Preprints 206168 i407Preprints 206168 i408
Table 13. Trivium stream-cipher market summary.
Table 13. Trivium stream-cipher market summary.
Bid Type Ask Bound Practical Bound Status
State recovery L · 2 288 2 224 Equilibrium
Key recovery q IV · 2 80 2 40 Equilibrium
Cube attack 2 38 2 38 Equilibrium (tightest)
Correlation L 2 · 2 12 / 2 80 2 16 Equilibrium
TMTO T D / 2 288 2 160 Equilibrium

13. Case Study V: Protocols

Preprints 206168 i409Preprints 206168 i410

13.1. Two-Party Key Exchange (ISO/IEC 11770-3, Mech. 6)

Preprints 206168 i411
A B : sid N A id A . B A : sid N B c σ B where σ B = Sign ( sk B , sid N A N B id A id B c ) . A B : σ A . Both derive  K sess = KDF ( K , sid N A N B ) .
Preprints 206168 i412
Figure 44. Two-party key exchange (ISO/IEC 11770-3, Mechanism 6). Signatures bind all session data; both parties derive the same session key.
Figure 44. Two-party key exchange (ISO/IEC 11770-3, Mechanism 6). Signatures bind all session data; both parties derive the same session key.
Preprints 206168 g041
Theorem 48 
(Two-Party Equilibrium). Ask ( g key - secrecy ) Adv KEM IND - CCA 2 + 2 · Adv Sig EUF - CMA + negl ( λ ) .
Proof. 
B 0 (Real protocol). Active network adversary.
B 1 (Signature forgery bid on B). Abort if the adversary produces valid  σ B not generated by B. Difference lemma: F forge _ B : A forges B’s signature. Δ Price 0 Adv Sig EUF - CMA .
Extended lemma application. The adversary could simultaneously attempt: F 1 : forge  σ B directly; F 2 : replay old  σ B from a different session. However, since  sid is included in the signed data, Pr F 2 different SID = 0 . Thus Pr F 1 F 2 = Pr F 1 = Adv EUF . The SID binding eliminates the replay failure for free.
B 2 (Signature forgery bid on A). Δ Price 1 Adv Sig EUF - CMA .
B 3 (KEM key recovery bid). Replace encapsulated key K with random  K . Δ Price 2 Adv KEM IND - CCA 2 .
B 4 (Ideal). Session key independent of all messages. Buyer advantage = 0.
B sca (Side-Channel Bid: Comprehensive Physical Leakage Attack.)
Preprints 206168 i413
Preprints 206168 i414
Preprints 206168 i415
SCA extended difference lemma. F sca = F SPA F DPA F timing F cache F EMA F fault F cold F acoustic F photonic : “ A phys recovers 1 secret bit via any physical channel from q phys measurements.” By Lemma 2, the side-channel event is independent of the mathematical failure events F nonce , F hash , in the preceding rounds, so their joint probability satisfies Pr k F k F sca k Pr [ F k ] + Adv total SCA ( λ , d ) . With the comprehensive countermeasure suite, Adv total SCA = negl ( λ ) , preserving market equilibrium.
B tight (Tight Security Reduction—Additional Proof.)
Preprints 206168 i416
Total Session Bound and Key Rotation Recommendation.
Preprints 206168 i417
Session pinging and CNF checking within the proof. The four-bidding-round proof secures a single protocol session. We verify the session-pinging conditions (Theorem 15) within the proof for consecutive sessions Session i and Session i + 1 .
SID freshness: Each session samples a fresh sid i + 1 independently. Pr sid i + 1 = sid j 1 / 2 λ for any j i , so SID collision has probability i / 2 λ = negl .
Nonce disjointness: Both N A and N B are sampled from { 0 , 1 } λ per session. The nonce sets N i + 1 = { N A , i + 1 , N B , i + 1 } are disjoint from all N j ( j i ) except with birthday probability ( 2 i ) 2 / 2 λ + 1 .
Signature SID-binding: In B 1 and B 2 , both σ B and σ A sign data that includes sid , N A , N B , and both identities. The SID-binding means that replaying σ B , j from session Session j in session Session i + 1 fails verification (the signed SID is sid j sid i + 1 ). This is precisely the ping condition (c): all signatures in Session i + 1 bind sid i + 1 .
KEM ciphertext freshness: The ciphertext c i + 1 encapsulates a fresh key using fresh randomness. The CNF clause φ novel ensures c i + 1 is not a replay.
CNF isomorphism and inductive step: The session-CNF φ 2 P , i + 1 is obtained from φ 2 P , i by substituting sid i sid i + 1 , N A , i N A , i + 1 , N B , i N B , i + 1 , c i c i + 1 , and fresh signatures. Since φ 2 P , i is satisfiable (inductive hypothesis) and all new variables are independently fresh, φ 2 P , i + 1 is satisfiable. The security reduction (signature forgery → EUF-CMA, key recovery → IND-CCA2) is session-index-independent. By Theorem 3, the two-party protocol is secure for all sessions.    □

13.1.0.24. Two-Party: Authentication, Mutual Auth, and CNF Verification.

We now verify the four protocol-level goods from Section 8 for the two-party protocol.
Corollary 2 
(Two-Party Authentication). Ask ( g auth ) Adv Sig EUF + q N 2 / 2 λ + 1 by Theorem 6, since B’s acceptance requires verifying σ A .
Corollary 3 
(Two-Party Mutual Authentication). Ask ( g mutual ) 2 · Adv Sig EUF + q N 2 / 2 λ + 1 by Theorem 7, since both σ A and σ B bind sid , both nonces, and both identities.
Corollary 4 
(Two-Party CNF Checking). The session-CNF φ 2 P includes clauses for SID binding, nonce freshness, both signatures, message ordering, and the ping test. All clauses are satisfied under the honest trace. Under any dishonest trace, at least one signature or freshness clause fails (by EUF-CMA equilibrium), so Ask ( g CNF ) negl ( λ ) .
Manual CNF worksheet (two-party session Session i ):
Clause Check How Pass?
φ sid Same sid in msgs 1,2,3? Read SID field; compare. T/F
φ fresh N A N B ; neither used before? Check nonce log. T/F
φ B sig Vrfy ( pk B , sid N A N B id A id B c , σ B ) = 1 ? Hash scope; verify. T/F
φ A sig Vrfy ( pk A , sid N A N B id A id B K , σ A ) = 1 ? Hash scope; verify. T/F
φ consist Order: msg1 from A, msg2 from B, msg3 from A? Check headers. T/F
φ ping sid i sid i 1 ; nonces not in N prev ? Compare logs. T/F
Result: All T ⇒ Accept. Any F ⇒ Reject (cite row and attack type).
Preprints 206168 i418

13.2. Three-Party with KDC (Mechanism 11)

Preprints 206168 i419Preprints 206168 i420Preprints 206168 i421
Figure 45. Three-party key exchange (ISO/IEC 11770-3, Mechanism 11). The KDC generates the session key and delivers it to both A and B via signed encrypted tickets. A MAC from B provides key confirmation.
Figure 45. Three-party key exchange (ISO/IEC 11770-3, Mechanism 11). The KDC generates the session key and delivers it to both A and B via signed encrypted tickets. A MAC from B provides key confirmation.
Preprints 206168 g042
Theorem 49 
(Three-Party Equilibrium). Ask Adv Enc IND - CCA 2 + 2 · Adv Sig EUF - CMA + Adv MAC SUF - CMA + negl ( λ ) .
Proof. 
B 0 : Real. B 1 : KDC signature bids ( × 2 ). Extended lemma: two KDC signatures use independent signing data, so Pr F 1 F 2 2 · Adv EUF (union bound; intersection  Pr F 1 F 2 Adv EUF 2 0 ). B 2 : MAC forgery bid. B 3 : Encrypted key recovery bid. B 4 : Ideal.    □

Three-Party: Protocol-Level Goods.

Corollary 5 
(Three-Party Mutual Authentication). Ask ( g mutual ) 2 · Adv Sig EUF + Adv MAC SUF + q N 2 / 2 λ + 1 . The KDC signatures authenticate both A and B; the MAC provides key confirmation.
Corollary 6 
(Three-Party Session-Key Secrecy). Ask ( g sk ) Adv Enc IND - CCA 2 + 2 · Adv Sig EUF + Adv MAC SUF + negl ( λ ) by the combined game-hop analysis.
Corollary 7 
(Three-Party CNF). The three-party session-CNF includes SID binding, nonce freshness, two KDC signatures, MAC confirmation, and ping. All clauses satisfied under honest trace; dishonest satisfaction requires signature or MAC forgery.
Session pinging within the three-party proof.For consecutive sessions Session i and Session i + 1 , the ping check verifies: (1)  sid i + 1 sid i (fresh session label); (2)  N A , i + 1 N prev (fresh initiator nonce); (3) the KDC’s ticket signature σ KDC , i + 1 binds sid i + 1 and N A , i + 1 (preventing ticket replay from session Session i ); (4) the MAC confirmation tag τ i + 1 authenticates sid i + 1 N A , i + 1 N B , i + 1 (preventing confirmation replay). The KDC ticket replay bid—resubmitting ( N A , i , Ticket B , i ) from Session i —fails because N A , i N used (detected by φ fresh ). Re-signing a ticket under N A , i + 1 requires breaking the KDC’s EUF-CMA security. The session-CNF φ 3 P , i + 1 is isomorphic to φ 3 P , i with fresh variables; by Theorem 3, unbounded equilibrium holds.
Manual CNF worksheet (three-party):
Clause Check How Pass?
φ sid sid in all 5 messages? Read fields; compare. T/F
φ fresh N A , N B distinct and new? Check nonce log. T/F
φ KDC , A sig KDC sig on ticket-A verifies? Vrfy ( pk KDC , · , σ KDC , A ) . T/F
φ KDC , B sig KDC sig on ticket-B verifies? Vrfy ( pk KDC , · , σ KDC , B ) . T/F
φ mac τ B = MAC K sess ( sid N A N B ) ? Recompute HMAC; compare. T/F
φ ping Session fresh vs. Session i 1 ? Compare sid and nonces. T/F
Result: All T ⇒ Accept. Any F ⇒ Reject.
Preprints 206168 i422

13.3. Four-Party Cross-Domain

Preprints 206168 i423Preprints 206168 i424Preprints 206168 i425
Figure 46. Four-party cross-domain key exchange (ISO/IEC 11770-3). Two domain servers ( S 1 and S 2 ) cooperate to generate and deliver session key K sess to A and B across domain boundaries. Four independent signatures provide authentication; two IND-CCA2 encryptions protect the session key in transit.
Figure 46. Four-party cross-domain key exchange (ISO/IEC 11770-3). Two domain servers ( S 1 and S 2 ) cooperate to generate and deliver session key K sess to A and B across domain boundaries. Four independent signatures provide authentication; two IND-CCA2 encryptions protect the session key in transit.
Preprints 206168 g043
Theorem 50 
(Four-Party Equilibrium). Ask 2 · Adv IND - CCA 2 + 4 · Adv EUF - CMA + Adv SUF - CMA + negl ( λ ) .
Proof. 
Seven games. The four signature bids (for S 1 , S 2 , A, B) use independent keys, so by the extended lemma: Pr i = 1 4 F i 4 · Adv EUF (union bound; pairwise intersections 0 due to independent keys). Two IND-CCA2 bids for inter/intra-domain key transport. One MAC bid for key confirmation.    □
Corollary 8 
(Four-Party Protocol-Level Goods). Authentication: Ask ( g auth ) 4 · Adv EUF + q N 2 / 2 λ + 1 (four signing keys). Mutual auth: same bound. Session-key secrecy: Ask ( g sk ) 2 · Adv IND - CCA 2 + 4 · Adv EUF + Adv SUF + negl ( λ ) .
Manual CNF worksheet (four-party cross-domain session):
Clause Check How Pass?
φ sid Same sid in all 7 messages? Read SID fields. T/F
φ fresh N A , N B distinct, not reused? Check nonce log. T/F
φ S 1 sig S 1 sig on ticket-A valid? Vrfy ( pk S 1 , · , σ S 1 ) . T/F
φ S 2 sig S 2 sig on ticket-B valid? Vrfy ( pk S 2 , · , σ S 2 ) . T/F
φ A sig A’s confirmation sig valid? Vrfy ( pk A , sid K sess , σ A ) . T/F
φ B mac B’s MAC confirmation valid? Recompute MAC K sess ( sid N A N B ) . T/F
φ ping Session fresh vs. Session i 1 ? Compare sid and nonces. T/F
Result: All T ⇒ Accept. Any F ⇒ Reject.
Preprints 206168 i426

13.4. Needham–Schroeder: Proving Insecurity

13.4.0.26. NS Protocol [9].

(1) A B : { N A , A } pk B . (2) B A : { N A , N B } pk A . (3) A B : { N B } pk B .
Preprints 206168 i427
Figure 47. Needham–Schroeder Public-Key Protocol (intended flow). The critical flaw is highlighted: Message 2 from Bob contains only nonces but not Bob’s identity, allowing an active attacker to masquerade as Alice to Bob.
Figure 47. Needham–Schroeder Public-Key Protocol (intended flow). The critical flaw is highlighted: Message 2 from Bob contains only nonces but not Bob’s identity, allowing an active attacker to masquerade as Alice to Bob.
Preprints 206168 g044
Figure 48. Lowe’s man-in-the-middle (MITM) attack on the Needham–Schroeder protocol. Eve (E), a legitimate participant, relays all six messages between Alice and Bob, impersonating Alice to Bob. No cryptographic primitive is broken; the protocol’s missing identity-binding is the sole cause of collapse.
Figure 48. Lowe’s man-in-the-middle (MITM) attack on the Needham–Schroeder protocol. Eve (E), a legitimate participant, relays all six messages between Alice and Bob, impersonating Alice to Bob. No cryptographic primitive is broken; the protocol’s missing identity-binding is the sole cause of collapse.
Preprints 206168 g045
Preprints 206168 i428Preprints 206168 i429

Lowe’s MITM attack [10].

Adversary E (legitimate participant) relays between A and B:
1.
A E : { N A , A } pk E (A talks to E)
2.
E ( as A ) B : { N A , A } pk B (E re-encrypts; B thinks A initiated)
3.
B E ( as A ) : { N A , N B } pk A
4.
E A : { N A , N B } pk A (A decrypts, obtains  N B )
5.
A E : { N B } pk E (A thinks this is for E)
6.
E ( as A ) B : { N B } pk B (B accepts: “A authenticated”)
Theorem 51 
(NS Market Collapse). Ask ( g mutual - auth ) = 1 .
Proof. 
The buyer (E) achieves advantage 1 with zero cryptographic breaks.
B 0 (Real NS).E is a legitimate participant with ( sk E , pk E ) .
B 0 Attack. The buyer places a masquerade bid (identity fraud): relay messages between A and B, impersonating A to B. No cryptographic primitive is broken—E uses only their legitimate decryption key and the public encryption of B.
Difference lemma (degenerate). The failure event  F MITM : “E can relay messages between A and B undetected” has Pr F MITM = 1 because the protocol lacks identity binding in message 2. Δ Price = 1 , market collapsed.
CNF analysis.B’s session-CNF is: φ B ns = ( x Dec ( sk B , c 1 ) = ( N A , A ) ) ( x N A fresh ) ( x Dec ( sk B , c 3 ) = N B ) . All clauses are satisfied even during the attack! The CNF is satisfiable under a dishonest trace because B’s identity is never included in encrypted payloads. Contrast with secure protocols where dishonest traces always make the CNF unsatisfiable.
Fix (NS-Lowe): Include B in message 2: { N A , N B , B } pk A . Now A’s CNF includes clause ( x id = E ) , which fails when the decrypted identity is  B E . Market restored to equilibrium.    □

13.4.0.28. NS: Protocol-Level Goods Analysis.

Corollary 9 
(NS Authentication Collapse). Ask ( g auth ) = 1 : B accepts with partner A, but A was communicating with E, not B. The authentication game is lost without any cryptographic break.
Corollary 10 
(NS Mutual Authentication Collapse). Ask ( g mutual ) = 1 : both directions fail—B believes it authenticated A, but A never intended to talk to B.
Corollary 11 
(NS Session-Key Secrecy Collapse). If the protocol were extended with a key derivation step K sess = KDF ( N A , N B ) , then Ask ( g sk ) = 1 : Eve knows both N A and N B and can compute K sess .
Corollary 12 
(NS CNF Failure). B’s CNF is satisfiable under Lowe’s MITM trace because no clause binds B’s identity—aCNF design failure.
NS CNF worksheet showing the design failure:
Clause Check Honest trace MITM trace Verdict
x Dec ( sk B , c 1 ) = ( N A , A ) Msg 1 decrypts to ( N A , A ) T T(Eve re-encrypted) Passes!
x N A fresh N A not seen before T T(fresh from A) Passes!
x Dec ( sk B , c 3 ) = N B Msg 3 decrypts to N B T T(Eve forwarded) Passes!
Missing: x id peer = A Peer is actually A? T F(peer is E!) ABSENT
φ NS : SAT under dishonest trace—CNF design failure. Reject design
Fix (NS-Lowe):Add clause x Dec ( sk A , c 2 ) = ( N A , N B , B ) . Now the decrypted identity E B makes this clauseF, φ NS becomes UNSAT under MITM, and A aborts. Equilibrium restored.
Preprints 206168 i430Preprints 206168 i431Preprints 206168 i432

13.5. Unbounded Verification

Corollary 13 
(Unbounded Security of ISO/IEC 11770-3 Protocols). The ISO/IEC 11770-3 two-party, three-party, and four-party key-exchange protocols are all secure for unbounded sessions. Specifically:
  • Two-party:Fresh SIDs sampled per session; nonces N A , N B sampled from { 0 , 1 } λ ; all signatures bind sid . Hence Ping ( Session i , Session i + 1 ) = 1 with probability 1 q N 2 / 2 λ + 1 . By Theorem 3: Ask ( g key - secrecy ) Adv KEM IND - CCA 2 + 2 Adv Sig EUF + negl for all i 1 .
  • Three-party:KDC signatures bind sid and N A ; MAC confirmation binds sid , N A , N B . All pings pass. Unbounded equilibrium holds.
  • Four-party:Four independent signatures plus two IND-CCA2 encryptions, all SID-bound. Extended difference lemma gives Pr i = 1 4 F sig , i 4 Adv EUF . Ping passes; unbounded equilibrium holds.
  • PKI:CA certificates plus session signatures give two-layer identity binding per session. Ping bid price Adv CA EUF + 2 Adv Sig EUF = negl . Unbounded equilibrium holds.
Needham–Schroeder protocol:No SID binding, no signatures, no nonce-to-session binding. The ping function satisfies Ping ( Session i , Session i + 1 ) = 0 trivially—sessions are structurally indistinct. The masquerade bid succeeds with probability 1 regardless of the session count. The NS market collapses for all sessions.
Preprints 206168 i433Preprints 206168 i434Preprints 206168 i435

13.6. PKI-Based Mutual Authentication Protocol

Preprints 206168 i436

Protocol description.

Let CA be a Certification Authority with key pair ( sk CA , pk CA ) . Party C (client) holds certificate
cert C = id C , pk C , valid C , σ CA , C , σ CA , C = Sign ( sk CA , id C pk C valid C ) ,
and party S (server) holds cert S defined analogously. Both parties know pk CA and can verify any CA signature. The PKI Mutual Authentication Protocol proceeds as follows:
1.
C S :    sid N C cert C  Client hello: session ID, nonce, certificate
2.
S C :    sid N S cert S c σ S
σ S = Sign sk S , sid N C N S id C id S c
Server hello: nonce, certificate, KEM ciphertext, session signature
3.
C S :    sid σ C
σ C = Sign sk C , sid N C N S id C id S K
Client finished: signature over full session transcript including decapsulated secret
4.
Both derive:    K sess = KDF ( K , sid N C N S )
where c is a KEM encapsulation of secret K under C’s public key pk C (taken from cert C ). Upon receiving Message 2, C first verifies cert S against pk CA , extracts pk S , verifies σ S , then decapsulates K. Upon receiving Message 3, S verifies cert C (already received in Message 1) and σ C .
Preprints 206168 i437
Figure 49. PKI mutual authentication protocol (TLS-style). The CA pre-issues certificates to C and S (dashed arrows, offline). During the three-message handshake: C presents its certificate; S presents its certificate plus a KEM ciphertext and a session signature; C verifies, decapsulates, and signs the finished message. Both parties derive identical K sess . CA certificate verification and SID/nonce binding in every signature prevent all known MITM attacks.
Figure 49. PKI mutual authentication protocol (TLS-style). The CA pre-issues certificates to C and S (dashed arrows, offline). During the three-message handshake: C presents its certificate; S presents its certificate plus a KEM ciphertext and a session signature; C verifies, decapsulates, and signs the finished message. Both parties derive identical K sess . CA certificate verification and SID/nonce binding in every signature prevent all known MITM attacks.
Preprints 206168 g046

Security goods.

The PKI market M PKI offers five goods: g cert (certificate authenticity), g auth (entity authentication), g mutual (mutual authentication), g sk (session-key secrecy), g CNF (CNF correctness).
Definition 33 
(Certificate Authenticity Good). The seller offers g cert : no PPT A without sk CA can produce a tuple ( id * , pk * , σ * ) such that Vrfy ( pk CA , id * pk * , σ * ) = 1 and ( id * , pk * ) was never submitted to the CA’s signing oracle.
Preprints 206168 i438
Lemma 3 
(Certificate Authenticity Equilibrium). Ask ( g cert ) Adv Sig , CA EUF - CMA + negl ( λ ) .
Proof. 
Any buyer producing ( id * , pk * , σ * ) supplies an EUF-CMA forgery on message id * pk * under sk CA . The reduction embeds the CA’s public key and forwards signing queries. The forgery is new (the CA never issued this certificate) so EUF-CMA applies directly.    □
Theorem 52 
(PKI Protocol Market Equilibrium). Under EUF-CMA security of the CA and party signature schemes, IND-CCA2 security of the KEM, and PRF security of the KDF:
Ask ( g cert ) Adv CA EUF + negl ,
Ask ( g auth ) Adv CA EUF + Adv Sig EUF + q N 2 2 λ + 1 + negl ,
Ask ( g mutual ) Adv CA EUF + 2 · Adv Sig EUF + q N 2 2 λ + 1 + negl ,
Ask ( g sk ) Adv CA EUF + 2 · Adv Sig EUF + Adv KEM IND - CCA 2 + Adv KDF PRF + q N 2 2 λ + 1 + negl ,
Ask ( g CNF ) Adv CA EUF + Adv Sig EUF + q N 2 2 λ + 1 + negl .
All five goods are in equilibrium, so M PKI is in equilibrium.
Proof. 
We abbreviate Adv CA EUF and Adv Sig EUF throughout.
Bound (134): Lemma 3.
Bound () (server → client authentication). Five games:
B 0 (Real). A controls the network. Wins if C accepts S as partner but S did not run a matching session.
B 1 (Nonce uniqueness). Abort on nonce collision among q N nonces: | Pr [ B 0 = 1 ] Pr [ B 1 = 1 ] | q N 2 / 2 λ + 1 .
B 2 (Certificate forgery bid). Flag F cert : A presents a certificate for id S that verifies under pk CA but was not issued by the CA. By Lemma 3: | Pr [ B 1 = 1 ] Pr [ B 2 = 1 ] | Adv CA EUF . After B 2 , any certificate C accepts for S was legitimately issued, so pk S is correctly bound to id S .
B 3 (Signature forgery bid on S). Flag F forge _ S : C accepts σ S not generated by S. Reducing to EUF-CMA on sk S (the key bound by the verified certificate): | Pr [ B 2 = 1 ] Pr [ B 3 = 1 ] | Adv Sig EUF .
B 4 (Ideal). No cert forgery, no sig forgery: C accepted only because a valid σ S bound sid , N C , N S , id C , id S , c under S’s genuine key. S must have participated. Pr [ B 4 = 1 ] = 0 .
Total: Ask ( g auth ) Adv CA EUF + Adv Sig EUF + q N 2 / 2 λ + 1 .
Bound () (mutual authentication). Add a game hop for C S direction: S verifies cert C (same CA forgery argument) and σ C (EUF-CMA on sk C ). The three failure events F cert , F forge _ S , F forge _ C are handled by the extended difference lemma; F forge _ S and F forge _ C use independent keys, so: Pr [ F forge _ S F forge _ C ] 2 · Adv Sig EUF . Equation () follows.
Bound () (session-key secrecy). Extend with two hops following Theorem 8: B 5 : Replace KEM key K with uniform K ˜ ; costs Adv KEM IND - CCA 2 . B 6 : Replace KDF ( K ˜ , ) with uniform random; costs Adv KDF PRF . After B 6 the session key is independent of all observed messages; Pr [ B 6 = 1 ] = 1 / 2 . Summing gives Equation ().
Bound () (CNF correctness). The PKI session-CNF is:
φ PKI = φ C cert φ S cert φ sid φ fresh φ S sig φ C sig φ consist ,
where φ P cert = x Vrfy ( pk CA , id P pk P , σ CA , P ) = 1 for P { C , S } . Under an honest trace all clauses are satisfied. A dishonest trace satisfies the formula only if: (a) a certificate clause passes dishonestly (requires CA forgery), or (b) a signature clause passes dishonestly (requires EUF-CMA break), or (c) a freshness clause passes dishonestly (requires nonce reuse). By the extended difference lemma over these three event types, Equation () follows.
B sca (Side-Channel Bid: Comprehensive Physical Leakage Attack.)
Preprints 206168 i439
Preprints 206168 i440
SCA extended difference lemma. F sca = F SPA F DPA F timing F cache F EMA F fault F cold F acoustic F photonic : “ A phys recovers 1 secret bit via any physical channel from q phys measurements.” By Lemma 2, the side-channel event is independent of the mathematical failure events F nonce , F hash , in the preceding rounds, so their joint probability satisfies Pr k F k F sca k Pr [ F k ] + Adv total SCA ( λ , d ) . With the comprehensive countermeasure suite, Adv total SCA = negl ( λ ) , preserving market equilibrium.
B tight (Tight Security Reduction—Additional Proof.)
Preprints 206168 i441
Total Session Bound and Key Rotation Recommendation.
Preprints 206168 i442
Session pinging and CNF checking within the proof. For consecutive PKI sessions Session i and Session i + 1 , the ping mechanism verifies a three-layer structural distinctness:
Layer 1 (CA certificates): The certificates cert C and cert S are pre-issued and shared across sessions. However, each session’s signatures σ C and σ S bind the session-specific sid i + 1 , nonces N C , i + 1 and N S , i + 1 , and both party identities. This SID-binding ensures that certificate possession alone is insufficient to replay a session.
Layer 2 (Session signatures): The server signature σ S , i + 1 = Sign ( sk S , sid i + 1 N C , i + 1 N S , i + 1 id C id S c i + 1 ) includes all five ping-relevant fields. Replaying σ S , j from Session j in Session i + 1 fails verification because sid j sid i + 1 . Similarly for σ C , i + 1 .
Layer 3 (KEM ciphertext): The ciphertext c i + 1 = KEM . Enc ( pk C ; r i + 1 ) uses fresh randomness, ensuring c i + 1 c j for all j i with overwhelming probability.
The extended difference lemma captures three simultaneous forgery events: F cert (CA certificate forgery), F sig , S (server signature forgery), and F sig , C (client signature forgery). By Lemma 2: Pr F cert F sig , S F sig , C Adv CA EUF + 2 Adv Sig EUF = negl . The session-CNF φ PKI , i + 1 is isomorphic to φ PKI , i with fresh SID, nonces, ciphertext, and signatures.    □
Preprints 206168 i443Preprints 206168 i444

CNF clause breakdown.

Preprints 206168 i445
Corollary 14 
(PKI Unbounded Security). The PKI protocol is secure for unbounded sessions: each session samples a fresh sid and nonces N C , N S ; all signatures include sid ; hence Ping ( Session i , Session i + 1 ) = 1 for all i. By Theorem 3, equilibrium holds for all i 1 .
Manual CNF worksheet (PKI TLS-style session Session i ):
Clause Check How Pass?
φ C cert C’s cert verifies under pk CA ? Vrfy ( pk CA , id C pk C , σ CA , C ) . T/F
φ S cert S’s cert verifies under pk CA ? Vrfy ( pk CA , id S pk S , σ CA , S ) . T/F
φ sid Same sid in all 3 messages? Read SID field; compare. T/F
φ fresh N C N S ; neither used before? Check nonce log. T/F
φ S sig Vrfy ( pk S , sid N C N S id C id S c , σ S ) = 1 ? Hash scope; verify. T/F
φ C sig Vrfy ( pk C , sid N C N S id C id S K , σ C ) = 1 ? Hash scope; verify. T/F
φ consist Msg order: C S , S C , C S ? Check sender/direction. T/F
φ ping sid i sid i 1 ; N C , N S N prev ? Compare session logs. T/F
Result: All T ⇒ Accept. Any F ⇒ Reject (cite failed clause).
Preprints 206168 i446
Table 14. PKI protocol market goods summary.
Table 14. PKI protocol market goods summary.
Good Ask Price Bound Status
g cert (certificate authenticity) Adv CA EUF Equilibrium
g auth (entity auth) Adv CA EUF + Adv Sig EUF + q N 2 / 2 λ + 1 Equilibrium
g mutual (mutual auth) Adv CA EUF + 2 · Adv Sig EUF + q N 2 / 2 λ + 1 Equilibrium
g sk (key secrecy) + Adv KEM IND - CCA 2 + Adv KDF PRF Equilibrium
g CNF (CNF correctness) Adv CA EUF + Adv Sig EUF + q N 2 / 2 λ + 1 Equilibrium
Preprints 206168 i447

13.7. Signal Protocol: X3DH and Double Ratchet

The Signal Protocol [49,50] is the most widely deployed end-to-end encrypted messaging protocol, powering Signal, WhatsApp, Facebook Messenger, and Google Messages. It consists of two sub-protocols: the Extended Triple Diffie–Hellman (X3DH) key agreement protocol for session establishment, and the Double Ratchet algorithm for ongoing message encryption with forward secrecy and post-compromise security. We analyse both sub-protocols within the MTSF framework, proving security of the full protocol and disproving security of a weakened variant lacking one-time prekeys.
Preprints 206168 i448Preprints 206168 i449

X3DH protocol description.

Let Alice (initiator) and Bob (responder) each hold an identity key pair: ( ik A , IK A ) and ( ik B , IK B ) respectively, where lowercase denotes private and uppercase denotes public keys over Curve25519. Bob publishes to the server a prekey bundle:
PKB = IK B , SPK B , σ B = XEdDSA ( ik B , SPK B ) , OPK B ( j ) ,
where SPK B is the signed prekey, σ B is the identity signature over SPK B , and OPK B ( j ) is an optional one-time prekey.
Alice fetches Bob’s prekey bundle, generates an ephemeral key pair ( ek A , EK A ) , and computes:
DH 1 = X 25519 ( ik A , SPK B ) ,
DH 2 = X 25519 ( ek A , IK B ) ,
DH 3 = X 25519 ( ek A , SPK B ) ,
DH 4 = X 25519 ( ek A , OPK B ( j ) ) ,
SK = HKDF DH 1 DH 2 DH 3 DH 4 .
Alice sends to Bob: ( IK A , EK A , j , ct 0 ) where j identifies the one-time prekey used and ct 0 is the initial ciphertext encrypted under SK . Bob performs the same four DH computations using his private keys, derives the same SK , and decrypts ct 0 . Both then initialise the Double Ratchet with SK as the root key.
Figure 50. X3DH key agreement protocol (Signal). Alice computes four DH values using Bob’s prekey bundle. The one-time prekey OPK B ( j ) provides per-session freshness; its deletion after use ensures forward secrecy of the initial key establishment.
Figure 50. X3DH key agreement protocol (Signal). Alice computes four DH values using Bob’s prekey bundle. The one-time prekey OPK B ( j ) provides per-session freshness; its deletion after use ensures forward secrecy of the initial key establishment.
Preprints 206168 g047

Double Ratchet description.

After X3DH, both parties initialise a Double Ratchet state consisting of: a root key RK , a sending chain key CK s , a receiving chain key CK r , and a DH ratchet key pair ( dh s , DH s ) . Each message triggers two operations:
Symmetric ratchet: To encrypt message n, advance the sending chain:
( CK s , n + 1 , MK n ) = KDF ( CK s , n ) , ct n = AEAD MK n ( pt n ; AD ) ,
where AD (associated data) includes both identity keys and message headers. Delete CK s , n and MK n after use.
DH ratchet: When receiving a message with a new DH public key DH r :
RK , CK r = KDF RK , X 25519 ( dh s , DH r ) , ( dh s , DH s ) KeyGen ( ) , RK , CK s = KDF RK , X 25519 ( dh s , DH r ) .
Delete old RK , dh s , and chain keys. The fresh DH exchange provides post-compromise security.
Figure 51. Double Ratchet structure. The root chain (top) advances with each DH ratchet step. Each root key seeds sending and receiving KDF chains, which produce per-message keys. Deletion of old keys provides forward secrecy; fresh DH exchanges provide post-compromise security.
Figure 51. Double Ratchet structure. The root chain (top) advances with each DH ratchet step. Each root key seeds sending and receiving KDF chains, which produce per-message keys. Deletion of old keys provides forward secrecy; fresh DH exchanges provide post-compromise security.
Preprints 206168 g048
Preprints 206168 i450

MTSF market model.

The Signal market M Signal offers six security goods:
  • g conf : Message confidentiality (IND-CCA2 of each message under its unique key).
  • g auth : Message authentication (INT-CTXT via AEAD for each message).
  • g FS : Forward secrecy—compromise of current state does not reveal past message keys.
  • g PCS : Post-compromise security—after compromise, security self-heals upon the next DH ratchet step.
  • g async : Asynchronous key establishment—Alice can send a message to offline Bob.
  • g deny : Deniability—no party can produce a cryptographic proof of the conversation to a third party.
Theorem 53 
(Signal Protocol Market Equilibrium). Under the gap Diffie–Hellman (GDH) assumption on Curve25519 and the PRF security of HKDF-SHA-256:
Ask ( g conf ) 4 · Adv X 25519 GDH + Adv HKDF PRF + Adv AEAD IND + negl ( λ ) ,
Ask ( g auth ) 4 · Adv X 25519 GDH + Adv HKDF PRF + Adv AEAD INT + negl ( λ ) ,
Ask ( g FS ) Adv HKDF PRF + negl ( λ ) ,
Ask ( g PCS ) Adv X 25519 GDH + Adv HKDF PRF + negl ( λ ) .
Proof. 
We construct eight bidding rounds, covering X3DH key establishment and Double Ratchet messaging.
B 0 (Bidding Round 0: Real Signal Market).
Preprints 206168 i451
The seller initialises the Signal Protocol with X3DH key agreement followed by Double Ratchet messaging. Alice generates ( ik A , IK A ) and ( ek A , EK A ) ; Bob’s prekey bundle
( IK B , SPK B , σ B , OPK B ( j ) )
is available on the server. The buyer (active network adversary) can observe, delay, reorder, or inject messages.
B 1 (Bidding Round 1: Prekey Signature Forgery Bid).
Preprints 206168 i452
The buyer attempts to forge Bob’s prekey signature σ B on a malicious SPK B . This would allow the buyer to impersonate Bob’s server-published keys, directing Alice to perform X3DH with buyer-controlled values.
Difference lemma. Let F spk : “buyer forges σ B on SPK B SPK B .” Since
σ B = XEdDSA ( ik B , SPK B )
, this requires breaking EUF-CMA of XEdDSA:
Δ Price 0 Pr F spk Adv XEdDSA EUF Adv X 25519 GDH .
B 2 (Bidding Round 2: X3DH DH 1 Extraction Bid).
Preprints 206168 i453
The buyer attempts to recover DH 1 = X 25519 ( ik A , SPK B ) from the observed transcript. This is a static-static DH: the buyer must solve the Computational Diffie–Hellman (CDH) problem on ( IK A , SPK B ) .
Difference lemma. F DH 1 : “buyer computes DH 1 .” Δ Price 1 Adv X 25519 GDH .
B 3 (Bidding Round 3: X3DH DH 2 DH 3 Extraction Bid).
Preprints 206168 i454
The buyer attempts to recover DH 2 = X 25519 ( ek A , IK B ) or DH 3 = X 25519 ( ek A , SPK B ) . Both involve Alice’s ephemeral key ek A , known only to Alice. CDH on ( EK A , IK B ) or ( EK A , SPK B ) .
Extended difference lemma. Let F DH 2 : buyer computes DH 2 ; F DH 3 : buyer computes DH 3 . By Lemma 2:
Δ Price 2 Pr F DH 2 F DH 3 2 · Adv X 25519 GDH .
B 4 (Bidding Round 4: One-Time Prekey Freshness Bid— DH 4 ).
Preprints 206168 i455
Preprints 206168 i456
The buyer attempts to recover DH 4 = X 25519 ( ek A , OPK B ( j ) ) . Since OPK B ( j ) is used exactly once and then deleted, the buyer must solve CDH on a one-time value. Deletion after use ensures that even server compromise after the session does not reveal DH 4 .
Δ Price 3 Adv X 25519 GDH .
B 5 (Bidding Round 5: HKDF PRF Bid—SK Extraction).
Preprints 206168 i457
With all four DH values hidden, SK = HKDF ( DH 1 DH 4 ) is pseudorandom. The buyer attempts to distinguish SK from random.
Δ Price 4 Adv HKDF PRF .
B 6 (Bidding Round 6: Symmetric Ratchet Bid—KDF Chain Inversion).
Preprints 206168 i458
The buyer observes ciphertexts and attempts to recover earlier chain keys from later ones. The KDF chain CK n + 1 = KDF ( CK n ) is one-way: given CK n + 1 , recovering CK n requires inverting the PRF. This is the forward secrecy bid—it fails because KDF is a PRF.
Δ Price 5 Adv HKDF PRF . This establishes Ask ( g FS ) Adv HKDF PRF + negl .
B 7 (Bidding Round 7: DH Ratchet Bid—Post-Compromise Recovery).
Preprints 206168 i459
After state compromise, the buyer knows the current root key RK i and chain keys. Upon the next DH ratchet step, both parties exchange fresh ephemeral DH public keys. The new root key RK i + 1 = KDF ( RK i , X 25519 ( dh s , DH r ) ) depends on a fresh DH secret unknown to the buyer. Recovering this requires solving CDH on the new ephemeral keys.
Δ Price 6 Adv X 25519 GDH + Adv HKDF PRF . This establishes Ask ( g PCS ) Adv GDH + Adv PRF + negl .
B 8 (Bidding Round 8: AEAD Message Confidentiality/Integrity Bid).
Preprints 206168 i460
Each message is encrypted with a unique message key MK n under AEAD (AES-256-CBC + HMAC-SHA-256 in Signal’s implementation). Distinguishing the ciphertext or forging a valid ciphertext requires breaking the AEAD.
Δ Price 7 Adv AEAD IND + Adv AEAD INT .
Total market cost:
Ask ( g conf ) 4 · Adv GDH + 2 · Adv PRF + Adv AEAD IND + negl ( λ ) .
For Curve25519 with λ = 128 , Adv GDH 2 128 , and all terms are negligible. The market is in equilibrium for all six goods.
B sca (Side-Channel Bid: Comprehensive Physical Leakage Attack.)
Preprints 206168 i461
Preprints 206168 i462
Preprints 206168 i463
SCA extended difference lemma. F sca = F SPA F DPA F timing F cache F EMA F fault F cold F acoustic F photonic : “ A phys recovers 1 secret bit via any physical channel from q phys measurements.” By Lemma 2, the side-channel event is independent of the mathematical failure events F nonce , F hash , in the preceding rounds, so their joint probability satisfies Pr k F k F sca k Pr [ F k ] + Adv total SCA ( λ , d ) . With the comprehensive countermeasure suite, Adv total SCA = negl ( λ ) , preserving market equilibrium.
B tight (Tight Security Reduction—Additional Proof.)
Preprints 206168 i464
Total Session Bound and Key Rotation Recommendation.
Preprints 206168 i465
Session pinging and CNF checking within the proof. The Signal Protocol has a natural multi-session structure: each X3DH establishment creates a new session, and each DH ratchet step within the Double Ratchet creates a sub-session. We verify the ping conditions:
SID freshness: Each X3DH session uses a fresh ephemeral key EK A and (when available) a fresh one-time prekey OPK B ( j ) . The pair ( EK A , j ) serves as an implicit SID. Since EK A is freshly generated per session, sid i + 1 sid i with overwhelming probability.
Nonce disjointness: Each Double Ratchet DH step generates a fresh ephemeral DH key pair ( dh s , DH s ) . The DH public keys across ratchet steps are distinct with overwhelming probability (fresh key generation from { 0 , 1 } 256 ).
Cryptographic binding: Each AEAD ciphertext includes associated data binding the identity keys ( IK A , IK B ) and the current DH ratchet public key. This binds each ciphertext to the current session state.
Key deletion enforces forward pinging: After each symmetric ratchet step, old chain keys are deleted. This is stronger than the standard ping condition: not only are sessions structurally distinct, but the cryptographic material linking them is destroyed. By Theorem 3, the Signal Protocol is secure for unbounded message exchanges with δ ping Adv X 25519 GDH = negl ( λ ) .    □
Figure 52. Signal Protocol bidding-round chain. Eight rounds cover X3DH ( B 1 B 5 ) and Double Ratchet ( B 6 B 8 ). Each hop is labelled with the hardness assumption used.
Figure 52. Signal Protocol bidding-round chain. Eight rounds cover X3DH ( B 1 B 5 ) and Double Ratchet ( B 6 B 8 ). Each hop is labelled with the hardness assumption used.
Preprints 206168 g049
Preprints 206168 i466Preprints 206168 i467Preprints 206168 i468

13.7.1. Insecurity Analysis: Signal Without One-Time Prekeys

The X3DH specification [49] notes that one-time prekeys may be exhausted on the server, in which case DH 4 is omitted. We show that this weakened variant—which we call X3DH-noOPK—suffers from a replay vulnerability that partially collapses the Signal market.
X3DH-noOPK protocol.
Same as X3DH but with DH 4 omitted:
SK noOPK = HKDF ( DH 1 DH 2 DH 3 ) .
Since no one-time prekey is consumed, the same prekey bundle ( IK B , SPK B , σ B ) can be reused across multiple sessions.
Theorem 54 
(X3DH-noOPK Partial Market Collapse: Replay Vulnerability). If the server does not rotate SPK B between sessions and no one-time prekeys are available, then:
1.
Initial message replay:An adversary can replay Alice’s initial message ( IK A , EK A , ct 0 ) to Bob, causing Bob to derive the same SK as in the original session.
2.
SK collision across sessions:If the adversary replays the initial message, SK replay = SK original , violating key freshness.
3.
Ping failure: Ping ( Session i , Session i + 1 ) = 0 because the replayed session has the same implicit SID ( EK A , · ) and derives the same SK .
Consequently, Ask ( g async ) = 1 for the asynchronous session establishment good, and Ask ( g FS ) is degraded from negl to Adv GDH + q replay · 2 128 where q replay is the number of replay attempts during the SPK B validity window.
Proof. 
We demonstrate the replay attack and its MTSF consequences.
B 0 (Real X3DH-noOPK). Alice computes SK = HKDF ( DH 1 DH 2 DH 3 ) and sends ( IK A , EK A , ct 0 ) to Bob.
B 0 Replay Attack. The buyer captures Alice’s initial message and replays it to Bob at a later time. Bob receives ( IK A , EK A , ct 0 ) and computes:
  • DH 1 = X 25519 ( spk B , IK A ) — same as original (same long-term keys).
  • DH 2 = X 25519 ( ik B , EK A ) — same as original (same EK A ).
  • DH 3 = X 25519 ( spk B , EK A ) — same as original (same SPK B , same EK A ).
Since DH 4 is absent, SK replay = HKDF ( DH 1 DH 2 DH 3 ) = SK original . Bob decrypts ct 0 successfully and initialises a new Double Ratchet with the same root key.
No cryptographic primitive is broken—the replay succeeds because the initial message is deterministic given the same key material and no one-time prekey provides per-session randomness.
CNF analysis. Bob’s session-CNF for the replayed session:
Clause Check Honest trace Replay trace Verdict
φ spk : prekey sig valid σ B verifies? T T (same σ B ) Passes
φ opk : OPK fresh OPK used? N/A (no OPK) N/A Vacuously T
φ ek : ephemeral fresh EK A new? T T (Bob cannot tell) Passes!
φ aead : decrypt OK ct 0 decrypts? T T (same SK !) Passes!
Missing: φ opk - binding OPK consumed? T F (no OPK!) ABSENT
φ noOPK : SAT under replay trace—CNF design weakness. Partial collapse
Ping failure analysis. The replayed session has the same implicit SID ( EK A , · ) and derives the same SK . Therefore Ping ( Session original , Session replay ) = 0 : the sessions are not structurally distinct. This is a Type I (SID collision) and Type V (ciphertext replay) ping failure per Theorem 17.
Mitigating factors (why this is partial, not total, collapse):
1.
Double Ratchet self-healing: After Bob’s first reply (which includes a fresh DH key), the Double Ratchet diverges from the replayed session. The attacker cannot generate valid replies without solving CDH on Bob’s new ephemeral key.
2.
SPK rotation: Once Bob rotates SPK B , the attacker’s captured message no longer produces the correct DH 1 and DH 3 at Bob’s end. Signal recommends rotating SPK B every 1–4 weeks.
3.
Application-layer detection: Bob may notice duplicate initial messages at the application layer (e.g., duplicate conversation initiations).
Therefore Ask ( g async ) = 1 (replay succeeds with certainty) but Ask ( g conf ) degrades only for messages before the first reply, and Ask ( g PCS ) is unaffected after the first DH ratchet step.    □
Preprints 206168 i469
Table 15. Signal Protocol market summary. Six security goods with ask price bounds and equilibrium status.
Table 15. Signal Protocol market summary. Six security goods with ask price bounds and equilibrium status.
Good Ask Price Bound Hardness Status
g conf (confidentiality) 4 Adv GDH + 2 Adv PRF + Adv AEAD GDH + PRF + AEAD Equilibrium
g auth (authentication) 4 Adv GDH + 2 Adv PRF + Adv INT GDH + PRF + INT Equilibrium
g FS (forward secrecy) Adv HKDF PRF PRF Equilibrium
g PCS (post-compromise) Adv GDH + Adv PRF GDH + PRF Equilibrium
g async (asynchronous) Adv GDH GDH (via OPK) Equilibrium
g deny (deniability) No transferable proof Equilibrium
Corollary 15 
(Signal Unbounded Security). The Signal Protocol is secure for unbounded messaging sessions: each X3DH establishment uses a fresh EK A and a one-time OPK B ( j ) ; each Double Ratchet step generates fresh DH keys; each message uses a unique message key MK n derived from a one-way KDF chain. Hence Ping ( Session i , Session i + 1 ) = 1 for all i with probability 1 Adv GDH . By Theorem 3, equilibrium holds for all i 1 with accumulated degradation δ ping Adv GDH = negl .

13.8. TLS 1.3: Security and Insecurity Analysis

Preprints 206168 i470

13.8.1. TLS 1.3 Protocol Description and Key Schedule

Notation.
Let HKDF - Extract ( s , ikm ) and HKDF - Expand ( k , info , L ) denote the standard HKDF operations [52]. We write Derive - Secret ( s , l , m ) = HKDF - Expand - Label ( s , l , Hash ( m ) , n ) where n is the hash output length and m is the transcript hash up to that point. Let ( sk S , pk S ) be the server’s certificate key pair and cert S the CA-signed certificate. Let g be a Diffie–Hellman group (e.g., X25519 or P-256). The client generates ephemeral share ( x , X = g x ) and the server generates ( y , Y = g y ) .
13.8.1.2. The 1-RTT Handshake.
The TLS 1.3 full handshake proceeds as follows:
1.
C S :    ClientHello = ( version , N C , suites , X , extensions )
2.
S C :    ServerHello = ( version , N S , suite , Y , extensions )
Both compute: Z = g x y (the shared secret), then derive:
ES = HKDF - Extract ( 0 , 0 ) ( early sec ret , no PSK )
HS = HKDF - Extract ( Derive - Secret ( ES , " derived " , ε ) , Z ) ( handshake sec ret )
CHTS = Derive - Secret ( HS , " c hs traffic " , T SH ) ( client HS traffic sec ret )
SHTS = Derive - Secret ( HS , " s hs traffic " , T SH ) ( server HS traffic sec ret )
MS = HKDF - Extract ( Derive - Secret ( HS , " derived " , ε ) , 0 ) ( master sec ret )
where T SH denotes the transcript hash up to and including ServerHello.
3.
S C :    { EncExt , cert S , CertVfy S , Fin S } (all encrypted under SHTS )
where CertVfy S = Sign ( sk S , σ - context T CV ) and Fin S = HMAC ( k fin , S , T CF ) .
4.
C S :    { Fin C } (encrypted under CHTS )
where Fin C = HMAC ( k fin , C , T SF ) .
5.
Both derive application traffic secrets:
CATS = Derive - Secret ( MS , " c ap traffic " , T SF )
SATS = Derive - Secret ( MS , " s ap traffic " , T SF )
13.8.1.3. Key schedule summary:
All secrets are derived via a single HKDF ladder:
0 Extract ES Derive Extract ( Z ) HS Derive Extract ( 0 ) MS Derive CATS / SATS / ResMS
The Finished MACs bind the handshake transcript under keys derived from HS , preventing transcript truncation and downgrade.
Preprints 206168 i471
Figure 53. TLS 1.3 full (1-RTT) handshake. Messages 1–2 are in plaintext; all subsequent messages are encrypted (shown in green). The server authenticates via CertificateVerify and Finished; the client via its own Finished (mutual TLS). Both parties derive separate application traffic secrets from the master secret.
Figure 53. TLS 1.3 full (1-RTT) handshake. Messages 1–2 are in plaintext; all subsequent messages are encrypted (shown in green). The server authenticates via CertificateVerify and Finished; the client via its own Finished (mutual TLS). Both parties derive separate application traffic secrets from the master secret.
Preprints 206168 g050
Figure 54. TLS 1.3 HKDF key schedule ladder. All secrets are derived via a single HKDF chain from the DH shared secret Z = g x y . Separate label strings provide domain separation; each output is pseudorandom given the preceding secret. The Finished keys k fin , C and k fin , S bind the handshake transcript.
Figure 54. TLS 1.3 HKDF key schedule ladder. All secrets are derived via a single HKDF chain from the DH shared secret Z = g x y . Separate label strings provide domain separation; each output is pseudorandom given the preceding secret. The Finished keys k fin , C and k fin , S bind the handshake transcript.
Preprints 206168 g051

13.8.2. TLS 1.3 Market Setup

Security goods.
The TLS 1.3 market M TLS offers the following goods to buyers:
  • g sk : Session-key secrecy — no PPT adversary can distinguish CATS (or SATS ) from uniform random, even given all handshake messages.
  • g auth : Server authentication — the client accepts only if the server possesses the private key sk S bound to the certificate cert S verified against a trusted CA.
  • g mutual : Mutual authentication (mTLS) — additionally, the server accepts only if the client possesses a valid certificate key.
  • g FS : Forward secrecy — compromise of sk S after session completion does not reveal CATS or SATS .
  • g CNF : CNF session correctness — the session satisfies a conjunction of transcript-binding clauses.
  • g 0 RTT : 0-RTT anti-replay (examined separately in Section 13.8.4) — the 0-RTT early data cannot be replayed by a network adversary.
13.8.2.2. Assumptions.
Let Adv g CDH denote the advantage of any PPT adversary against the Computational Diffie–Hellman problem in group g (e.g., X25519 or P-256), Adv HKDF PRF the PRF advantage against HKDF, Adv Sig EUF - CMA the EUF-CMA advantage against the server’s signature scheme (ECDSA or EdDSA), Adv CA EUF - CMA the EUF-CMA advantage against the CA’s signature scheme, and Adv HMAC SUF - CMA the SUF-CMA advantage against HMAC used in Finished messages.
Preprints 206168 i472Preprints 206168 i473

13.8.3. TLS 1.3 Security Proof: 1-RTT Handshake Equilibrium

Theorem 55 
(TLS 1.3 Handshake Market Equilibrium). Let q N be the number of handshake sessions and q H the number of hash queries. Under CDH, PRF-HKDF, EUF-CMA for the server signature scheme, EUF-CMA for the CA, and SUF-CMA for HMAC:
Ask ( g sk ) Adv g CDH + 3 · Adv HKDF PRF + Adv CA EUF - CMA + Adv Sig EUF - CMA + Adv HMAC SUF - CMA + q N 2 2 λ + 1 + negl ( λ ) ,
Ask ( g auth ) Adv CA EUF - CMA + Adv Sig EUF - CMA + Adv HMAC SUF - CMA + q N 2 2 λ + 1 + negl ( λ ) ,
Ask ( g mutual ) Adv CA EUF - CMA + 2 · Adv Sig EUF - CMA + Adv HMAC SUF - CMA + q N 2 2 λ + 1 + negl ( λ ) ,
Ask ( g FS ) Adv g CDH + 3 · Adv HKDF PRF + negl ( λ ) .
All four goods are in equilibrium; M TLS (1-RTT) is in equilibrium.
Proof. 
We construct a bidding-round chain B 0 , B 1 , , B 9 , each representing a specific adversarial bid. Each hop applies the (extended) difference lemma.
B 0 (Bidding Round 0: Real TLS 1.3 Market).
Preprints 206168 i474
The seller generates the server’s long-term key pair ( sk S , pk S ) and certificate
cert S = ( id S , pk S , valid S , σ CA )
The buyer (adversary A ) controls the network: it can intercept, replay, modify, inject, and drop messages. The buyer’s goal is to win the IND-CPA distinguishing game on CATS (equivalently SATS ), or to cause the client to accept a session without the server having participated (authentication violation). The seller runs the honest TLS 1.3 server. The buyer’s ask price at B 0 is Ask 0 .
B 1 (Bidding Round 1: Nonce Collision Bid).
Preprints 206168 i475
Preprints 206168 i476
The seller adds an internal nonce-collision check: abort if any two handshake nonces ( N C , N S ) collide across q N sessions. The bad event is F nonce : some nonce pair from session i equals that of session j ( i j ). Since N C and N S are each sampled uniformly from { 0 , 1 } 256 :
Δ Price 0 Pr F nonce q N 2 2 λ + 1 .
Market interpretation: The nonce-collision bid fails because the collision birthday bound requires q N 2 128 handshakes—computationally infeasible. After B 1 , all session nonces are distinct.
B 2 (Bidding Round 2: Certificate Forgery Bid).
Preprints 206168 i477
The seller adds a certificate-validity check: abort if the buyer presents a certificate for id S that verifies under pk CA but was not issued by the CA. The bad event F cert : “the buyer produces a valid CA signature σ * on a new ( id S , pk * ) pair.” This is exactly an EUF-CMA forgery on the CA’s signing key.
Δ Price 1 Pr F cert Adv CA EUF - CMA .
After B 2 , any certificate the client accepts genuinely binds pk S to id S .
B 3 (Bidding Round 3: CertificateVerify Forgery Bid).
Preprints 206168 i478
Preprints 206168 i479
The seller adds a transcript-signature check: abort if the buyer produces a valid CertVfy S * = Sign ( sk S , σ - ctx T CV ) without holding sk S . The transcript T CV includes all messages up to and including the server’s Certificate. Since the nonces in T CV are distinct across sessions (by B 1 ), each transcript is a distinct message. The bad event F forge : the buyer forges a CertificateVerify signature.
Δ Price 2 Pr F forge Adv Sig EUF - CMA .
Extended difference lemma. The buyer could simultaneously attempt F cert and F forge (use a forged certificate to change pk S , then forge a signature under the new key). However, B 2 already aborted on F cert , so in B 3 the certificate is genuine and pk S is the real server key. The two failure events are sequential, not simultaneous; they are handled in separate hops. After B 3 , server authentication is established: the client accepts only genuine TLS 1.3 servers.
B 4 (Bidding Round 4: Finished MAC Forgery Bid).
Preprints 206168 i480
The Finished message Fin S = HMAC ( k fin , S , T CF ) binds the entire handshake transcript. The bad event F fin : the buyer produces a valid Finished MAC without knowing k fin , S . Since k fin , S is derived from SHTS (itself derived from HS and Z = g x y ), and all previous hops eliminated forgery attacks on certificates and signatures, the only way to forge Fin S is to break HMAC.
Δ Price 3 Pr F fin Adv HMAC SUF - CMA .
Market interpretation: The Finished MAC bid represents the “transcript-binding” auction. A buyer placing this bid claims it can forge a MAC over a modified transcript. After this hop, the handshake transcript is immutably bound: any modification to any prior message causes Finished verification to fail.
B 5 (Bidding Round 5: CDH Bid on the Ephemeral DH Share).
Preprints 206168 i481
Replace the real DH exchange with a random shared secret Z ˜ $ { 0 , 1 } | Z | . Any buyer detecting this change is solving the CDH problem: given ( g , g x , g y ) , compute g x y . Since the ephemeral keys ( x , y ) are generated fresh per session, forward secrecy is implicit: even if the server’s long-term key sk S is later compromised, Z cannot be recovered.
Δ Price 4 Adv g CDH .
After B 5 , the handshake secret HS is derived from Z ˜ —a uniformly random value unknown to the buyer.
B 6 (Bidding Round 6: PRF Bid on HS Extraction).
Preprints 206168 i482
Replace HS = HKDF - Extract ( Derive - Secret ( ES , " derived " , ε ) , Z ˜ ) with a uniformly random string HS ˜ $ { 0 , 1 } n . Any buyer distinguishing HS from HS ˜ breaks HKDF’s PRF security.
Δ Price 5 Adv HKDF PRF .
B 7 (Bidding Round 7: PRF Bid on MS Extraction).
Preprints 206168 i483
Preprints 206168 i484
Replace MS = HKDF - Extract ( Derive - Secret ( HS ˜ , " derived " , ε ) , 0 ) with MS ˜ $ { 0 , 1 } n .
Δ Price 6 Adv HKDF PRF .
B 8 (Bidding Round 8: PRF Bid on Application Traffic Secret).
Preprints 206168 i485
Replace CATS = Derive - Secret ( MS ˜ , " captraffic " , T SF ) with CATS ˜ $ { 0 , 1 } n .
Δ Price 7 Adv HKDF PRF .
Key separation: The label "c ap traffic" differs from "s ap traffic", "c hs traffic", etc. HKDF’s PRF security with distinct labels guarantees that CATS and SATS are independently pseudorandom—a buyer cannot derive one from the other.
B 9 (Bidding Round 9: Ideal Game).
Preprints 206168 i486
In B 9 , CATS ˜ is uniformly random and independent of all messages seen by the buyer. The buyer’s distinguishing advantage on the IND-CPA game on CATS is exactly 1 / 2 (random guessing): Pr [ B 9 = 1 ] = 1 / 2 .
Collecting bounds. Summing price adjustments across hops:
Ask ( g sk ) = Ask 0 1 / 2 Δ Price 0 + + Δ Price 7 q N 2 2 λ + 1 + Adv CA EUF + Adv Sig EUF + Adv HMAC SUF + Adv g CDH + 3 · Adv HKDF PRF + negl ( λ ) ,
establishing Equation (161).
Authentication bound (): In the authentication game, the buyer wins if the client completes the handshake with a session partner that did not run a matching session. Hops B 1 B 4 (nonce, certificate, CertificateVerify, Finished) already bound this: no certificate forgery, no signature forgery, no MAC forgery, and distinct nonces per session. Summing gives Equation ().
Mutual authentication bound (): For mTLS, add a hop for the client’s CertificateVerify: the server additionally verifies the client certificate and client signature, costing Adv Sig EUF - CMA for the client key. By the extended difference lemma over server and client forgery events: Pr F forge , S F forge , C 2 · Adv Sig EUF . Equation () follows.
Forward secrecy bound (): Forward secrecy requires that after session completion, compromising sk S does not reveal CATS . The server’s long-term key is used only for CertificateVerify in B 3 —not for key derivation. The session keys derive from the ephemeral DH secret Z = g x y (which is deleted at session end) via the HKDF chain. After B 5 (Z randomised), the entire HKDF chain produces uniformly random outputs; sk S provides no additional information. The forward secrecy bid fails with advantage at most Adv g CDH + 3 · Adv HKDF PRF , establishing Equation ().
Session pinging within the TLS 1.3 proof. For consecutive TLS sessions Session i and Session i + 1 :
SID freshness: In TLS 1.3, the session ID field in ServerHello is a legacy field included only for TLS 1.2 middlebox compatibility. True session binding in TLS 1.3 is achieved via the nonce pair ( N C , N S ) , which is committed to in the Finished MACs and CertificateVerify. Since N C , i + 1 and N S , i + 1 are fresh random 256-bit values, ( N C , i + 1 , N S , i + 1 ) ( N C , j , N S , j ) for all j i except with probability q N 2 / 2 λ + 1 .
Ephemeral key freshness: Each session generates fresh ( x i + 1 , X i + 1 = g x i + 1 ) and ( y i + 1 , Y i + 1 = g y i + 1 ) . The DH shared secret Z i + 1 = g x i + 1 y i + 1 is independent of Z j for all j i (distinct exponents, fresh randomness).
Transcript binding: The CertificateVerify signature CertVfy S , i + 1 signs the full transcript T CV , i + 1 , which includes N C , i + 1 and N S , i + 1 . Replaying CertVfy S , j from session j fails because T CV , j T CV , i + 1 (distinct nonces). The CNF ping condition for transcripts is satisfied.
Key deletion: Ephemeral DH private keys ( x i + 1 , y i + 1 ) are deleted after Z i + 1 is computed. Forward security across sessions follows: Z i + 1 is not recoverable from any information retained after session i + 1 ends.
By Theorem 3, TLS 1.3 (1-RTT) is secure for unbounded sessions, with accumulated degradation δ ping q N 2 / 2 λ + 1 = negl .    □
Figure 55. TLS 1.3 bidding-round chain. Rounds B 1 B 4 (blue) address authentication failures; B 5 B 9 (amber/green) address key-secrecy failures via CDH and HKDF PRF hops. Each arc label is the price adjustment incurred.
Figure 55. TLS 1.3 bidding-round chain. Rounds B 1 B 4 (blue) address authentication failures; B 5 B 9 (amber/green) address key-secrecy failures via CDH and HKDF PRF hops. Each arc label is the price adjustment incurred.
Preprints 206168 g052

13.8.4. TLS 1.3 Insecurity: 0-RTT Replay Collapse

Preprints 206168 i487
0-RTT protocol description.
After a session that produced resumption secret ResMS , the server issues a NewSessionTicket (NST) message containing a PSK identity psk _ id and the PSK value PSK = HKDF - Expand - Label ( ResMS , " resumption " , nonce NST , n ) . On reconnection, the client sends:
1.
C S :    ClientHello [ psk _ id , binder , early _ data ] { EarlyData } k e
where the early traffic key k e = Derive - Secret ( ES , " cetraffic " , ClientHello ) is derived from the early secret ES = HKDF - Extract ( 0 , PSK ) , and the binder binder = HMAC ( BK , T CH ) authenticates the ClientHello under a PSK-derived key.
13.8.4.2. The replay attack.
The network adversary A replay operates as follows: it records the client’s first flight ( M 1 = ClientHello [ ] EarlyData ) from session Session i , and resubmits M 1 verbatim to the server in a new connection Session i + 1 . Since M 1 is entirely determined by data from before the server’s response, and the server has no per-connection state prior to receiving M 1 , the server accepts M 1 and processes the early data in Session i + 1 as if it were fresh.
Theorem 56 
(TLS 1.3 0-RTT Market Collapse). Let g 0 RTT be the security good “0-RTT early data is processed at most once per client intention.” There exists an efficient adversary A replay with Ask ( g 0 RTT ) = 1 . The 0-RTT market collapses: M TLS 0 RTT is incollapse.
Proof. 
We construct a single-bidding-round argument (the replay bid).
B 0 (Real 0-RTT Market). The client sends M 1 including early data d (e.g., an HTTP POST) encrypted under k e . The server decrypts and processes d.
Replay Bid. The adversary A replay records M 1 verbatim. It opens a second connection to the server and sends M 1 again. The server has no mechanism to detect the replay because:
1.
The PSK identity psk _ id is valid (not yet expired, ticket lifetime not elapsed).
2.
The binder binder = HMAC ( BK , T CH ) is over T CH = Hash ( ClientHello ) which is identical on replay.
3.
The early data ciphertext { EarlyData } k e is deterministic given PSK and the client’s ClientHello; on replay, the same ciphertext is presented and decrypts successfully.
4.
TLS 1.3 provides no mandatory server-side nonce or anti-replay mechanism for 0-RTT data; RFC 8446 §8 explicitly acknowledges this.
The bad event F replay : “the server processes the same early data d in two distinct connections.” This event has probability 1: Pr F replay = 1 (the adversary succeeds deterministically whenever the PSK ticket has not expired).
Extended difference lemma application. Pr F replay F any = Pr F replay = 1 . The single free replay bid collapses the market: Ask ( g 0 RTT ) = 1 .
CNF collapse. The 0-RTT session-CNF includes a freshness clause φ fresh - early : “the early data is not a replay of any previously processed early-data record under the same PSK.” The adversary’s replayed M 1 satisfies all other clauses (valid binder, valid PSK, well-formed ClientHello) but violates φ fresh - early . Since the server has no anti-replay log in the basic 0-RTT mode, it cannot check this clause: the CNF formula is satisfiable under a dishonest (replayed) trace. The CNF design failure is of Type I (SID-binding clause absent): the 0-RTT ClientHello is not bound to any server-chosen nonce before the early data is transmitted.
Market outcome. The 0-RTT market collapses: Ask ( g 0 RTT ) = 1 . The Ping bid also degrades: Ping ( Session i , Session i + 1 ) = 0 for the 0-RTT early data, since session Session i + 1 is structurally identical to Session i from the perspective of the 0-RTT first flight.    □
Preprints 206168 i488Preprints 206168 i489

13.8.5. TLS 1.3 Insecurity: Downgrade Attack

Preprints 206168 i490
The downgrade attack.
Consider the protocol π TLS - pre , a hypothetical TLS implementation that omits the RFC 8446 downgrade sentinel (as would be the case in a buggy or non-compliant implementation). Let A down be an active network adversary that intercepts and modifies handshake messages.
The attack proceeds as follows:
1.
The client C sends ClientHello advertising { TLS 1 . 3 , TLS 1 . 2 } and cipher suites including TLS 1.3-only ECDHE suites.
2.
A down intercepts, rewrites ClientHello to advertise only TLS 1.2 suites (e.g.,
T L S _ R S A _ W I T H _ A E S _ 128 _ C B C _ S H A 256
) and forwards to S.
3.
S responds with a TLS 1.2 ServerHello (since it sees no TLS 1.3 offer) and a static RSA ciphertext.
4.
A down forwards S’s response to C. Since π TLS - pre omits downgrade sentinel checking, C accepts and negotiates TLS 1.2.
5.
Now A down passively records the RSA-encrypted premaster secret. The session uses TLS 1.2 with RSA key transport (no forward secrecy): if sk S is ever compromised, all recorded traffic is decryptable.
Theorem 57 
(TLS 1.3 Downgrade Market Collapse without Sentinel). Let π TLS - pre be a TLS implementation omitting the RFC 8446 downgrade sentinel. The good g version : “the negotiated protocol version is the highest mutually supported version” has Ask ( g version ) = 1 against a network adversary. The downgrade market collapses.
Proof. 
We construct a two-bidding-round argument.
B 0 (Real Protocol without Sentinel). The client supports TLS 1.3; the server supports TLS 1.2 and TLS 1.3; the network adversary is active.
Downgrade Bid. The adversary A down places the version stripping bid: it intercepts ClientHello , removes the TLS 1.3 version identifier and associated extensions (e.g., key_share, supported_versions), and forwards the modified message. This is a free modification: the adversary requires no cryptographic secret and performs O ( 1 ) computation. The bad event F down : “the negotiated version is TLS 1.2, not 1.3, despite both parties supporting TLS 1.3.” Pr F down = 1 (the adversary always succeeds in π TLS - pre ).
B 1 (Downgraded Session). The session now runs TLS 1.2. The TLS 1.2 protocol has known attacks:
  • No forward secrecy (RSA key transport): The premaster secret is RSA-encrypted under pk S . If sk S is compromised later, all past traffic is decryptable. The forward-secrecy good g FS collapses: Ask ( g FS ) = 1 .
  • CBC padding oracle (if CBC suite negotiated): TLS 1.2 CBC-mode ciphers are vulnerable to Lucky13-style padding oracle attacks [53], providing a decryption oracle for past ciphertexts.
Extended difference lemma. The three simultaneous failure events F down , F FS , and F pad all occur with probability 1 (free bids): Pr F down F FS F pad = 1 . The market collapses across all three goods.
CNF downgrade failure. The session-CNF for the downgraded session includes clause φ version : “negotiated version = maximum mutually supported version.” Under the downgrade attack, φ version is false (TLS 1.2 was negotiated despite TLS 1.3 being supported). The adversary’s trace satisfies all structural clauses (valid handshake messages, valid MACs under TLS 1.2 keys) but violates φ version . Since π TLS - pre has no downgrade sentinel check, φ version cannot be enforced. This is a CNF Type IV design failure (unauthenticated version negotiation field): the supported_versions extension is not integrity-protected before the Finished MAC is computed.
Market outcome. Ask ( g version ) = 1 ; the market collapses. The Ping bid degrades:
Ping ( Session i , Session i + 1 ) = 0
because session i + 1 runs a structurally weaker protocol than session i, violating protocol-version consistency.    □
Preprints 206168 i491

13.8.6. TLS 1.3 CNF Session Verification and Ping Bids

TLS 1.3 Session-CNF.
The TLS 1.3 session-CNF φ TLS is the conjunction of the following clauses:
φ cert = x Vrfy ( pk CA , cert S ) = 1 Server certificate is CA - issued
φ cv = x Vrfy ( pk S , σ - ctx T CV , CertVfy S ) = 1 CertVfy binds full transcript
φ fin = x HMAC ( k fin , S , T CF ) = Fin S Finished MAC is transcript - bound
φ fresh = x ( N C , N S ) N prev Nonce pair is fresh
φ eph = x ( X , Y ) DH prev DH shares are fresh
φ ver = x version = TLS 1 . 3 Version is TLS 1.3 ( sentinel check )
φ suite = x suite { TLS _ AES _ 128 _ GCM _ SHA 256 , } Only AEAD suites permitted
φ ping = x Ping ( Session i , Session i + 1 ) = 1 Session transition passes ping
φ TLS = φ cert φ cv φ fin φ fresh φ eph φ ver φ suite φ ping .
Preprints 206168 i492
TLS 1.3 Ping Bid.
Corollary 16 
(TLS 1.3 Unbounded Session Security). The TLS 1.3 1-RTT handshake is secure for unbounded sessions. For consecutive sessions Session i and Session i + 1 , the ping function satisfies Ping ( Session i , Session i + 1 ) = 1 with probability at least 1 q N 2 / 2 λ + 1 , where q N counts total accumulated sessions. By Theorem 3, Ask ( g sk ) remains bounded as in Equation (161) for all i 1 .
Proof. 
The four ping conditions from Theorem 15 are verified as follows. (a) SID/nonce freshness:  ( N C , i + 1 , N S , i + 1 ) is fresh by construction (256-bit uniform sampling per session). (b) Nonce disjointness: The pair ( N C , i + 1 , N S , i + 1 ) is disjoint from all prior pairs except with probability q N 2 / 2 λ + 1 . (c) Transcript binding: CertVfy S , i + 1 signs T CV , i + 1 , which includes N C , i + 1 and N S , i + 1 ; Fin S , i + 1 MACs the full handshake transcript. Replaying any message from session Session i in Session i + 1 fails because the nonces differ. (d) Key deletion: Ephemeral DH private keys ( x i + 1 , y i + 1 ) are securely deleted after Z i + 1 is computed. The session-CNF φ TLS , i + 1 is isomorphic to φ TLS , i with fresh nonces, DH shares, and transcript; by the inductive argument of Theorem 3, unbounded equilibrium holds.    □
Market Summary: TLS 1.3 vs. TLS 1.2.
Table 16. MTSF market comparison: TLS 1.3 (1-RTT) vs. TLS 1.2 vs. TLS 1.3 0-RTT. A collapsed good ( Ask = 1 ) indicates a fundamental structural failure.
Table 16. MTSF market comparison: TLS 1.3 (1-RTT) vs. TLS 1.2 vs. TLS 1.3 0-RTT. A collapsed good ( Ask = 1 ) indicates a fundamental structural failure.
Security good TLS 1.3 (1-RTT) TLS 1.2 (RSA transport) TLS 1.3 (0-RTT)
g sk : key secrecy Adv CDH + 3 Adv PRF + negl Adv RSA - PKCS + negl Adv CDH + negl (for HS)
g FS : forward secrecy Adv CDH + negl 1 (Collapsed) Adv CDH + negl (for HS)
g auth : server auth Adv CA EUF + Adv Sig EUF + negl Adv CA EUF + Adv Sig EUF + negl Adv CA EUF + Adv Sig EUF + negl
g 0 RTT : anti-replay N/A (no 0-RTT) N/A 1 (Collapsed)
g version : no downgrade negl (sentinel) 1 (no sentinel) negl (sentinel)
g CNF : session correctness negl (all clauses) Partial (no FS clause) Partial ( φ fresh - early fails)
Overall market Equilibrium Partial collapse Partial collapse (0-RTT)
Preprints 206168 i493

13.9. Telegram: Security and Insecurity Analysis

Preprints 206168 i494Preprints 206168 i495

13.9.1. MTProto 2.0 Market Model

We model MTProto 2.0 as a market M MTProto where the seller offers two goods:
  • g IND : Message indistinguishability (confidentiality). The buyer cannot distinguish encryptions of two messages of equal length.
  • g INT : Message integrity (authenticity). The buyer cannot inject or modify a message that passes decryption.
Session parameters.
A session Session i is parameterised by ( auth _ key , s i , sess _ id i ) where s i { 0 , 1 } 64 is the current server salt and sess _ id i is a 64-bit session identifier. A message m is encrypted as:
plaintext = s i sess _ id i msg _ id seqno data ,
msg _ key = SHA - 256 ( auth _ key [ 88 : 120 ] plaintext ) [ 8 : 24 ] ,
( K AES , IV AES ) = KDF ( msg _ key , auth _ key ) ,
ciphertext = AES - 256 - IGE K AES ( plaintext ; IV AES ) .
The transmitted packet is ( auth _ key _ id , msg _ key , ciphertext ) .

13.9.2. Security Disproof: Salt Extraction Collapses Confidentiality

Preprints 206168 i496
Theorem 58 
(MTProto Salt Extraction: Partial Market Collapse). Suppose an adversary A extracts the server salt s i for the current 30-minute window by any means (side channel, decrypted packet, protocol weakness, or social engineering). Then:
1.
Entropy collapse:The effective entropy of msg _ key drops from 128 bits to 64 bits: Ask ( g IND ) 1 2 64 · q D , where q D is the number of decryption queries.
2.
CNF freshness failure:The session-CNF clause φ fresh is satisfiable under dishonest traces whenever s i is known to the adversary.
3.
Ping degradation: Pr Ping ( Session i , Session i + 1 ) = 0 s i known 1 2 64 .
4.
Partial market collapse: Ask ( g IND ) ¬ negl ( λ ) ; the market hasnotfully collapsed ( Ask < 1 ) but the security margin is infeasible for 128-bit security requirements.
Proof. 
We construct a sequence of bidding rounds demonstrating each collapse mechanism.
B 0 (Real MTProto Market—Indistinguishability Bid). Buyer submits ( m 0 , m 1 ) with | m 0 | = | m 1 | ; receives ciphertext c * = AES - 256 - IGE K b ( plaintext b ; IV b ) for bit b. Must guess b. The indistinguishability bid: distinguish b from the ciphertext alone. Without salt knowledge, the effective key material has 128 bits of entropy in msg _ key .
B 1 (Bidding Round 1: Salt Extraction Bid—Entropy Reduction).
Preprints 206168 i497
Preprints 206168 i498
The adversary successfully extracts s i (by any means: this is the salt extraction bid, a “free” bid in the sense that we take the salt as given). With s i known, the plaintext structure is:
plaintext = s i known sess _ id i msg _ id seqno data .
The msg _ key is computed from this plaintext with the known s i as a prefix. The buyer can now brute-force the remaining entropy: the 64-bit session ID, message ID, and sequence number together contribute at most 64 + 64 + 32 = 160 bits, but in practice the adversary has high confidence about sess _ id i (from the packet header) and seqno (sequential), reducing the search space to roughly 2 64 candidate msg _ key values.
Extended difference lemma. Let F salt : “salt s i is extracted”. Let F entropy : “effective entropy of msg _ key drops below 64 bits”. Both events occur simultaneously when salt extraction succeeds:
| Pr B 0 = 1 Pr B 1 = 1 | Pr F salt F entropy = Pr F salt · ( 1 + Pr F entropy F salt ) = 1 · 1 .
Since we assume F salt occurs with probability 1 (the salt is extracted), and F entropy follows deterministically, the price adjustment is Δ Price 0 = 1 —a full hop collapse for this bid.
B 2 (Bidding Round 2: AES Partial-Key Recovery Bid).
Preprints 206168 i499
With entropy reduced to 2 64 , the buyer mounts a birthday meet-in-the-middle bid: precompute 2 32 candidate K AES values from guessed msg _ key prefixes; collect 2 32 ciphertext blocks; find a collision. This gives key recovery with O ( 2 64 ) time and O ( 2 32 ) memory.
Difference bound. With 2 64 candidate keys over a key space of 2 128 :
Ask ( g IND F salt ) 1 2 64 1 .
The ask price for indistinguishability approaches 1—the market has quasi-collapsed.
B 3 (Bidding Round 3: CNF Freshness Failure Bid).
Preprints 206168 i500
The session-CNF for MTProto includes a freshness clause:
φ MTProto fresh = ( x s i S used ) ( x s i sec ret from A ) .
With s i extracted, the clause x s i sec ret evaluates to F. The session-CNF becomes UNSAT under the honest trace—which should never happen. This indicates that MTProto’s session design does not satisfy the CNF correctness requirement g CNF once salt extraction is possible.
B 4 (Bidding Round 4: Ping Degradation Bid).
Preprints 206168 i501
Session pinging tests that consecutive sessions Session i , Session i + 1 are structurally distinct. If s i is known and s i + 1 can be predicted (salts are negotiated over a potentially observable channel), then Ping ( Session i , Session i + 1 ) = 0 whenever s i = s i + 1 (which happens with probability 2 64 per 30-minute window) or when s i + 1 can be inferred from s i .
Pr Ping = 0 s i known Pr s i + 1 predictable 2 64 .
This is a 2 64 -fold degradation compared to the ideal Pr Ping = 0 2 128 .
Summary. The four simultaneous collapse events are:
  • F salt : Salt extraction (assumed).
  • F entropy : Entropy reduction from 128 to 64 bits.
  • F cnf : CNF freshness clause fails.
  • F ping : Ping degradation.
By the extended difference lemma: Ask ( g IND g CNF g ping ) Pr F salt F entropy F cnf F ping = 1 . The Telegram market has collapsed for all security goods given salt extraction.    □
Preprints 206168 i502

13.9.3. Security Proof: Remediated MTProto

We now define the Remediated MTProto (RMTP) and prove it achieves full market equilibrium.
13.9.3.1. RMTP Construction.
Modify MTProto 2.0 as follows:
1.
Cryptographic salt binding: Replace the plaintext server salt with an HMAC-bound salt: s ˜ i = HMAC auth _ key ( s i timestamp ) . The salt is now a 256-bit pseudorandom value derived from auth _ key .
2.
Increased salt entropy: Use 128-bit salts ( s ˜ i { 0 , 1 } 128 ) instead of 64-bit.
3.
Full message binding: Include s ˜ i in all cryptographic operations:
msg _ key SHA - 256 auth _ key [ 88 : 120 ] s ˜ i data .
4.
CNF salt clause: Add the clause x s ˜ i = HMAC auth _ key ( s i ts ) to the session-CNF.
Theorem 59 
(Remediated MTProto Market Equilibrium). Under the PRF security of HMAC and the IND-CPA security of AES-256-IGE, the Remediated MTProto (RMTP) achieves:
Ask ( g IND ) Adv AES IND - CPA + Adv HMAC PRF + q D · 2 128 + negl ( λ ) ,
Ask ( g INT ) Adv HMAC PRF + negl ( λ ) ,
Ask ( g CNF ) Adv HMAC PRF + q N 2 / 2 128 + negl ( λ ) .
All three goods are in equilibrium.
Proof. 
We construct six bidding rounds for the indistinguishability good g IND .
B 0 (Real RMTP—Indistinguishability Bid).
Buyer submits ( m 0 , m 1 ) ; receives c * = AES - 256 - IGE K b ( · ) .
B 1 (HMAC Salt Freshness Bid). Replace s ˜ i with a uniformly random 128-bit value u i . Any buyer distinguishing B 0 from B 1 breaks PRF security of HMAC:
| Pr B 0 = 1 Pr B 1 = 1 | Adv HMAC PRF .
Extended difference lemma. Events F prf : “HMAC distinguishable from random” and F salt - ext : “salt extractable without auth _ key ”. With s ˜ i computed via HMAC under auth _ key , salt extraction without auth _ key requires breaking PRF. Hence Pr F prf F salt - ext Adv HMAC PRF .
B 2 (Nonce Freshness Bid). Abort on 128-bit salt collision. By birthday bound over q D decryptions:
| Pr B 1 = 1 Pr B 2 = 1 | q D · 2 128 .
B 3 (msg_key Randomness Bid). With s ˜ i uniform, the full input to the msg _ key hash is uniform (no bias from salt extraction). Replace msg _ key with uniform random r $ { 0 , 1 } 128 . By PRF security of SHA-256: Δ Price 2 Adv SHA 256 PRF negl ( λ ) .
B 4 (AES Key Replacement Bid). With uniform msg _ key , the AES key ( K AES , IV AES ) derived from it is uniform. Replace with independently uniform ( K , IV ) . This costs Adv KDF PRF .
B 5 (AES IND-CPA Reduction Bid). With uniform key and IV, the AES-256-IGE encryption is IND-CPA secure:
| Pr B 4 = 1 1 / 2 | Adv AES IND - CPA .
B 6 (Ideal RMTP Market). With random key, random IV, and IND-CPA encryption, the ciphertext is computationally indistinguishable from random. Buyer advantage = 1 / 2 .
Total for g IND : Equation (190) follows by summing price adjustments.
Bound () (Integrity g INT ). A successful injection requires the adversary to produce ( msg _ key * , c * ) that decrypts to a valid plaintext (passes AES-IGE decryption) and has a consistent msg _ key * matching the decrypted plaintext’s HMAC-bound salt. This requires either inverting AES-IGE (IND-CPA hardness) or forging the HMAC binding (PRF hardness). By the extended difference lemma over these two failure events: Ask ( g INT ) Adv HMAC PRF + Adv AES IND - CPA = negl .
Bound () (CNF correctness g CNF ). The RMTP session-CNF is:
φ RMTP = ( x s ˜ i = HMAC auth _ key ( s i ts ) ) ( x s ˜ i S used ) ( x msg _ key derived correctly ) ( x Ping passes ) .
Under the honest trace, all clauses are satisfied. Under a dishonest trace (adversary with extracted s i ), the clause x s ˜ i = HMAC auth _ key ( ) cannot be satisfied without auth _ key —by PRF security, s ˜ i is computationally indistinguishable from random to anyone without auth _ key . Hence dishonest traces cannot satisfy φ RMTP except with probability Adv HMAC PRF + q N 2 / 2 128 .    □
Preprints 206168 i503Preprints 206168 i504Preprints 206168 i505

13.9.4. Summary of the Telegram MTSF Analysis

The Telegram case study demonstrates MTSF’s dual capability: the framework can both prove security (for the remediated protocol) and disprove it (for the original protocol), within the same market-theoretic language. The disproof (Theorem 58) identifies four simultaneous failure events that the extended difference lemma captures in a single bound. The proof (Theorem 59) shows that HMAC-binding the salt to auth _ key restores full equilibrium, with the CNF and ping bids both confirming unbounded session security. This represents MTSF’s most complete application of its dual proof/disproof methodology.

14. Case Study VI: QROM-Based Key Exchange

Preprints 206168 i506
Figure 56. The three eras of cryptographic security: classical (vulnerable to quantum), post-quantum (resistant to quantum), and fully quantum (information-theoretically secure). MTSF covers all three with unified market language.
Figure 56. The three eras of cryptographic security: classical (vulnerable to quantum), post-quantum (resistant to quantum), and fully quantum (information-theoretically secure). MTSF covers all three with unified market language.
Preprints 206168 g070
Preprints 206168 i507

14.1. Protocol Description: QROM-Secure Key Exchange

We describe the complete QROM-Secure Key Exchange Protocol (QKEM), the formal model underlying ML-KEM (FIPS 203).

14.1.0.1. Participants.

Client C (holds private key sk C , can decrypt) and Server S (holds only public key pk C ). Both access the Quantum Random Oracle H : { 0 , 1 } * { 0 , 1 } n .

System parameters.

Security parameter λ ; module dimension k and modulus q for MLWE; error distribution χ (centred binomial); polynomial ring R q = Z q [ x ] / ( x n + 1 ) , n = 256 ; QROM hash H; implicit-rejection hash H .
Phase 0 (Key Generation, offline).
A $ R q k × k , s , e $ χ k , pk C = ( A , t = A s + e ) , sk C = s .
C publishes pk C (e.g., via PKI or pre-distribution to S ).
Phase 1 (Encapsulation, S internal + send).
1.
Sample: m $ { 0 , 1 } n .
2.
QROM query: r H ( m ) .
3.
Encrypt: c PKE . Enc ( pk C , m ; r ) .
4.
QROM query: K H ( m c ) .
5.
Send ( c , sid ) to C ; S holds ( K , sid ) .
Phase 2 (Decapsulation, C internal).
1.
Decrypt: m PKE . Dec ( sk C , c ) .
2.
QROM query: r H ( m ) .
3.
Re-encrypt: c PKE . Enc ( pk C , m ; r ) .
4.
QROM query and implicit rejection:
K H ( m c ) if c = c H ( c ) otherwise .
5.
C holds ( K , sid ) .
Phase 3 (Confirmation, optional).
1.
C computes τ C = MAC K ( sid confirm ) and sends to S .
2.
S verifies τ C under K; if valid, session established.

Correctness.

K = K whenever m = m , which holds with probability 1 δ . For ML-KEM: δ 2 139 .

14.2. Protocol Sequence Diagram

Preprints 206168 i508Preprints 206168 i509
Figure 57. QKEM protocol sequence diagram. Three phases: (0) offline key generation; (1) encapsulation by S making two QROM queries ( H ( m ) and H ( m c ) ); (2) decapsulation by C making two QROM queries ( H ( m ) and H ( m c ) or H ( c ) ); (3) optional MAC confirmation. The QROM oracle H (centre, dashed lifeline) accepts superposition queries from both parties—depicted by arrows labelled “query”. The implicit rejection ( H ( c ) branch) prevents chosen-ciphertext leakage.
Figure 57. QKEM protocol sequence diagram. Three phases: (0) offline key generation; (1) encapsulation by S making two QROM queries ( H ( m ) and H ( m c ) ); (2) decapsulation by C making two QROM queries ( H ( m ) and H ( m c ) or H ( c ) ); (3) optional MAC confirmation. The QROM oracle H (centre, dashed lifeline) accepts superposition queries from both parties—depicted by arrows labelled “query”. The implicit rejection ( H ( c ) branch) prevents chosen-ciphertext leakage.
Preprints 206168 g053
Preprints 206168 i510Preprints 206168 i511

14.3. MTSF Market Model for QKEM

Preprints 206168 i512

Market participants.

  • Seller (challenger): generates ( pk C , sk C ) ; runs encapsulation; provides decapsulation oracle O dec ; offers security goods.
  • Buyer (quantum adversary A ): makes q H superposition queries to H and q D classical queries to O dec ; bids computational/quantum resources.
  • QROM oracle H: the GUC shared market infrastructure—both parties access the same H.

14.3.0.5. Security goods.

The seller offers four goods: g IND - CCA 2 (key indistinguishability under chosen-ciphertext attack), g correct (correctness: K = K ), g auth (MAC authentication in Phase 3), and g unbounded (ping bid: unbounded session security).
Definition 34 
(QROM IND-CCA2 Game for QKEM). The game IND - CCA 2 QROM proceeds:
1.
Seller generates ( pk , sk ) and gives pk to A .
2.
Find phase: A makes adaptive quantum queries to H and classical queries to O dec .
3.
Challenge:Seller samples b $ { 0 , 1 } ; runs ( c * , K 0 ) KEM . Enc ( pk ) ; sets K 1 $ { 0 , 1 } n ; gives ( c * , K b ) to A .
4.
Guess phase: A continues queries (not on c * ); outputs b { 0 , 1 } .
Ask ( g IND - CCA 2 ) = max A | Pr A wins 1 / 2 | .

14.4. Security Proof in the QROM

14.4.0.6. Setup.

Let PKE = ( Gen , Enc , Dec ) be δ -correct and IND-CPA. The Fujisaki–Okamoto transform FO [ PKE , H ] :
KEM . Enc ( pk ) : m $ { 0 , 1 } n ; c PKE . Enc ( pk , m ; H ( m ) ) ; K H ( m c ) ; return ( c , K ) ,
KEM . Dec ( sk , c ) : m PKE . Dec ( sk , c ) ; c PKE . Enc ( pk , m ; H ( m ) ) ; K H ( m c ) c = c H ( c ) else .
Theorem 60 
(QROM FO-Transform KEM Equilibrium). Let PKE be δ-correct and IND-CPA. Then:
Ask ( g IND - CCA 2 ) 2 ( q H + 1 ) · Adv PKE IND - CPA + q D · δ + negl ( λ ) .
Proof. 
We construct six bidding rounds. Each round targets a specific adversarial strategy.
B 0 (Real QROM IND-CCA2—Quantum Distinguishing Bid). The seller runs as in Theorem 34. A queries H in superposition and O dec classically. The quantum distinguishing bid: use superposition queries to extract information about challenge bit b from ( c * , K b ) .
B 1 (Bidding Round 1: Correctness Error Bid).
Preprints 206168 i513
Replace O dec with a modified oracle that aborts on incorrectness events.
Extended difference lemma. Events F decaps : “decapsulation returns m m ” (probability δ per query) and F rej : “implicit rejection diverges” (probability = 0 ). Together:
| Pr B 0 = 1 Pr B 1 = 1 | Pr F decaps F rej q D · δ .
Market interpretation: Correctness error bid fails—for ML-KEM, q D · δ 2 64 / 2 139 = 2 75 = negl .
B 2 (Bidding Round 2: QROM Reprogramming Bid—O2H Lemma).
Preprints 206168 i514
Reprogram H at the challenge message m * to a fresh uniform r * , yielding oracle H with H ( m * ) = r * and H ( x ) = H ( x ) for x m * .
O2H lemma application [55]: For m * chosen uniformly at random and A making q H quantum queries:
| Pr B 1 H = 1 Pr B 1 H = 1 | 2 ( q H + 1 ) Pr m * S A 2 ( q H + 1 ) Adv PKE IND - CPA ,
where S A is the set of inputs queried with non-negligible amplitude, and Pr m * S A Adv IND - CPA by a standard reduction.
Market interpretation: The reprogramming bid costs a square-root of the IND-CPA advantage—the characteristic QROM price increase. Classical ROM reprogramming is free; QROM reprogramming costs 2 ( q H + 1 ) ϵ because quantum adversaries can detect reprogramming with amplitude proportional to ϵ .
B 3 (Bidding Round 3: Measure-and-Reprogram Bid—Extracting the IND-CPA Challenge).
Preprints 206168 i515
Apply measure-and-reprogram [56]: whenever A queries H with amplitude on m * c * , measure and reprogram. This yields an IND-CPA distinguisher B for the underlying PKE at cost:
| Pr B 2 = 1 Pr B 3 = 1 | Adv PKE IND - CPA .
Market interpretation: Measuring the adversary’s superposition disturbs its computation (quantum measurement back-action), but this disturbance is bounded by another ϵ factor. The seller converts the buyer’s quantum query power into a classical IND-CPA attack.
B 4 (Bidding Round 4: Challenge Key Replacement—Information-Theoretic Hiding).
Preprints 206168 i516
In B 3 , K 0 = H ( m * c * ) is uniform (since H ( m * ) = r * is fresh). Replace K 0 with K 0 $ { 0 , 1 } n :
| Pr B 3 = 1 Pr B 4 = 1 | = 0 .
This hop is free (information-theoretically invisible).
B 5 (Bidding Round 5: Decapsulation Oracle Restriction).
Preprints 206168 i517
In B 4 , K b is uniform regardless of b. The decapsulation oracle for c c * provides no information about b (responses independent of b). Restricting the decapsulation oracle to reject all queries does not change the game:
| Pr B 4 = 1 Pr B 5 = 1 | = 0 .
B 6 (Ideal QROM Market—All Bids Exhausted). In B 5 , both K 0 and K 1 are uniform and independent of all adversary observations. The adversary cannot distinguish b: Pr B 6 = 1 = 1 / 2 . Buyer advantage = 0 .
Total:
Ask q D δ B 0 B 1 + 2 ( q H + 1 ) ϵ B 1 B 2 + ϵ B 2 B 3 + 0 B 3 B 4 + 0 B 4 B 5 + 0 B 5 B 6 q D δ + 2 ( q H + 1 ) ϵ + negl ,
where ϵ = Adv PKE IND - CPA and the ϵ term is absorbed into 2 ( q H + 1 ) ϵ for q H 1 .    □
Figure 58. QROM FO-transform KEM bidding-round chain: real ( B 0 ) to ideal ( B 6 ) . Two QROM-specific hops: B 1 B 2 (O2H reprogramming, cost 2 ( q H + 1 ) ϵ ) and B 2 B 3 (measure-and-reprogram, cost ϵ ). Three subsequent hops cost zero (information-theoretic). Classic ROM would have hops B 1 B 2 cost ϵ directly (linear, not square-root). The QROM square-root is the signature of quantum adversary pricing.
Figure 58. QROM FO-transform KEM bidding-round chain: real ( B 0 ) to ideal ( B 6 ) . Two QROM-specific hops: B 1 B 2 (O2H reprogramming, cost 2 ( q H + 1 ) ϵ ) and B 2 B 3 (measure-and-reprogram, cost ϵ ). Three subsequent hops cost zero (information-theoretic). Classic ROM would have hops B 1 B 2 cost ϵ directly (linear, not square-root). The QROM square-root is the signature of quantum adversary pricing.
Preprints 206168 g054
Preprints 206168 i518Preprints 206168 i519

14.5. Extended Protocol Security Goods

Corollary 17 
(QKEM Authentication). With Phase 3 (MAC confirmation) included, under SUF-CMA security of the MAC:
Ask ( g auth ) Adv MAC SUF - CMA + 2 ( q H + 1 ) Adv IND - CPA + q D δ + negl ( λ ) .
Proof. 
The MAC tag τ C = MAC K ( sid confirm ) can be forged only if the MAC is broken ( Adv SUF - CMA ) or the key K is guessed (bounded by Theorem 60). By the extended difference lemma: Ask ( g auth ) Adv SUF - CMA + Ask ( g IND - CCA 2 ) .    □
Preprints 206168 i520Preprints 206168 i521
Table 17. QKEM market goods summary.
Table 17. QKEM market goods summary.
Good Ask Price Bound (QROM) Dominant Term Status
g IND - CCA 2 2 ( q H + 1 ) Adv IND - CPA + q D δ O2H square-root Equilibrium
g correct q D · δ PKE correctness Equilibrium
g auth Adv SUF - CMA + 2 ( q H + 1 ) Adv IND - CPA SUF-CMA+O2H Equilibrium
g unbounded (ping) 2 ( q H + 1 ) Adv IND - CPA O2H square-root Equilibrium
Preprints 206168 i522

15. Case Study VII: Quantum Market Dynamics—BB84 QKD

Preprints 206168 i523
This case study instantiates the quantum market dynamics formalisation of Section 20.2.1 on a concrete protocol: the BB84 Quantum Key Distribution (QKD) protocol [58]. Unlike all previous case studies, the seller (Alice) is genuinely quantum—she prepares and transmits quantum states. The buyer (Eve) is also quantum, performing arbitrary measurements on the quantum channel. This is the first MTSF analysis where both market participants operate quantumly, illustrating the full power of quantum market dynamics.
Preprints 206168 i524

15.1. Protocol Description: BB84 QKD

Participants.

Alice A (sender, prepares qubits) and Bob B (receiver, measures qubits). Eve E (eavesdropper) controls the quantum channel between them. All parties are quantum: A and B prepare/measure qubits; E can perform arbitrary quantum operations.

15.1.0.8. System parameters.

Security parameter λ ; raw key length N (number of qubits sent); sifted key length n N / 2 ; error-rate estimation sample size k; error threshold Q tol 0 . 11 ; privacy amplification output length = n ( 1 h ( Q obs ) ) λ , where h ( · ) is the binary entropy function.
Phase 0 (Quantum Transmission).
1.
For each i { 1 , , N } : Alice samples x i $ { 0 , 1 } (bit) and θ i A $ { + , × } (basis).
2.
Alice prepares qubit | ψ i = | x i θ i A , where | 0 + = | 0 , | 1 + = | 1 , | 0 × = | + = 1 2 ( | 0 + | 1 ) , | 1 × = | = 1 2 ( | 0 | 1 ) .
3.
Alice sends | ψ i to Bob over the quantum channel (Eve may intercept).
Phase 1 (Measurement).
1.
For each qubit received, Bob samples θ i B $ { + , × } and measures in basis θ i B , obtaining outcome y i .
Phase 2 (Sifting, over authenticated classical channel).
1.
Alice and Bob publicly exchange basis choices { θ i A } and { θ i B } .
2.
They keep only positions where θ i A = θ i B . Let S = { i : θ i A = θ i B } ; the sifted key is ( x i ) i S for Alice and ( y i ) i S for Bob, with | S | N / 2 .
Phase 3 (Error Estimation).
1.
Alice and Bob randomly select a subset T S of size k and compare their bits publicly.
2.
They compute the observed error rate Q obs = | { i T : x i y i } | / k .
3.
If Q obs > Q tol : ABORT (market collapse detected). If Q obs Q tol : proceed.
Phase 4 (Error Correction and Privacy Amplification).
1.
Error correction: Bob corrects his key to match Alice’s using public syndrome information (leaks at most n h ( Q obs ) bits of information to Eve).
2.
Privacy amplification: Both parties apply a universal2 hash function to the corrected key, producing the final secret key K { 0 , 1 } with = n ( 1 h ( Q obs ) ) λ .

15.1.0.9. Correctness.

After error correction, K A = K B with overwhelming probability (error correction failure probability 2 λ ).

15.2. Protocol Sequence Diagram

Figure 59. BB84 QKD protocol sequence diagram. Phase 0: Alice prepares qubits in random bases and sends them over a quantum channel (wavy arrows indicate quantum transmission); Eve can intercept and perform arbitrary quantum operations. Phase 1: Bob measures in random bases. Phase 2: Classical sifting to retain matching-basis positions. Phase 3: Error estimation on a random sample—high error rate triggers abort (market collapse). Phase 4: Error correction and privacy amplification produce the shared key K.
Figure 59. BB84 QKD protocol sequence diagram. Phase 0: Alice prepares qubits in random bases and sends them over a quantum channel (wavy arrows indicate quantum transmission); Eve can intercept and perform arbitrary quantum operations. Phase 1: Bob measures in random bases. Phase 2: Classical sifting to retain matching-basis positions. Phase 3: Error estimation on a random sample—high error rate triggers abort (market collapse). Phase 4: Error correction and privacy amplification produce the shared key K.
Preprints 206168 g055

15.3. MTSF Quantum Market Model for BB84

This is the first MTSF market where the seller operates quantumly. We instantiate Theorem 37.

15.3.0.10. Quantum market participants.

  • Quantum seller Seller Q (Alice): holds quantum register R A ; prepares qubits | ψ i = | x i θ i A (quantum channel E k S : state preparation); performs classical post-processing (sifting, error estimation, privacy amplification).
  • Quantum buyer Buyer Q (Eve): holds quantum register R E (potentially entangled with an ancilla R E ); performs arbitrary quantum operations on intercepted qubits. Eve’s strategy is a sequence of quantum channels { E k B } : intercept, measure/entangle, re-send (possibly modified) qubits to Bob.
  • Bob: the seller’s partner (not a separate market participant). Bob’s measurements and classical communications are part of the seller’s strategy.
  • Quantum channel: the physical medium carrying qubits from Alice to Bob. Eve has full control of this channel—she can intercept, measure, replace, or entangle any qubit.
  • Authenticated classical channel: Alice-Bob classical communication (sifting, error estimation) is assumed authenticated. This is the shared market infrastructure I .

15.3.0.11. Security goods.

The quantum seller offers three goods:
  • g secrecy : Key secrecy—the final key K is indistinguishable from uniform randomness to Eve. Formally: 1 2 K ρ E U ρ E tr negl ( λ ) , where ρ E is Eve’s quantum state after the protocol and U is the uniform distribution on -bit strings.
  • g correct : Correctness K A = K B with overwhelming probability.
  • g detect : Eavesdropping detection—if Eve extracts more than negl ( λ ) bits of information about the key, the error rate Q obs exceeds Q tol with overwhelming probability, triggering abort.
Definition 35 
(BB84 Quantum Market). The BB84 quantum market
M BB 84 Q = ( Seller Q , Buyer Q , { g secrecy , g correct , g detect } , I , ρ 0 )
is defined as follows:
  • Initial state:
    ρ 0 = | 0 0 | R A N | 0 0 | R E
    (product state—no initial entanglement).
  • Seller’s quantum channel E k S : Prepare
    | ψ k = | x k θ k A
    and send over the quantum channel.
  • Buyer’s quantum channel E k B : An arbitrary CPTP map acting on the intercepted qubit and Eve’s ancilla.
  • Quantum ask price (cf. (226)):
    Ask Q ( g secrecy ) = sup Buyer Q 1 2 K ρ E U ρ E tr .

15.4. Security Proof via Quantum Bidding Rounds

Theorem 61 
(BB84 Quantum Market Equilibrium). Let the BB84 protocol run with parameters N (raw key length), Q tol 0 . 11 , and privacy amplification output length = n ( 1 h ( Q obs ) ) λ . Then:
Ask Q ( g secrecy ) 2 λ / 2 + negl ( λ ) .
The BB84 quantum market is in equilibrium. Crucially, this holds againstallquantum adversaries, including those with unlimited computational power.
Proof. 
We construct five quantum bidding rounds. Each round applies the quantum extended difference lemma (Theorem 6) using trace distance as the quantum price adjustment.
B 0 Q (Real BB84 Quantum Market—Quantum Interception Bid). The quantum seller prepares and transmits N qubits. The quantum buyer intercepts each qubit on the quantum channel and performs an arbitrary quantum operation (joint unitary on the qubit and her ancilla register R E ), then forwards a (possibly modified) qubit to Bob. After sifting, error estimation passes ( Q obs Q tol ), and Alice and Bob produce key K.
Preprints 206168 i525
B 1 Q (Bidding Round 1: No-Cloning Bid—Intercept-Resend Bound).
Preprints 206168 i526
Any quantum operation by Eve on the intercepted qubit can be decomposed (by Stinespring dilation) as a unitary on the qubit plus ancilla followed by a partial trace. The key insight: if Eve extracts I E bits of information about Alice’s bit x i , she necessarily introduces a disturbance of at least δ i f ( I E ) on the qubit forwarded to Bob, where f is a monotonically increasing function derived from the information-disturbance trade-off.
Quantum price adjustment (information-disturbance trade-off): For each sifted-key bit, define Eve’s information I E ( i ) and the induced error rate Q i on that bit. The Fuchs–Caves–Holevo bound gives:
I E ( i ) h ( Q i ) ,
where h ( · ) is the binary entropy function. Eve’s total information on the sifted key is I E total n · h ( Q avg ) where Q avg is the average error rate.
Quantum trace distance:
Δ Price 1 Q = 1 2 ρ final ( 0 ) ρ final ( 1 ) tr 2 λ / 2 ,
where ρ ( 1 ) is the state conditioned on Eve’s information being bounded by n h ( Q obs ) .
Market interpretation: The no-cloning bid fails. The seller’s quantum states are non-orthogonal, so the buyer cannot extract information without paying a price (disturbance). The amount the buyer can learn is thermodynamically limited to n h ( Q obs ) bits—this is the “budget ceiling” on the buyer’s quantum interception bid.
B 2 Q (Bidding Round 2: Error Estimation Bid—Statistical Detection).
Preprints 206168 i527
Preprints 206168 i528
Quantum price adjustment: Let F est be the event “error estimation fails to detect Eve’s disturbance.” By Hoeffding’s inequality with k sample bits and margin γ :
Pr F est e 2 k γ 2 .
For k = Θ ( λ / γ 2 ) , this is 2 Ω ( λ ) = negl ( λ ) .
Market interpretation: The error estimation bid bounds the probability that the buyer evades detection. Even though the buyer’s attack is quantum, the detection mechanism is a classical sampling test that succeeds with overwhelming probability.
B 3 Q (Bidding Round 3: Privacy Amplification Bid—Leftover Hash Lemma).
Preprints 206168 i529
By the quantum leftover hash lemma, after privacy amplification with output length = n ( 1 h ( Q obs ) ) λ :
1 2 K ρ E U ρ E tr 2 λ / 2 .
Market interpretation: Privacy amplification is the seller’s final move—a “market restructuring” that converts the raw key (partially known to Eve) into a final key (virtually unknown). The hash function compresses the key to the length justified by the quantum min-entropy, squeezing out all information the buyer might have gained. The trace distance bound 2 λ / 2 is the residual quantum ask price.
B 4 Q (Bidding Round 4: Error Correction Leakage Bid).
Error correction leaks at most n h ( Q obs ) bits of classical information to Eve via the public syndrome. This is already accounted for in the privacy amplification output length: = n ( 1 h ( Q obs ) ) λ subtracts exactly n h ( Q obs ) bits. Price adjustment: Δ Price 4 Q = 0 (already absorbed).
Total quantum ask price:
Ask Q ( g secrecy ) 2 λ / 2 QLHL + e 2 k γ 2 estimation + 2 λ EC failure 2 λ / 2 + negl ( λ ) .
The BB84 quantum market is in equilibrium.    □
Figure 60. BB84 quantum bidding-round chain: real quantum market ( B 0 Q ) to ideal ( B 4 Q ) . Two distinctively quantum hops: B 0 Q B 1 Q (no-cloning information-disturbance trade-off—the seller’s non-orthogonal states structurally limit the buyer’s information gain) and B 2 Q B 3 Q (quantum leftover hash lemma—privacy amplification against quantum side information). These are the quantum analogues of the O2H and measure-and-reprogram hops in the QROM case study (Section 14). The security is information-theoretic: no computational assumption is required, only quantum mechanics.
Figure 60. BB84 quantum bidding-round chain: real quantum market ( B 0 Q ) to ideal ( B 4 Q ) . Two distinctively quantum hops: B 0 Q B 1 Q (no-cloning information-disturbance trade-off—the seller’s non-orthogonal states structurally limit the buyer’s information gain) and B 2 Q B 3 Q (quantum leftover hash lemma—privacy amplification against quantum side information). These are the quantum analogues of the O2H and measure-and-reprogram hops in the QROM case study (Section 14). The security is information-theoretic: no computational assumption is required, only quantum mechanics.
Preprints 206168 g056
Preprints 206168 i530

15.5. Extended Security Goods and CNF Verification

Corollary 18 
(BB84 Correctness). Under the error correction protocol with failure probability δ EC 2 λ :
Ask Q ( g correct ) 2 λ = negl ( λ ) .
Corollary 19 
(BB84 Eavesdropping Detection). If Eve extracts I E γ n bits of information about the sifted key (for any constant γ > 0 ), the error estimation detects this:
Ask Q ( g detect ) e 2 k γ 2 + 2 λ = negl ( λ ) .
Preprints 206168 i531Preprints 206168 i532Preprints 206168 i533
Table 18. BB84 quantum market goods summary.
Table 18. BB84 quantum market goods summary.
Good Quantum Ask Price Bound Dominant Term Status
g secrecy 2 λ / 2 + e 2 k γ 2 QLHL Equilibrium
g correct 2 λ EC failure Equilibrium
g detect e 2 k γ 2 + 2 λ Hoeffding Equilibrium
g unbounded (ping) 2 λ / 2 QLHL (per session) Equilibrium
Preprints 206168 i534

16. Case Study VIII: Multi-Protocol Composition—TLS 1.3 + Signal Network

Preprints 206168 i535Preprints 206168 i536
Figure 61. Multi-protocol composition as market merger: TLS 1.3 and Signal, each independently secure (in equilibrium), share a PKI infrastructure. The market merger theorem guarantees the combined system remains in equilibrium, provided the shared PKI is sound.
Figure 61. Multi-protocol composition as market merger: TLS 1.3 and Signal, each independently secure (in equilibrium), share a PKI infrastructure. The market merger theorem guarantees the combined system remains in equilibrium, provided the shared PKI is sound.
Preprints 206168 g057
This case study instantiates the multi-protocol composition network formalisation of Section 20.2.2 on a concrete and practically relevant scenario: a device simultaneously running TLS 1.3 (Section 13.8.1) for web browsing and the Signal Protocol (Section 13.7) for encrypted messaging, sharing a common PKI infrastructure. This is the first MTSF analysis of concurrent protocol execution, demonstrating that the market merger theorem (Theorem 63) preserves equilibrium when two individually secure protocols compose.
Preprints 206168 i537Preprints 206168 i538

16.1. Network Description

Preprints 206168 i539

Component protocols.

1.
Protocol 1: TLS 1.3 (1-RTT handshake)—as analysed in Section 13.8.3. Provides session-key secrecy ( g sk ( 1 ) ), forward secrecy ( g FS ( 1 ) ), server authentication ( g auth ( 1 ) ), and mutual authentication ( g mutual ( 1 ) ) when client certificates are used.
2.
Protocol 2: Signal (X3DH + Double Ratchet)—as analysed in Section 13.7. Provides session-key secrecy ( g sk ( 2 ) ), forward secrecy ( g FS ( 2 ) ), post-compromise security ( g PCS ( 2 ) ), asynchronous establishment ( g async ( 2 ) ), and deniability ( g deny ( 2 ) ).

16.1.0.13. Shared infrastructure I .

  • PKI ( I PKI ): X.509 certificate authorities issuing certificates for TLS servers and Signal identity keys. Shared trust anchors.
  • Random oracle ( I RO ): Hash functions (SHA-256, SHA-384) used by both protocols for key derivation (HKDF in TLS, HKDF in Signal’s X3DH).
  • Device RNG ( I RNG ): The operating system’s cryptographic random number generator, used by both protocols for nonce generation and ephemeral key sampling.

16.1.0.14. Participants.

  • Device D : runs both protocols concurrently. Acts as the TLS client and the Signal user.
  • TLS server S 1 : the web server for Protocol 1.
  • Signal server S 2 : the Signal key server storing prekey bundles for Protocol 2.
  • Network adversary A : a single PPT adversary controlling the network between D and both servers. A can intercept, modify, and inject messages in both protocols simultaneously. A has a single computational budget T (total running time).

16.2. MTSF Market Network Model

We instantiate Theorem 38 with N = 2 component markets.
Definition 36 
(TLS+Signal Market Network). The protocol market network
N TS = { M TLS , M Signal } , I , Z
is defined as follows:
  • TLS market:
    M TLS = ( Seller TLS , Buyer TLS , { g sk ( 1 ) , g FS ( 1 ) , g auth ( 1 ) , g mutual ( 1 ) } , φ TLS )
    is the TLS 1.3 market from Section 13.8.2.
  • Signal market:
    M Signal = ( Seller Signal , Buyer Signal , { g sk ( 2 ) , g FS ( 2 ) , g PCS ( 2 ) , g async ( 2 ) , g deny ( 2 ) } , φ Signal )
    is the Signal market from Section 13.7.
  • Shared infrastructure:
    I = I PKI I RO I RNG .
  • Environment: Z is the network environment that interacts with both protocols concurrently.

16.2.0.15. Infrastructure security goods.

The shared infrastructure contributes three goods:
  • g PKI : PKI integrity—no adversary can forge a valid certificate. Ask I ( g PKI ) Adv CA EUF - CMA negl ( λ ) (under the EUF-CMA security of the CA’s signature scheme).
  • g RO : Random oracle consistency—both protocols query the same hash function, modelled as a shared random oracle. Ask I ( g RO ) = 0 (the RO is ideal by assumption; in the standard model, replace by Adv HKDF PRF ).
  • g RNG : RNG quality—the device RNG produces outputs indistinguishable from uniform. Ask I ( g RNG ) Adv RNG PRG negl ( λ ) .

16.3. Market Merger and Composition Proof

We apply the market merger theorem (Theorem 63) to the TLS+Signal network.
Theorem 62 
(TLS+Signal Network Equilibrium). Let M TLS be in equilibrium with ask prices as in Section 13.8.3, and let M Signal be in equilibrium with ask prices as in Section 13.7. If the shared infrastructure is sound ( Ask I ( g ) negl ( λ ) for all infrastructure goods g), then the merged market:
M TLS I M Signal
is in equilibrium. Specifically, for every security good g in either protocol:
Ask N ( g ) Ask own ( g ) + Ask other + Ask I negl ( λ ) ,
where Ask own ( g ) is the ask price of g in its home market, Ask other is the maximum ask price in the other market, and Ask I = max g Ask I ( g ) is the infrastructure overhead.
Proof. 
We apply Theorem 63. The three conditions are verified:
Condition 1: TLS market equilibrium. By Section 13.8.3, all TLS 1.3 goods are in equilibrium. The ten-bidding-round chain gives:
Ask TLS ( g sk ( 1 ) ) Adv ECDLP + Adv HKDF PRF + q N 2 / 2 λ + 1 negl ( λ ) ,
Ask TLS ( g auth ( 1 ) ) Adv EUF - CMA + q N 2 / 2 λ + 1 negl ( λ ) .
Condition 2: Signal market equilibrium. By Section 13.7, all Signal goods are in equilibrium. The X3DH proof gives:
Ask Signal ( g sk ( 2 ) ) Adv gap - CDH + q N 2 / 2 λ + 1 negl ( λ ) ,
Ask Signal ( g FS ( 2 ) ) Adv gap - CDH negl ( λ ) .
Condition 3: Infrastructure soundness.
Ask I ( g PKI ) Adv CA EUF - CMA negl ( λ ) ,
Ask I ( g RO ) = 0 ( ideal RO ) ,
Ask I ( g RNG ) Adv RNG PRG negl ( λ ) .
By Theorem 63, the merged market is in equilibrium. The quantitative bound from Remark after Theorem 63 gives:
Ask N ( g sk ( 1 ) ) Ask TLS ( g sk ( 1 ) ) own market + Ask Signal , max simulation overhead + Ask I , max infrastructure negl ( λ ) ,
where Ask Signal , max = max j Ask Signal ( g j ( 2 ) ) is the simulation overhead from simulating the Signal market when reducing to the standalone TLS game. Symmetrically for Signal goods.
The proof proceeds by constructing a standalone buyer for each market that internally simulates the other market using the UC simulator (market arbitrageur from Section 2.4). The environment Z cannot distinguish the real composed execution from the simulation because both component markets are UC-realizable (they implement ideal functionalities for key exchange and secure messaging respectively).    □
Figure 62. TLS 1.3 + Signal protocol market network. The TLS market (left, blue) and Signal market (right, teal) share infrastructure I (PKI, random oracle, device RNG). A single network adversary A with budget T must split its resources ( t 1 + t 2 T ) between the two markets. The orange dashed link indicates resource competition: effort spent attacking TLS reduces resources available for attacking Signal. By the market merger theorem (Theorem 63), since both component markets and the infrastructure are in equilibrium individually, the merged market M TLS I M Signal preserves equilibrium for all nine security goods.
Figure 62. TLS 1.3 + Signal protocol market network. The TLS market (left, blue) and Signal market (right, teal) share infrastructure I (PKI, random oracle, device RNG). A single network adversary A with budget T must split its resources ( t 1 + t 2 T ) between the two markets. The orange dashed link indicates resource competition: effort spent attacking TLS reduces resources available for attacking Signal. By the market merger theorem (Theorem 63), since both component markets and the infrastructure are in equilibrium individually, the merged market M TLS I M Signal preserves equilibrium for all nine security goods.
Preprints 206168 g058

16.4. Resource Competition Analysis

Preprints 206168 i540
The MTSF language makes explicit a phenomenon that is implicit in the UC framework: the adversary faces a resource allocation problem when attacking multiple protocols simultaneously.
Proposition 5 
(Adversarial Resource Allocation). Let A be a PPT adversary with total running time T attacking the network N TS . If A allocates time t 1 to attacking M TLS and t 2 = T t 1 to attacking M Signal , then:
Ask N ( g sk ( 1 ) ) + Ask N ( g sk ( 2 ) ) f TLS ( t 1 ) + f Signal ( T t 1 ) + 2 Ask I ,
where f TLS ( t ) = Adv ECDLP ( t ) + Adv HKDF PRF ( t ) + q N 2 / 2 λ + 1 and f Signal ( t ) = Adv gap - CDH ( t ) + q N 2 / 2 λ + 1 are the advantage functions for each protocol as a function of computational effort.
Proof. 
The adversary’s total computation is partitioned: t 1 steps interact with TLS, t 2 steps interact with Signal. Any computation that interacts with TLS contributes to f TLS ( t 1 ) via the standalone TLS reduction. Any computation that interacts with Signal contributes to f Signal ( t 2 ) via the standalone Signal reduction. The infrastructure overhead Ask I applies to each market independently (hence the factor of 2). The resource constraint t 1 + t 2 T means the adversary cannot achieve the best attack on both protocols simultaneously.    □
Remark 6 
(Weakest Link Principle). The rational adversary maximises
max ( Ask N ( g sk ( 1 ) ) , Ask N ( g sk ( 2 ) ) )
—it concentrates resources on whichever protocol offers the highest “return on attack.” If TLS uses ECDLP on a 256-bit curve and Signal uses gap-CDH on the same curve, both are equally hard and the adversary gains nothing from splitting effort. In practice, if one protocol used a weaker primitive (e.g., a shorter key), the adversary would rationally concentrate there—formalising the “weakest link” principle in market terms.

16.5. Network CNF Verification

Preprints 206168 i541
We instantiate Theorem 40 for the TLS+Signal network.
Preprints 206168 i542Preprints 206168 i543
Table 19. TLS+Signal market network goods summary. All goods from both protocols plus infrastructure goods, with network ask prices from Theorem 62.
Table 19. TLS+Signal market network goods summary. All goods from both protocols plus infrastructure goods, with network ask prices from Theorem 62.
Market Good Standalone Ask Network Ask (Eq. 216) Status
TLS 1.3 g sk ( 1 ) : key secrecy Adv ECDLP + Adv PRF + q N 2 / 2 λ + 1 + Ask Signal , max + Ask I Equilibrium
g FS ( 1 ) : forward secrecy Adv ECDLP + Ask Signal , max + Ask I Equilibrium
g auth ( 1 ) : authentication Adv EUF + q N 2 / 2 λ + 1 + Ask Signal , max + Ask I Equilibrium
g mutual ( 1 ) : mutual auth Adv EUF + q N 2 / 2 λ + 1 + Ask Signal , max + Ask I Equilibrium
Signal g sk ( 2 ) : key secrecy Adv gap - CDH + q N 2 / 2 λ + 1 + Ask TLS , max + Ask I Equilibrium
g FS ( 2 ) : forward secrecy Adv gap - CDH + Ask TLS , max + Ask I Equilibrium
g PCS ( 2 ) : post-compromise Adv gap - CDH + Ask TLS , max + Ask I Equilibrium
g async ( 2 ) : async establish Adv gap - CDH + Ask TLS , max + Ask I Equilibrium
g deny ( 2 ) : deniability negl + Ask TLS , max + Ask I Equilibrium
Infrastructure g PKI : cert integrity Adv CA EUF (shared) Equilibrium
g RO : hash consistency 0 (ideal) (shared) Equilibrium
g RNG : RNG quality Adv RNG PRG (shared) Equilibrium
Remark 7 
(Generalisation to N Protocols). Theorem 20 shows that a device running N = poly ( λ ) protocols simultaneously (e.g., TLS + Signal + SSH + WireGuard + …) remains in network equilibrium as long as each protocol market and the shared infrastructure are individually in equilibrium. The network ask price grows at most linearly in N, but since each component ask is negligible and N is polynomial, the sum remains negligible. The practical takeaway: running many secure protocols on the same device does not degrade security, provided the shared infrastructure (PKI, RNG) is sound.
Figure 63. Complete scoreboard of all MTSF case studies. Green boxes indicate market equilibrium (scheme/protocol is secure); red boxes indicate market collapse (insecure). The same MTSF framework produces both verdicts using bidding-round machinery, CNF verification, and session pinging.

17. Writing a Security Research Paper with MTSF

This section provides a comprehensive, self-contained guide for writing a classical security research paper using MTSF. It covers the full pipeline from specifying a cryptographic scheme to proving or disproving its security, and is written so that a graduate student encountering security proofs for the first time can follow each step.
Preprints 206168 i544

17.1. Step 1: Define the Scheme or Protocol

Preprints 206168 i545Preprints 206168 i546

17.2. Step 2: Define the Security Goals

Preprints 206168 i547

17.3. Step 3: Formal Security Definitions

Preprints 206168 i548Preprints 206168 i549

17.4. Step 4: Define the Adversary Model

Preprints 206168 i550

17.5. Step 5: Construct the MTSF Security Proof

Preprints 206168 i551Preprints 206168 i552

17.6. Step 6: Proving Insecurity with MTSF

Preprints 206168 i553Preprints 206168 i554

17.7. Step 7: Structuring the Paper

Preprints 206168 i555Preprints 206168 i556
Figure 64. The seven-step pipeline for writing a security research paper using MTSF. Steps 1–4 set up the scheme, goals, definitions, and adversary model. Step 5 constructs the MTSF proof. Step 6 handles insecurity (if applicable). Step 7 organises the paper. The final verdict is equilibrium (secure) or collapse (insecure).
Figure 64. The seven-step pipeline for writing a security research paper using MTSF. Steps 1–4 set up the scheme, goals, definitions, and adversary model. Step 5 constructs the MTSF proof. Step 6 handles insecurity (if applicable). Step 7 organises the paper. The final verdict is equilibrium (secure) or collapse (insecure).
Preprints 206168 g059

18. Presenting MTSF Proofs for Different Publication Venues

Cryptographic research is published across venues with vastly different page limits, audiences, and expectations. A proof that fills 40 pages at CRYPTO would be rejected at IEEE Transactions on Information Forensics and Security (TIFS) for exceeding the 13-page limit. Conversely, a compressed 8-page proof at a journal might be criticised at EUROCRYPT for lacking detail. This section provides concrete, venue-specific guidance for presenting MTSF proofs at three classes of publication venue: (1) page-restricted IEEE Transactions, (2) page-unrestricted Springer/Elsevier journals, and (3) cryptographic conferences with lengthy proceedings.
Preprints 206168 i557

18.1. Case 1: IEEE Transactions (Page-Restricted, Broad Audience)

Preprints 206168 i558Preprints 206168 i559Preprints 206168 i560
Figure 65. Four venue-specific presentations of the same MTSF proof. IEEE: compressed table. Non-crypto journals: full rounds with application context and analogies. Crypto journals: full rigorous proofs with tightness. CRYPTO/EUROCRYPT: full proofs with extensions, meta-reductions, and composition.
Figure 65. Four venue-specific presentations of the same MTSF proof. IEEE: compressed table. Non-crypto journals: full rounds with application context and analogies. Crypto journals: full rigorous proofs with tightness. CRYPTO/EUROCRYPT: full proofs with extensions, meta-reductions, and composition.
Preprints 206168 g060

18.2. Case 2a: Cryptographic Journals (Page-Unrestricted, Expert Cryptographic Audience)

Preprints 206168 i561Preprints 206168 i562Preprints 206168 i563Preprints 206168 i564

18.3. Case 2b: Non-Cryptographic Journals (Page-Unrestricted, Domain-Specific Audience)

Preprints 206168 i565Preprints 206168 i566Preprints 206168 i567Preprints 206168 i568Preprints 206168 i569
Figure 66. Paper structure comparison: cryptographic journals (top) vs. non-cryptographic journals (bottom). The MTSF proof core is shared; the framing (application context vs. tightness analysis) differs.
Figure 66. Paper structure comparison: cryptographic journals (top) vs. non-cryptographic journals (bottom). The MTSF proof core is shared; the framing (application context vs. tightness analysis) differs.
Preprints 206168 g061

18.4. Case 3: Cryptographic Conferences (Extended Proceedings, Expert Audience)

Preprints 206168 i570Preprints 206168 i571Preprints 206168 i572

18.5. Venue Adaptation Summary

Figure 67. Venue adaptation matrix: how each MTSF proof component should be presented across four venue types. IEEE: compressed. Non-crypto journals: application-focused with analogies and performance. Crypto journals: rigorous with tightness. CRYPTO/EUROCRYPT: full with extensions and meta-reductions.
Figure 67. Venue adaptation matrix: how each MTSF proof component should be presented across four venue types. IEEE: compressed. Non-crypto journals: application-focused with analogies and performance. Crypto journals: rigorous with tightness. CRYPTO/EUROCRYPT: full with extensions and meta-reductions.
Preprints 206168 g062
Preprints 206168 i573Preprints 206168 i574Preprints 206168 i575

18.6. MTSF Battle Cards and Proof Scorecards

Preprints 206168 i576
Figure 68. Battle card: ECDSA. Five bidding rounds, all bids fail, market in equilibrium with Ask 2 128 .
Figure 68. Battle card: ECDSA. Five bidding rounds, all bids fail, market in equilibrium with Ask 2 128 .
Preprints 206168 g063
Figure 69. Battle card: Needham–Schroeder. One masquerade bid succeeds with Ask = 1 . Market collapsed—protocol design flaw.
Figure 69. Battle card: Needham–Schroeder. One masquerade bid succeeds with Ask = 1 . Market collapsed—protocol design flaw.
Preprints 206168 g064
Figure 70. Historical timeline of cryptographic security paradigms. Key events from Needham–Schroeder (1978) to MTSF (2026). The annotation shows that MTSF’s CNF verification would have detected the NS flaw immediately upon protocol design.
Figure 70. Historical timeline of cryptographic security paradigms. Key events from Needham–Schroeder (1978) to MTSF (2026). The annotation shows that MTSF’s CNF verification would have detected the NS flaw immediately upon protocol design.
Preprints 206168 g065
Figure 71. Battle card: AES-256. Four cryptanalytic bids, all fail with wide margins. Market in equilibrium.
Figure 71. Battle card: AES-256. Four cryptanalytic bids, all fail with wide margins. Market in equilibrium.
Preprints 206168 g066
Figure 72. Battle card: BB84 QKD. Information-theoretic security—permanent equilibrium based on physics, not computation.
Figure 72. Battle card: BB84 QKD. Information-theoretic security—permanent equilibrium based on physics, not computation.
Preprints 206168 g067

20. Conclusions

Preprints 206168 i578
We introduced the Market-Theoretic Security Framework (MTSF), a novel paradigm that models every cryptographic security game as an auction between a seller (challenger) and one or more buyers (adversaries bidding computational resources). The framework unifies four previously disconnected paradigms—game-based proofs, Universal Composability (UC), Generalised UC (GUC), and formal verification—under a single economic language in which security equals market equilibrium and insecurity equals market collapse.

20.0.0.16. Seventeen formal contributions:

1.
Auction model. Security = equilibrium ( Ask negl ); insecurity = collapse ( Ask = 1 ). The same bidding-round machinery handles both.
2.
Extended difference lemma. Captures m 1 simultaneous failure events F 1 , , F m in a single game hop via Pr i F i with inclusion-exclusion tightening. Applied uniformly across all eighteen case studies.
3.
Bidding-based proofs. Each game hop targets a specific adversarial strategy (nonce bid, hash bid, forgery bid, homomorphism bid, masquerade bid, O2H bid, measure-and-reprogram bid). The proof explicitly tracks what the adversary attacks and how much it costs.
4.
Four-paradigm unification. Game-based proofs (price adjustments), UC (market regulation by Z ), GUC (shared infrastructure + CNF audit), and formal verification (market stress testing) are unified.
5.
CNF session verification. A canonical five-phase algorithm (Algorithm 1) plus an easy four-column manual truth-table worksheet, integrated into every case study.
6.
Session pinging. Inductive mechanism for unbounded session security. Ping bids included in every primitive and protocol case study, formally bridging bounded game-based proofs and symbolic formal verification.
7.
Thirteen novelties. Summarised in Section 6: market language, extended difference lemma, UC-as-regulation, GUC-as-infrastructure, formal-verification-as-stress-testing, insecurity-as-collapse, end-to-end pipeline, protocol-level games, symmetric/asymmetric markets, cryptanalytic bid taxonomy, CNF worksheet, session pinging, and QROM formalisation.
8.
Security proofs. ECDSA, ML-KEM (FIPS 203), ML-DSA (FIPS 204), ISO/IEC 11770-3 key exchange (two-party, three-party, four-party), PKI-based mutual authentication, and TLS 1.3 (1-RTT handshake, ten-bidding-round chain, forward secrecy and mutual authentication).
9.
Insecurity proofs. Textbook RSA signatures ( Ask = 1 via homomorphism bid, two attacks), Needham–Schroeder public-key protocol ( Ask = 1 via masquerade bid, CNF design failure demonstrated), TLS 1.3 0-RTT early data ( Ask = 1 via free replay bid, CNF freshness clause failure), and TLS 1.3 downgrade without sentinel ( Ask = 1 via free version-stripping bid, CNF version clause failure).
10.
Extended primitive markets. HMAC (SUF-CMA via dual PRF game hops), AEAD (IND-CCA2 + INT-CTXT via Encrypt-then-MAC), SLH-DSA (FIPS 205, hash-based EUF-CMA), and FN-DSA (FIPS 206, NTRU lattice EUF-CMA with Gaussian sampling analysis).
11.
Block-cipher market. AES analysed via differential cryptanalysis, linear cryptanalysis, rotational cryptanalysis, and related-key attack bids. All bids fail for q E 2 64 . Extended to PRESENT (ultra-lightweight SPN, 64-bit block, equilibrium within birthday-bound constraint) and Serpent (32-round conservative AES finalist with the widest equilibrium margin of any block cipher—20 rounds of security margin beyond the best known attack).
12.
Hash-function market. Keccak/SHA-3 analysed via capacity collision, capacity inversion (preimage), and length-extension bids. Sponge capacity isolation eliminates length-extension at zero additional cost. Extended to BLAKE3 (Merkle tree structure providing structural length-extension immunity with Ask ( g LE ) = 0 , stronger than Keccak’s parametric bound) and ASCON-Hash (NIST lightweight standard, sponge with c = 256 , equilibrium within lightweight deployment constraints).
13.
Stream-cipher market. Grain-128a analysed via state-recovery, key-recovery, distinguishing, and TMTO bids. The 256-bit state and nonlinear NFSR coupling make all bids negligible. Extended to ChaCha20 (256-bit key ARX cipher, feedforward inversion barrier, nonce-misuse collapse formalisation, deployed in TLS 1.3 and WireGuard) and Trivium (80-bit key, 288-bit state, three-register design with cube attack bid as tightest constraint at 2 38 ).
14.
QROM case study. FO-transform KEM proven IND-CCA2 in the Quantum Random Oracle Model using the O2H lemma and measure-and-reprogram technique. Full protocol description (four phases), sequence diagram, six-bidding-round proof, bidding-round chain figure, and market goods table. First market-theoretic formalisation of QROM security.
15.
Telegram dual analysis. MTProto 2.0 disproved (salt extraction causes four simultaneous failures: entropy collapse, CNF freshness failure, ping degradation, quasi-market collapse Ask 1 ) and Remediated MTProto (RMTP) proved secure (HMAC-bound 128-bit salts restore full equilibrium). First formal proof/disproof dual analysis of MTProto within a single unified framework.
16.
BB84 quantum market dynamics case study. First full quantum market analysis where both seller and buyer are quantum. BB84 QKD analysed via four quantum bidding rounds (no-cloning bid, error estimation bid, privacy amplification via quantum leftover hash lemma, error correction leakage). Security is information-theoretic: Ask Q ( g secrecy ) 2 λ / 2 with no computational hardness assumption. Includes quantum sequence diagram, quantum bidding-round chain figure, CNF worksheet, ping bid, market goods table, and comparison table (QROM vs. full quantum market).
17.
TLS+Signal multi-protocol composition case study. First MTSF analysis of concurrent protocol execution. TLS 1.3 and Signal Protocol running simultaneously on the same device with shared PKI, random oracle, and RNG infrastructure. Market merger theorem instantiated to prove network equilibrium for all nine security goods across both protocols. Resource competition analysis formalises the adversary’s portfolio optimisation problem. Network CNF with infrastructure clauses and cross-protocol ping bids for unbounded sessions.

20.1. Lessons Learned

Preprints 206168 i579Preprints 206168 i580

Market equilibrium as the right notion of security.

The market framing reveals that security is not binary: it is a price. Textbook RSA has ask price 1 (free forgery). Needham–Schroeder has ask price 1 for mutual authentication. ML-KEM has ask price 2 ( q H + 1 ) Adv MLWE + q D δ in the QROM—a very small but nonzero price that depends on the hardness of MLWE and the number of quantum oracle queries. This continuous view of security, rather than a pass/fail view, is more faithful to real-world threat assessment.

20.1.0.18. CNF worksheet as a design tool.

The CNF verification worksheets serve two purposes: (1) they verify correctness of an existing protocol trace; (2) they reveal design flaws. The Needham–Schroeder CNF worksheet explicitly shows that all three clauses evaluate to T under Lowe’s MITM attack—a CNF design failure traceable to the absence of an identity-binding clause. Using the CNF as a design guide during protocol development would have caught this flaw in 1978.

20.1.0.19. The QROM square-root is the right way to think about quantum hardness.

The O2H lemma’s square-root factor Adv IND - CPA is not merely a technical artefact—it captures a fundamental property of quantum adversaries: they accumulate information quadratically more efficiently than classical adversaries via amplitude concentration. Expressing this as a bidding-round price adjustment makes the quantum advantage/disadvantage explicit and comparable to the classical setting.

20.1.0.20. Dual proof/disproof enables protocol engineering.

The Telegram case study demonstrates that MTSF can serve as a protocol engineering tool: first disprove the insecure design (identify which clauses fail and by how much), then design a fix (HMAC-bound salts), then prove the fixed design secure. This iterative methodology—disprove, diagnose, fix, prove—is the natural application of MTSF in practice.

20.1.0.21. Quantum markets reveal physics-based security as a structural market advantage.

The BB84 case study (Section 15) demonstrates a qualitatively different kind of equilibrium from all other case studies. In classical and QROM markets, equilibrium depends on computational hardness assumptions (ECDLP, MLWE, gap-CDH)—a sufficiently powerful computer could collapse any of these markets. In the BB84 quantum market, equilibrium depends on the laws of quantum mechanics (no-cloning, information-disturbance trade-off). The ask price Ask Q ( g secrecy ) 2 λ / 2 holds against adversaries with unlimited computational power. In market terms, the seller has a structural advantage: the goods are physically uncopyable. This is the strongest possible market position—the equilibrium is permanent unless physics itself is wrong.

20.1.0.22. Composition preserves equilibrium with explicit resource accounting.

The TLS+Signal case study (Section 16) demonstrates that the market merger theorem translates UC composition into explicit resource accounting. The adversary’s budget must be split across all markets, and the additive ask price bound Ask N ϵ i + ϵ I makes the composition overhead concrete and auditable. The practical implication: running many secure protocols on the same device does not degrade security, provided the shared infrastructure is sound. The infrastructure CNF ( φ I ) serves as a compositional design checklist: ensure global SID uniqueness, hash consistency, PKI consistency, and RNG quality across all protocols.

20.2. Further Work

Preprints 206168 i581Preprints 206168 i582Preprints 206168 i583

Quantum market dynamics:

The QROM case study treats the quantum adversary as a buyer with a specific bid structure (O2H reprogramming, measure-and-reprogram). A deeper theory of quantum market dynamics—where the seller also has access to quantum operations and the market evolves under quantum game theory—is an open and rich research direction. We provide an initial formalisation below.

20.2.1. Towards Quantum Market Dynamics

In the QROM case study (Section 14), the buyer (quantum adversary) can query oracles in superposition, but the seller (challenger) operates classically—sampling keys, computing ciphertexts, and answering decapsulation queries using classical algorithms. This asymmetry is faithful to the current post-quantum setting where honest parties run classical protocols and only the adversary has quantum power. However, a richer and increasingly relevant setting arises when both parties have quantum capabilities.
Definition 37 
(Quantum Market). Aquantum market M Q = ( Seller Q , Buyer Q , { g j } , H Q , ρ 0 ) extends the classical MTSF market with:
1.
Quantum seller Seller Q : the challenger holds a quantum register R S and can perform quantum operations (state preparation, unitary gates, measurements) during each bidding round. The seller’s strategy is a sequence of quantum channels { E k S } k = 1 n , one per bidding round.
2.
Quantum buyer Buyer Q : the adversary holds a quantum register R B and can make superposition queries to all oracles. The buyer’s strategy is a sequence of quantum channels { E k B } k = 1 n .
3.
Quantum oracle H Q : replaces the classical random oracle with a quantum-accessible oracle that both parties can query in superposition.
4.
Shared quantum state ρ 0 : an initial joint quantum state (possibly entangled) distributed across all registers at market opening.
5.
Quantum price functional:The ask price of good g j in the quantum market is:
Ask Q ( g j ) = sup Buyer Q QPT Tr Π g j · E n B E n S E 1 B E 1 S ( ρ 0 ) ,
where Π g j is the projector onto the “buyer wins good g j ” subspace and the supremum is over all quantum polynomial-time (QPT) buyer strategies.
Preprints 206168 i584
The quantum market introduces three new phenomena absent from the classical setting:
1.
Entangled bidding. The buyer can maintain entanglement between its query register and a private workspace across multiple bidding rounds. Classically, each bid is an independent probabilistic strategy; quantumly, the buyer’s bids can be coherently correlated across rounds via entanglement. The seller’s challenge is to design bidding rounds that decohere the buyer’s entanglement without destroying the security guarantee.
2.
Quantum price adjustments. In the classical extended difference lemma, the price adjustment Δ Price k = | Pr B k 1 Pr B k + 1 1 | is a difference of classical probabilities. In the quantum setting, the analogous quantity is:
Δ Price k Q = 1 2 E k S ( ρ k ) E k + 1 S ( ρ k ) tr ,
where · tr is the trace distance and ρ k is the joint state after round k. The trace distance is the quantum generalisation of statistical distance, and the factor 1 2 normalises it to [ 0 , 1 ] . The quantum extended difference lemma would bound Ask Q ( g j ) k Δ Price k Q via the triangle inequality for trace distance.
3.
No-cloning constraint on bids. The no-cloning theorem prevents the buyer from copying quantum states received from the seller. This is a structural advantage for the seller that has no classical analogue: in the classical setting, the buyer can always copy any message. In the quantum market, the seller can exploit no-cloning by encoding challenge information in non-orthogonal quantum states, forcing the buyer to choose irreversibly which bid to pursue—a quantum analogue of a “take it or leave it” offer.
Figure 73. Quantum market dynamics. Both seller and buyer operate on quantum registers ( R S , R B ) through a shared quantum oracle H Q . Each bidding round applies quantum channels E k S (seller) and E k B (buyer) to the evolving joint state ρ k . The buyer can maintain entanglement across rounds (wavy red lines). The quantum ask price is the trace Tr [ Π g j · ρ n ] of the final state against the “buyer wins” projector. The classical QROM case study (Section 14) is the special case where the seller’s channels E k S are all classical operations.
Proposition 6 
(Quantum Extended Difference Lemma—Sketch). Let B 0 Q , B 1 Q , , B n Q be a sequence of quantum bidding rounds with shared initial state ρ 0 . If each consecutive pair satisfies 1 2 ρ final ( k ) ρ final ( k + 1 ) tr Δ Price k Q , then the quantum ask price satisfies:
Ask Q ( g j ) Ask 0 Q ( g j ) + k = 0 n 1 Δ Price k Q ,
where Ask 0 Q ( g j ) = Tr [ Π g j · ρ final ( 0 ) ] is the ask price in the initial (ideal) quantum market.
Proof 
(Proof sketch). The trace distance satisfies the triangle inequality: ρ σ tr ρ τ tr + τ σ tr . By the operational interpretation of trace distance, the maximum difference in probability of any measurement outcome between ρ final ( 0 ) and ρ final ( n ) is at most 1 2 ρ final ( 0 ) ρ final ( n ) tr k = 0 n 1 Δ Price k Q . Applying this to the projector Π g j yields the result. □
Remark 8 
(Classical QROM as a Special Case). The QROM case study of Section 14 is recovered by restricting the seller’s channels E k S to classical operations (prepare-and-measure) and allowing only the buyer’s channels E k B to be genuinely quantum. The O2H lemma’s square-root factor Adv IND - CPA arises specifically because the buyer’s quantum channel concentrates amplitude on the reprogrammed point—a quantum price adjustment of the form (227) where the trace distance is bounded by Unruh’s O2H inequality.
Remark 9 
(Application to QKD and Quantum Protocols). Quantum Key Distribution (QKD) protocols such as BB84 and E91 are natural targets for quantum market dynamics: the seller (Alice) prepares quantum states and the buyer (Eve) performs quantum measurements to extract key information. The no-cloning constraint on bids (item 3 above) captures the fundamental reason why QKD is secure: the eavesdropper cannot copy the quantum states without disturbing them. In the MTSF language, the seller’s quantum channel E k S prepares non-orthogonal states thatstructurally preventthe buyer from simultaneously extracting full information about the key and remaining undetected—a market in which the seller’s goods are inherently copy-protected.
20.2.1.1. Multi-protocol composition networks.
MTSF currently handles individual protocol markets. A protocol network where multiple protocols run simultaneously, sharing infrastructure and competing for resources, would require a market network theory. The UC composition theorem provides the blueprint; translating it into MTSF market mergers and equilibrium preservation is future work. We provide the initial formalisation below.

20.2.2. Towards Multi-Protocol Composition Networks

In the current MTSF framework, each protocol defines a single market M π with its own seller, buyer, goods, and bidding-round chain. The UC composition theorem (Section 2.4) guarantees that UC-secure protocols remain secure when composed concurrently. In the MTSF language (Section 2.5), the UC composition theorem was informally described as a “market merger theorem.” We now make this precise.
Definition 38 
(Protocol Market Network). Aprotocol market network N = ( { M i } i = 1 N , I , Z ) consists of:
1.
Component markets M 1 , , M N : each M i = ( Seller i , Buyer i , { g j ( i ) } , φ i ) is an individual MTSF protocol market with its own goods { g j ( i ) } and session-CNF formula φ i .
2.
Shared infrastructure I : a set of shared functionalities (PKI, common random oracles, shared key material) accessible to all markets. In MTSF terms, I is the GUC shared market infrastructure—the common goods that every market can trade on.
3.
Network environment Z : the UC environment, acting as MTSF’s market regulator, which can interact with all N markets simultaneously, schedule messages between them, and observe all transcripts.
4.
Resource budget Budget ( Buyer ) : the total computational resource available to the buyer across all markets. If the buyer participates in market M i with resource t i , then i = 1 N t i Budget ( Buyer ) .
Preprints 206168 i585
The central question is: when does a network of individually secure markets remain secure?
Definition 39 
(Market Merger). Given two MTSF markets M 1 = ( Seller 1 , Buyer 1 , { g j ( 1 ) } , φ 1 ) and M 2 = ( Seller 2 , Buyer 2 , { g j ( 2 ) } , φ 2 ) with shared infrastructure I , theirmergeris the composite market:
M 1 I M 2 = Seller 1 2 , Buyer 1 2 , { g j ( 1 ) } { g j ( 2 ) } , φ 1 φ 2 φ I ,
where Seller 1 2 runs both sellers concurrently, Buyer 1 2 is a single buyer interacting with both markets simultaneously, and φ I encodes the correctness of the shared infrastructure (e.g., PKI consistency, RO consistency).
Theorem 63 
(Market Merger Preserves Equilibrium—Initial Form). Let M 1 and M 2 be MTSF protocol markets sharing infrastructure I . If:
1.
M 1 is in equilibrium: Ask 1 ( g j ( 1 ) ) negl ( λ ) for all goods g j ( 1 ) ;
2.
M 2 is in equilibrium: Ask 2 ( g j ( 2 ) ) negl ( λ ) for all goods g j ( 2 ) ;
3.
The shared infrastructure is sound: Ask I ( g I ) negl ( λ ) for all infrastructure goods;
then the merged market M 1 I M 2 is in equilibrium:
Ask 1 2 ( g ) negl ( λ ) for all goods g { g j ( 1 ) } { g j ( 2 ) } .
Proof 
(Proof sketch). The proof mirrors the UC composition theorem. Suppose for contradiction that the merged market has a good g j ( 1 ) (w.l.o.g.) with Ask 1 2 ( g j ( 1 ) ) = ϵ non-negligible. Then there exists a buyer Buyer 1 2 that wins g j ( 1 ) with probability ϵ in the merged market. We construct a buyer Buyer 1 * for the standalone market M 1 that:
1.
Internally simulates M 2 ’s seller Seller 2 (using the UC simulator for M 2 );
2.
Forwards the network environment’s queries between M 1 (real) and M 2 (simulated);
3.
Runs Buyer 1 2 as a subroutine, providing it with a view indistinguishable from the real merged market.
By the indistinguishability of real and simulated M 2 (which holds because M 2 is UC-secure and thus in equilibrium), Buyer 1 * wins g j ( 1 ) with probability at least ϵ negl ( λ ) . But this contradicts Ask 1 ( g j ( 1 ) ) negl ( λ ) . □
Remark 10 
(Quantitative Merger Bound). The proof gives a concrete bound. If Ask 1 ( g j ( 1 ) ) ϵ 1 , Ask 2 ( g j ( 2 ) ) ϵ 2 , and Ask I ( g I ) ϵ I , then:
Ask 1 2 ( g j ( 1 ) ) ϵ 1 + ϵ 2 + ϵ I .
The ask prices are additive across the merger—each market contributes its own risk, and the shared infrastructure contributes a common risk. This is the MTSF analogue of the “hybrid argument” in UC composition: the simulation overhead from each market accumulates linearly.
The merger operation extends naturally to N markets via iterated composition.
Corollary 20 
(N-Market Network Equilibrium). Let N = ( { M i } i = 1 N , I , Z ) be a protocol market network where each M i is in equilibrium with Ask i ( g j ( i ) ) ϵ i for all j, and the shared infrastructure has Ask I ϵ I . Then the N-fold merger i = 1 N M i satisfies:
Ask N ( g j ( i ) ) ϵ i + ( N 1 ) · ϵ max + ϵ I ,
where ϵ max = max i ϵ i . In particular, if all ϵ i are negligible and N = poly ( λ ) , the network remains in equilibrium.
Definition 40 
(Network Session-CNF). The session-CNF formula for the protocol market network N is the conjunction of all component CNFs and the infrastructure CNF:
φ N = i = 1 N φ i φ I ,
where φ I = φ I PKI φ I RO φ I consist encodes PKI consistency (same public key across all markets), random oracle consistency (same H across all markets), and cross-market consistency (session identifiers are globally unique).
Remark 11 
(Network Ping Bids and Unbounded Composition). Session pinging (Section 5) extends naturally to the network setting. The network ping bid for session Session i ( k ) (the i-th session of market M k ) must verify not only the intra-market CNF φ k but also the cross-market infrastructure CNF φ I . By the session pinging theorem applied to each component market and the infrastructure, the network remains in equilibrium for unbounded sessions across all N protocols simultaneously, provided each component market’s ping bid is negligible.
Figure 74. Multi-protocol composition network. Three protocol markets ( M 1 : TLS 1.3, M 2 : Signal, M 3 : SSH) share infrastructure I (PKI, random oracle, shared keys). The network environment Z (market regulator) monitors all markets simultaneously. The buyer must split its resource budget across all markets. Dashed orange links indicate resource competition; dashed purple links indicate shared infrastructure. The merged market M 1 I M 2 I M 3 preserves equilibrium when each component market and the shared infrastructure are individually in equilibrium (Theorem 63, Theorem 20).
Figure 74. Multi-protocol composition network. Three protocol markets ( M 1 : TLS 1.3, M 2 : Signal, M 3 : SSH) share infrastructure I (PKI, random oracle, shared keys). The network environment Z (market regulator) monitors all markets simultaneously. The buyer must split its resource budget across all markets. Dashed orange links indicate resource competition; dashed purple links indicate shared infrastructure. The merged market M 1 I M 2 I M 3 preserves equilibrium when each component market and the shared infrastructure are individually in equilibrium (Theorem 63, Theorem 20).
Preprints 206168 g069
Remark 12 
(Resource Competition and Market Inefficiency). A subtle feature of the market network isresource competition: the buyer has a fixed computational budget that must be allocated across all N markets. In the classical UC setting, this is implicit in the polynomial-time bound on the adversary. In the MTSF language, it becomes explicit: the buyer’s total resource expenditure i t i is bounded, and spending more on attacking M 1 means spending less on M 2 . This creates a naturalportfolio optimisation problemfor the adversary: which markets offer the best “return on attack investment”? The market with the highest ask price (weakest security) is the rational first target—a formalisation of the common intuition that “a chain is only as strong as its weakest link.”
20.2.2.1. Further lightweight and modern cipher markets.
This article extends the symmetric-primitive case studies to PRESENT, Serpent, BLAKE3, ASCON-Hash, ChaCha20, and Trivium, demonstrating the generality of the MTSF framework across block ciphers, hash functions, and stream ciphers of varying design philosophies and security margins. Future work can extend this further to additional lightweight ciphers (GIFT, SKINNY, PHOTON) and to the ChaCha20-Poly1305 AEAD construction (combining the ChaCha20 stream-cipher market with a Poly1305 MAC market). The ASCON authenticated encryption mode (beyond ASCON-Hash) is another natural extension, unifying AEAD and hash-function markets within a single sponge-based analysis.
20.2.2.2. MPC and threshold protocol markets.
Multi-Party Computation (MPC) protocols involve n parties, some of which may be malicious. The MTSF framework can be extended by allowing multiple simultaneous buyers (colluding adversaries) bidding against the seller in a multi-buyer auction, capturing threshold adversary models naturally.

Dedication

...
0.82 This work is dedicated to the Omnipotent and Mother Nature!!!
— Basker Palaniswamy,
Cork City, Ireland, European Union,
March 2026.

Acknowledgments

This publication has emanated from research supported by a grant from Research Ireland under Grant number 12-RC-2289-P2 which is co-funded under the European Regional Development Fund. For the purpose of Open Access, the authors have applied a CC BY public copyright license to any Author Accepted Manuscript version arising from this submission.

Appendix A. MTSF Correspondence Table

Table A1. Classical-to-MTSF correspondence: complete mapping of cryptographic concepts to market-theoretic language.
Table A1. Classical-to-MTSF correspondence: complete mapping of cryptographic concepts to market-theoretic language.
Classical Concept MTSF Concept Market Status / Notes
Challenger Seller Offers security goods at ask price
Adversary A Buyer Bids computational resources to win goods
Advantage negl Ask negl Equilibrium (secure)
Advantage = 1 Ask = 1 Collapsed (insecure)
Advantage ϵ ( 0 , 1 ) Ask = ϵ Partial equilibrium (weakened security)
Game hop B k B k + 1 Price adjustment Δ Price k Transaction cost (proof step)
Difference lemma (1 failure) Single-bid bound: Pr F One market risk
Extended diff. lemma (m failures) Multi-bid bound: Pr F i Correlated risks, inclusion-exclusion
Inclusion-exclusion tightening Correlated bid discount Risk diversification reduces bound
Tight reduction Efficient market (zero spread) Optimal proof quality
Loose reduction Inefficient market (large spread) Suboptimal proof
UC environment Z Market regulator Oversees all concurrent trades
UC ideal functionality F Security good specification Defines what seller guarantees
Simulator S Market arbitrageur Bridges real and ideal worlds
UC composition theorem Market merger theorem Equilibrium preserved under composition
GUC shared functionality Market infrastructure (PKI, CRS) Public goods, accessible to all
GUC cross-session Market federation Cross-session SID binding
Session-CNF satisfiable (honest) Market audit passes Correct session
Session-CNF SAT under dishonest Audit failure (false pass) CNF design failure (insecure)
Session-CNF UNSAT under dishonest Audit passes correctly Secure protocol (dishonest ⇒ UNSAT)
CNF clause φ sid SID-binding audit clause Cross-session replay blocked
CNF clause φ fresh Nonce freshness clause Full-session replay blocked
CNF clause φ sig Signature verification clause Impersonation blocked
CNF clause φ mac MAC verification clause Ciphertext injection blocked
CNF clause φ ping Unbounded ping clause Multi-session replay blocked
Replay / Masquerade / MITM Stale bid / ID fraud / Manipulation Fraud bid types
NS MITM attack Market collapse via masquerade Ask = 1 , CNF design failure
RSA homomorphism Market collapse via free forgery Ask = 1 , algebraic vulnerability
Lowe’s identity-binding fix CNF clause addition Restores dishonest⇒UNSAT
Authentication game Entity verification good g auth Impersonation bid bounded by EUF-CMA
Mutual authentication game Bidirectional good g mutual Dual impersonation bid
Session-key secrecy game Key indistinguishability good g sk Key-distinguishing bid
CNF checking game Audit integrity good g CNF Dishonest-satisfaction bid
Certificate authenticity CA forgery good g cert EUF-CMA on CA signing key
Differential cryptanalysis Differential bid S-box differential propagation
Linear cryptanalysis Linear bid Linear approximation bias
Rotational cryptanalysis Rotational bid Rotation-commutation break at χ
Related-key attack Related-key bid Key schedule linearity exploitation
State recovery (stream cipher) Internal state bid Register inversion via algebraic methods
Key recovery (stream cipher) Master key bid Initialisation inversion
Distinguishing attack Statistical bias bid Output filter nonlinearity test
TMTO attack Precomputation bid Time-memory trade-off on state space
Hash collision attack Capacity collision bid Birthday bound on sponge capacity
Preimage attack Capacity inversion bid Capacity inversion resistance
Length-extension attack State continuation bid Capacity isolation eliminates this
BLAKE3 Merkle tree LE immunity Structural immunity bid ( Ask = 0 ) Tree structure blocks state continuation
ASCON-Hash lightweight sponge Lightweight capacity bid ( c = 256 ) Tighter bounds, still negligible
PRESENT lightweight PRP Lightweight differential/linear bids 64-bit block birthday constraint
Serpent conservative PRP Conservative margin bids 20-round margin beyond best attack
Serpent boomerang attack Two-differential composition bid Adaptive chosen plaintext/ciphertext
ChaCha20 feedforward Feedforward inversion bid Addition prevents state inversion
ChaCha20 nonce misuse Nonce reuse collapse bid ( Ask = 1 ) Identical keystreams leak m 1 m 2
Trivium cube attack Cube superpoly bid Dimension-d IV summation
Trivium three-register coupling Circular feedback bid A B C A nonlinear mixing
Classical ROM reprogramming Free game hop (zero price) Syntactic, no adversary detects
QROM reprogramming O2H bid: 2 ( q H + 1 ) ϵ Square-root cost from superposition
Measure-and-reprogram Extraction bid: ϵ Quantum measurement back-action
QROM correctness error Correctness bid: q D δ PKE decapsulation failure probability
QROM implicit rejection Rejection consistency bid Prevents chosen-ciphertext leakage
O2H square-root factor Quantum bid price Cost of defeating quantum adversary
Classical vs. QROM Linear vs. square-root price Quantum hardness amplification
Telegram salt extraction Salt extraction bid (“free” bid) Collapses Ask ( g IND ) to 1
HMAC-bound salt (RMTP) Salt secrecy bid bounded by PRF Restores equilibrium
MTProto market collapse Partial collapse ( Ask ¬ negl ) 64-bit security margin only
RMTP equilibrium Full equilibrium ( Ask negl ) 128-bit security restored
BB84 qubit preparation Quantum seller channel E k S Non-orthogonal state encoding
BB84 eavesdropping Quantum buyer channel E k B Arbitrary CPTP map on intercepted qubits
No-cloning theorem No-cloning bid constraint Buyer cannot copy seller’s goods
Info-disturbance trade-off Quantum price floor Minimum disturbance per bit of information
Error estimation Quantum market audit Statistical detection of buyer’s disturbance
Privacy amplification Quantum market restructuring QLHL extracts clean key from partial leakage
QKD information-theoretic security Quantum equilibrium (physics-based) No computational assumption required
UC composition theorem Market merger theorem Two equilibria merge to network equilibrium
Concurrent protocol execution Protocol market network N N markets sharing infrastructure
Shared CRS / PKI Market infrastructure I Public goods accessible to all markets
UC simulator Market arbitrageur Bridges real and ideal in merged market
Adversary’s time budget Buyer’s resource budget t i T across all markets
Protocol-independent SIDs Global SID uniqueness clause Cross-market CNF consistency
Composition overhead Additive ask price Ask N ϵ i + ϵ I
Preprints 206168 i586Preprints 206168 i587Preprints 206168 i588

Appendix B. Comprehensive Bid Taxonomy

Table A3. Complete bid taxonomy across all case studies, with price bounds and formal characterisation.
Table A3. Complete bid taxonomy across all case studies, with price bounds and formal characterisation.
Category Bid Type Target Price Bound Example
Primitives Nonce bid Birthday collision q S 2 / ( 2 q ) ECDSA B 1
Hash collision bid ROM collision q H 2 / ( 2 q ) ECDSA B 2
Forgery-to-hardness ECDLP/MSIS/SIS Adv ECDLP ECDSA B 3 B 4
Homomorphism bid Algebraic structure 1 (collapse) Textbook RSA
Gaussian sampling bid Norm distribution Δ DGS FN-DSA B 2
TSPR preimage bid Target-sum hash k · Adv TSPR SLH-DSA B 2
Symmetric PRF inner replacement Inner keyed hash Adv h PRF HMAC B 1
PRF outer replacement Outer keyed hash Adv h PRF HMAC B 2
MAC forgery bid Tag computation Adv SUF - CMA AEAD INT-CTXT
Decapsulation bypass Implicit rejection q D / 2 γ ML-KEM B 1
Inner collision bid Birthday on outputs q T 2 / 2 n + 1 HMAC B 3
Block cipher Differential bid S-box propagation q E · 2 150 AES B 2 B 3
Linear bid Linear approximation q E 2 · 2 150 AES linear
Rotational bid Rotation commutation q E · 2 128 AES rotational
Related-key bid Key schedule N/A for AES-128 AES-256
Algebraic bid MQ system > 2 128 ops AES Gröbner
Lightweight diff. bid 4-bit S-box propagation q E · 2 62 PRESENT
Lightweight linear bid 4-bit S-box bias q E 2 · 2 62 PRESENT
Boomerang bid Two-differential composition q E · 2 128 Serpent
Conservative margin bid 20-round attack gap q E · 2 196 Serpent
Hash function Capacity collision bid Sponge inner state q f 2 / 2 c + 1 Keccak CR
Capacity inversion bid State preimage q f / 2 c Keccak preimage
Length-extension bid State continuation q f / 2 c Keccak LE
Differential trail bid Round structure DP 24 Keccak B 2
Merkle tree collision bid Compression collision q f 2 / 2 257 BLAKE3 CR
Structural LE immunity bid Tree structure 0 BLAKE3 LE
Lightweight capacity collision Small sponge ( c = 256 ) q f 2 / 2 257 ASCON-Hash CR
Lightweight capacity inversion Small sponge preimage q f / 2 256 ASCON-Hash Pre
Stream cipher State recovery bid Full state inversion L · 2 256 Grain-128a
Key recovery bid Master key extraction q IV · 2 128 Grain-128a
Distinguishing bid Statistical bias L 2 · 2 97 Grain-128a
TMTO bid Precomputation T D / 2 256 Grain-128a
Algebraic/cube bid Polynomial system > 2 64 (cube) Grain variants
Feedforward inversion bid ARX state recovery L · 2 256 ChaCha20
Nonce-misuse collapse bid Nonce reuse 1 (collapse) ChaCha20
Cube superpoly bid IV summation 2 38 Trivium
Three-register correlation bid Circular feedback bias L 2 · 2 92 Trivium
80-bit key recovery bid Exhaustive key search q IV · 2 80 Trivium
Protocols Nonce freshness bid Nonce collision q N 2 / 2 λ + 1 All protocols
Signature forgery bid EUF-CMA break Adv EUF ISO 2P B 1
KEM key recovery bid IND-CCA2 break Adv IND - CCA 2 ISO 2P B 3
Impersonation bid Entity authentication Adv EUF + q N 2 / 2 λ + 1 ISO 2P auth
Masquerade bid Identity fraud 1 (collapse) NS MITM
Cross-session replay bid SID reuse 0 (SID-bound) All protocols
KDC signature bid KDC authenticity 2 · Adv EUF ISO 3P B 1
QROM Correctness error bid Decapsulation failure q D · δ QKEM B 1
O2H reprogramming bid Superposition detect 2 ( q H + 1 ) ϵ QKEM B 2
Measure-and-reprogram bid State disturbance ϵ QKEM B 3
IT hiding bid Uniform key 0 QKEM B 4
Oracle restriction bid Decapsulation info 0 QKEM B 5
Quantum replay bid Superposition replay 2 ( q H + 1 ) ϵ QKEM ping
Quantum MAC forgery bid Authentication break Adv SUF - CMA QKEM auth
Telegram Salt extraction bid Entropy reduction 1 (free) MTProto B 1
AES partial-key bid Meet-in-middle 1 2 64 MTProto B 2
CNF freshness failure bid Salt secrecy clause 1 (clause fails) MTProto B 3
Ping degradation bid Salt predictability 2 64 MTProto B 4
HMAC salt bid (RMTP) PRF distinguishing Adv HMAC PRF RMTP B 1
Nonce collision bid (RMTP) 128-bit birthday q D · 2 128 RMTP B 2
Quantum Market No-cloning bid Info-disturbance h ( Q obs ) BB84 B 1 Q
Error estimation bid Statistical detection e 2 k γ 2 BB84 B 2 Q
Privacy amplification bid QLHL extraction 2 λ / 2 BB84 B 3 Q
EC leakage bid Syndrome leakage 0 (absorbed) BB84 B 4 Q
Quantum replay bid Cross-session reuse 2 λ / 2 BB84 ping
Composition Cross-protocol replay bid SID collision 0 (label-bound) TLS+Signal
Simulation overhead bid UC simulation cost Ask other TLS+Signal
Infrastructure forgery bid CA cert forgery Adv CA EUF Shared PKI
RNG degradation bid PRG distinguishing Adv RNG PRG Shared RNG
CNF/Ping SID replay bid Cross-session replay 0 (SID-bound sigs) All protocols
Nonce reuse ping bid IV/nonce repetition q D / | N | AEAD ping
Ciphertext replay bid Old ciphertext reuse 2 ( q H + 1 ) ϵ QKEM ping
Session continuation bid State continuation q f / 2 c Keccak ping
Identity hijack bid CNF identity clause Adv EUF PKI ping
Table A5. Bid outcome classification: when does a bid succeed (collapse) vs. fail (equilibrium)?
Table A5. Bid outcome classification: when does a bid succeed (collapse) vs. fail (equilibrium)?
Bid type Succeeds when Market outcome Example
Nonce/birthday bid q 2 | N | Collapse if q 2 n / 2 ECDSA q S 2 128
Forgery-to-hardness Underlying hard problem breaks Collapse if ECDLP solvable ECDSA
Homomorphism bid Always (algebraic structure) Immediate collapse Textbook RSA
Masquerade bid Identity not bound in protocol Immediate collapse NS protocol
O2H bid q H 2 n / 2 with ϵ Equilibrium for ML-KEM QKEM
Salt extraction bid Salt accessible in plaintext Partial collapse ( 2 64 ) MTProto
HMAC salt binding auth _ key secure Equilibrium RMTP
Nonce-misuse bid Nonce reused with same key Immediate collapse ChaCha20
Cube superpoly bid Superpoly degree 1 Equilibrium ( 2 38 margin) Trivium
Lightweight birthday bid q E 2 n / 2 (block size) Collapse if q E 2 32 PRESENT
Merkle tree LE bid Never (structural) Permanent equilibrium BLAKE3
Boomerang bid Two-differential composes Equilibrium (20-round margin) Serpent
No-cloning bid Never (physics) Permanent equilibrium BB84
Cross-protocol replay Never (label-bound SIDs) Permanent equilibrium TLS+Signal
Infrastructure forgery CA signature broken Network collapse Shared PKI

Quick-Reference Cards

Preprints 206168 i589Preprints 206168 i590Preprints 206168 i591Preprints 206168 i592Preprints 206168 i593Preprints 206168 i594

References

  1. Shoup, V. Sequences of Games. IACR ePrint 2004, 2004, 332. [Google Scholar]
  2. Bellare, M.; Rogaway, P. Code-Based Game-Playing Proofs. Proceedings of the EUROCRYPT 2006, Vol. 4004, LNCS, 409–426. [Google Scholar]
  3. Canetti, R. Universally Composable Security. In Proceedings of the FOCS. IEEE, 2001; pp. 136–145. [Google Scholar]
  4. Canetti, R.; Dodis, Y.; Pass, R.; Walfish, S. Universally Composable Security with Global Setup. Proceedings of the TCC 2007, Vol. 4392, LNCS, 61–85. [Google Scholar]
  5. Camenisch, J.; Manulis, M.; Neven, G. On the Security of One-Round Protocols in the UC Framework. In Proceedings of the Workshop on Security and Cryptography for Networks (SCN), UC session correctness via CNF, 2010. [Google Scholar]
  6. Blanchet, B. An Efficient Cryptographic Protocol Verifier Based on Prolog Rules. In Proceedings of the CSFW, 2001; pp. 82–96. [Google Scholar]
  7. Meier, S.; Schmidt, B.; Cremers, C.; Basin, D. The TAMARIN Prover. Proceedings of the CAV 2013, Vol. 8044, LNCS, 696–701. [Google Scholar]
  8. Blanchet, B. A Computationally Sound Mechanized Prover. In Proceedings of the IEEE S&P, 2006; pp. 140–154. [Google Scholar]
  9. Needham, R.M.; Schroeder, M.D. Using Encryption for Authentication in Large Networks of Computers. Communications of the ACM 1978, 21, 993–999. [Google Scholar] [CrossRef]
  10. Lowe, G. Breaking and Fixing the Needham–Schroeder Public-Key Protocol Using FDR. Proceedings of the TACAS 1996, Vol. 1055, LNCS, 147–166. [Google Scholar]
  11. Goldwasser, S.; Micali, S. Probabilistic Encryption. JCSS 1984, 28, 270–299. [Google Scholar] [CrossRef]
  12. Bellare, M.; Rogaway, P. Random Oracles are Practical. In Proceedings of the CCS. ACM, 1993; pp. 62–73. [Google Scholar]
  13. Karp, R.M. Reducibility among Combinatorial Problems. In Proceedings of the Complexity of Computer Computations; Plenum Press, 1972; pp. 85–103. [Google Scholar]
  14. Bellare, M.; Neven, G. Multi-Signatures in the Plain Public-Key Model and a General Forking Lemma. In Proceedings of the CCS. ACM Introduces the general forking lemma, 2006; pp. 390–399. [Google Scholar]
  15. Biham, E.; Shamir, A. Differential Fault Analysis of Secret Key Cryptosystems. Proceedings of the Advances in Cryptology – CRYPTO 1997 1997, Vol. 1294, LNCS, 513–525. [Google Scholar]
  16. Ishai, Y.; Sahai, A.; Wagner, D. Private Circuits: Securing Hardware against Probing Attacks. Proceedings of the Advances in Cryptology – CRYPTO 2003 2003, Vol. 2729, LNCS, 463–481. [Google Scholar]
  17. Fuchsbauer, G.; Kiltz, E.; Loss, J. The Algebraic Group Model and its Applications. Proceedings of the Advances in Cryptology – CRYPTO 2018 2018, Vol. 10992, LNCS, 33–62. [Google Scholar]
  18. Don, J.; Fehr, S.; Majenz, C.; Schaffner, C. Security of the Fiat-Shamir Transformation in the Quantum Random-Oracle Model. In Proceedings of the Advances in Cryptology – CRYPTO 2019;Measure-and-reprogram technique; Springer, 2019; Vol. 11693, LNCS, pp. 356–383. [Google Scholar]
  19. Bellare, M.; Canetti, R.; Krawczyk, H. Keying Hash Functions for Message Authentication. Proceedings of the CRYPTO 1996, Vol. 1109, LNCS, 1–15. [Google Scholar]
  20. NIST. FIPS 197: Advanced Encryption Standard (AES); Technical report; NIST, 2001. [Google Scholar]
  21. Biham, E.; Shamir, A. Differential Cryptanalysis of DES-like Cryptosystems. Proceedings of the CRYPTO 1991, Vol. 537, LNCS, 2–21. [Google Scholar]
  22. Daemen, J.; Rijmen, V. The Design of Rijndael: AES—The Advanced Encryption Standard; Springer, 2002. [Google Scholar]
  23. Khovratovich, D.; Nikolić, I. Rotational Cryptanalysis of ARX. Proceedings of the FSE 2010, Vol. 6147, LNCS, 333–346. [Google Scholar]
  24. Biryukov, A.; Khovratovich, D. Related-Key Cryptanalysis of the Full AES-192 and AES-256. Proceedings of the ASIACRYPT 2009, Vol. 5912, LNCS, 1–18. [Google Scholar]
  25. Cid, C.; Murphy, S.; Robshaw, M. Algebraic Aspects of the Advanced Encryption Standard . In Information Security and Cryptography; Springer, 2006. [Google Scholar]
  26. Daemen, J.; Knudsen, L.R.; Rijmen, V. The Block Cipher Square. Proceedings of the Fast Software Encryption (FSE) 1997 1997, Vol. 1267, LNCS, 149–165. [Google Scholar]
  27. Derbez, P.; Fouque, P.A.; Jean, J. Improved Key Recovery Attacks on Reduced-Round AES in the Single-Key Setting. Proceedings of the Advances in Cryptology – EUROCRYPT 2013 2013, Vol. 7881, LNCS, 371–387. [Google Scholar]
  28. Bogdanov, A.; Knudsen, L.R.; Leander, G.; Paar, C.; Poschmann, A.; Robshaw, M.J.B.; Seurin, Y.; Vikkelsoe, C. PRESENT: An Ultra-Lightweight Block Cipher. Proceedings of the CHES 2007 2007, Vol. 4727, LNCS, 450–466. [Google Scholar]
  29. Cho, J.Y. Linear Cryptanalysis of Reduced-Round PRESENT. Proceedings of the CT-RSA 2010 2010, Vol. 5985, LNCS, 232–248. [Google Scholar]
  30. Anderson, R.; Biham, E.; Knudsen, L. Serpent: A Proposal for the Advanced Encryption Standard. In Proceedings of the First AES Candidate Conference, 1998. [Google Scholar]
  31. Biham, E.; Dunkelman, O.; Keller, N. Linear Cryptanalysis of Reduced Round Serpent. Proceedings of the FSE 2001 2002, Vol. 2355, LNCS, 16–27. [Google Scholar]
  32. Bertoni, G.; Daemen, J.; Peeters, M.; Van Assche, G. The Keccak Reference. In Proceedings of the Submission to NIST SHA-3 Competition, 2011. [Google Scholar]
  33. Bertoni, G.; Daemen, J.; Peeters, M.; Van Assche, G. On the Indifferentiability of the Sponge Construction. Proceedings of the EUROCRYPT 2008, Vol. 4965, LNCS, 181–197. [Google Scholar]
  34. O’Connor, J.; Aumasson, J.P.; Neves, S.; Wilcox-O’Hearn, Z. BLAKE3: One Function, Fast Everywhere, 2020. Specification. Available online: https://github.com/BLAKE3-team/BLAKE3-specs/blob/master/blake3.pdf.
  35. Aumasson, J.P.; Neves, S.; Wilcox-O’Hearn, Z.; Winnerlein, C. BLAKE2: Simpler, Smaller, Fast as MD5. Proceedings of the ACNS 2013 2013, Vol. 7954, LNCS, 119–135. [Google Scholar]
  36. Dobraunig, C.; Eichlseder, M.; Grassi, L.; Mendel, F.; Rechberger, C.; Schläffer, M.; Stolz, S. Ascon v1.2: Lightweight Authenticated Encryption and Hashing. Proceedings of the Journal of Cryptology 2021, Vol. 34, 1–42. [Google Scholar] [CrossRef]
  37. National Institute of Standards and Technology. Lightweight Cryptography Standardization Process, 2023. In NIST Selected Ascon.
  38. Ågren, M.; Hell, M.; Johansson, T.; Meier, W. Grain-128a: A New Version of Grain-128 with Optional Authentication. International Journal of Wireless and Mobile Computing (IJWMC) 2011, 5, 48–59. [Google Scholar] [CrossRef]
  39. Courtois, N.T. Fast Algebraic Attacks on Stream Ciphers with Linear Feedback. Proceedings of the CRYPTO 2003, Vol. 2729, LNCS, 176–194. [Google Scholar]
  40. Todo, Y.; Isobe, T.; Hao, Y.; Meier, W. Cube Attacks on Non-Blackbox Polynomials Based on Division Property. Proceedings of the CRYPTO 2017, Vol. 10403, LNCS, 250–279. [Google Scholar]
  41. Babbage, S.; Dodd, M. The Stream Cipher MICKEY (version 2). In Proceedings of the ECRYPT Stream Cipher Project Contains TMTO analysis for stream ciphers, 2005. [Google Scholar]
  42. Hellman, M.E. A Cryptanalytic Time-Memory Trade-Off. IEEE Transactions on Information Theory 1980, 26, 401–406. [Google Scholar] [CrossRef]
  43. Bernstein, D.J. ChaCha, a variant of Salsa20. In Proceedings of the Workshop Record of SASC 2008, 2008. [Google Scholar]
  44. Bernstein, D.J. The Salsa20 Family of Stream Ciphers. In Proceedings of the New Stream Cipher Designs; Springer, 2008; Vol. 4986, LNCS, pp. 84–97. [Google Scholar]
  45. De Cannière, C.; Preneel, B. Trivium. In Proceedings of the New Stream Cipher Designs: The eSTREAM Finalists; Springer, 2008; Vol. 4986, LNCS, pp. 244–266. [Google Scholar]
  46. Makarim, R.H.; Rockmore, D.N. On the Algebraic Degree of Trivium Output Bits; 2021. [Google Scholar]
  47. Dinur, I.; Shamir, A. Cube Attacks on Tweakable Black Box Polynomials. Proceedings of the Advances in Cryptology – EUROCRYPT 2009 2009, Vol. 5479, LNCS, 278–299. [Google Scholar]
  48. Huang, S.; Lai, X. Revisiting Key-Alternating Feistel Ciphers for Shorter Keys and Multi-user Security. Proceedings of the Advances in Cryptology – ASIACRYPT 2020 Conditional cube attack extensions on stream ciphers 2020, Vol. 12491, LNCS, 213–243. [Google Scholar]
  49. Marlinspike, M.; Perrin, T. The X3DH Key Agreement Protocol. Signal Foundation. 2016. Available online: https://signal.org/docs/specifications/x3dh/.
  50. Perrin, T.; Marlinspike, M. The Double Ratchet Algorithm. Signal Foundation. 2016. Available online: https://signal.org/docs/specifications/doubleratchet/.
  51. Rescorla, E. The Transport Layer Security (TLS) Protocol Version 1.3. IETF RFC 8446. 2018. Available online: https://www.rfc-editor.org/rfc/rfc8446.
  52. Krawczyk, H.; Eronen, P. IETF RFC 5869; HMAC-based Extract-and-Expand Key Derivation Function (HKDF). 2010.
  53. AlFardan, N.J.; Paterson, K.G. Lucky Thirteen: Breaking the TLS and DTLS Record Protocols. In Proceedings of the IEEE S&P, 2013; pp. 526–540. [Google Scholar]
  54. Dowling, B.; Fischlin, M.; Günther, F.; Stebila, D. A Cryptographic Analysis of the TLS 1.3 Handshake Protocol. In Proceedings of the Journal of Cryptology; Springer, 2021; Vol. 34, pp. 1–69. [Google Scholar]
  55. Unruh, D. Revocable Quantum Timed-Release Encryption. Proceedings of the EUROCRYPT Introduces the One-Way to Hiding (O2H) lemma for QROM security proofs 2015, Vol. 9057, LNCS, 129–158. [Google Scholar]
  56. Don, J.; Fehr, S.; Majenz, C.; Schaffner, C. Security of the Fiat-Shamir Transformation in the Quantum Random-Oracle Model. Proceedings of the CRYPTO Measure-and-reprogram technique for QROM proofs 2019, Vol. 11693, LNCS, 356–383. [Google Scholar]
  57. National Institute of Standards and Technology. FIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standard Includes QROM security proof for ML-KEM. Federal information processing standards publication, NIST 2024. [Google Scholar]
  58. Bennett, C.H.; Brassard, G. Quantum cryptography: Public key distribution and coin tossing. In Proceedings of the Proceedings of IEEE International Conference on Computers, Systems, and Signal Processing, Bangalore, India, 1984; pp. 175–179. [Google Scholar]
  59. Barthe, G.; Grégoire, B.; Heraud, S.; Zanella-Béguelin, S. Computer-Aided Security Proofs for the Working Cryptographer. Proceedings of the CRYPTO EasyCrypt proof assistant 2011, Vol. 6841, LNCS, 71–90. [Google Scholar]
  60. Möller, B.; Duong, T.; Kotowicz, K. This POODLE Bites: Exploiting the SSL 3.0 Fallback. In Proceedings of the Google Security Advisory, 2014. [Google Scholar]
  61. Bardou, R.; Focardi, R.; Kawamoto, Y.; Simionato, L.; Steel, G.; Tsay, J.K. Efficient Padding Oracle Attacks on Cryptographic Hardware. Proceedings of the CRYPTO 2012, Vol. 7417, LNCS, 608–625. [Google Scholar]
  62. Jager, T.; Kohlar, F.; Schäge, S.; Schwenk, J. On the Security of TLS-DHE in the Standard Model. Proceedings of the CRYPTO 2012, Vol. 7417, LNCS, 273–293. [Google Scholar]
  63. Cremers, C.; Hövelmanns, M.; Rausch, A. Formally Verifying TLS 1.3’s Security: Tamarin Proofs for All Handshake Modes. In Proceedings of the IACR ePrint, 2017; p. Report 2017/323. [Google Scholar]
  64. Krawczyk, H. Cryptographic Extraction and Key Derivation: The HKDF Scheme. IACR Cryptology ePrint Archive 2010, 2010, 264. [Google Scholar]
  65. Fischlin, M.; Günther, F.; Marson, G.A. Data Is a Stream: Security of Stream-Based Channels. Proceedings of the CRYPTO 2015, Vol. 9216, LNCS, pp. 545–564. 0-RTT security model for TLS. [Google Scholar]
  66. Adrian, D.; et al. Imperfect Forward Secrecy: How Diffie-Hellman Fails in Practice. In Proceedings of the CCS. ACM, 2015; pp. 5–17. [Google Scholar]
  67. Anderson, R. Why Information Security is Hard. In Proceedings of the ACSAC, 2001; pp. 358–365. [Google Scholar]
  68. Grossklags, J.; Christin, N.; Chuang, J. Secure or Insure? In Proceedings of the WWW, 2008; pp. 209–218. [Google Scholar]
  69. Albrecht, M.R.; et al. Four Attacks and a Proof for Telegram. In Proceedings of the IEEE S&P, 2022; pp. 1–17. [Google Scholar]
  70. Jakobsen, J.; Orlandi, C. On the CCA (In)security of MTProto. In Proceedings of the SPSM, 2016; pp. 113–116. [Google Scholar]
  71. Rogaway, P. Authenticated-Encryption with Associated-Data. In Proceedings of the CCS. ACM, 2002; pp. 98–107. [Google Scholar]
  72. Bellare, M.; Namprempre, C. Authenticated Encryption: Relations among Notions and Analysis of the Generic Composition Paradigm. Proceedings of the ASIACRYPT 2000, Vol. 1976, LNCS, 531–545. [Google Scholar]
  73. NIST. FIPS 205: SLH-DSA; Technical report; NIST, 2024. [Google Scholar]
  74. NIST. FIPS 206: FN-DSA; Technical report; NIST, 2024. [Google Scholar]
  75. Hofheinz, D.; Hövelmanns, K.; Kiltz, E. A Modular Analysis of the Fujisaki-Okamoto Transformation. Proceedings of the TCC QROM analysis of the FO transform 2017, Vol. 10677, LNCS, 341–371. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings

© 2026 MDPI (Basel, Switzerland) unless otherwise stated