fatext v4.0
fatext / proofs / 04-hybrid-pq-kem-proof

Proof 04 — Dual-Assumption IND-CCA2 Proof for X25519 + ML-KEM-768

crypto/kem combines NIST FIPS 203 ML-KEM-768 over Rq = ℤ3329[X]/(X256+1) with RFC 7748 X25519 via the X-Wing-style combiner:

K = H(DST ‖ Kml ‖ Kx ‖ CTx ‖ PKx)

where H = SHA3-256 (NIST FIPS 202) and DST = "xu-hybrid-kem-x25519-mlkem768-v1".

1. Why Ciphertext Context Binding Matters

In a naive XOR combiner K = Kml ⊕ Kx, if ML-KEM-768 were broken while X25519 remained secure, an active CCA2 adversary could mutate CTml → CT'ml on a challenge ciphertext (CT*ml, CT*x), query the decapsulation oracle on (CT'ml, CT*x), recover K'ml ⊕ K*x, compute K'ml using its break of ML-KEM, and extract K*x!

By hashing CTx ‖ PKx directly inside H, and relying on FIPS 203's built-in Fujisaki-Okamoto implicit rejection (which already binds H(EKml) and CTml into Kml), any mutation to either half produces a domain-distinct hash input.

2. Theorem 4.1 (Hybrid IND-CCA2 Security)

Statement: Modeling H = SHA3-256 as a random oracle, the hybrid KEM Πhyb is IND-CCA2 secure if either:

  1. ML-KEM-768 is IND-CCA2 secure (under Module-LWE / Module-SIS against quantum adversaries), or
  2. X25519 satisfies the Gap-CDH assumption (H acts as the strong DH oracle) and ML-KEM-768 retains Ciphertext Second-Preimage Resistance (C2PRI) so distinct ciphertexts CTml ≠ CT*ml do not share identical shared secrets except with negligible decryption-failure / FO hash collision probability δML-KEM-768 ≈ 2-164.

Specifically, for any adversary 𝒜 making qD decapsulation queries and qH random oracle queries:

Advind-cca2Πhyb(𝒜) ≤ min( Advind-cca2ML-KEM-768(ℬ1) + qH + qD2256, Advgap-cdhX25519(ℬ2) + qD · δML-KEM-768 + qH2256 ).

3. Proof of Both Branches

Branch A: ML-KEM-768 Holds (Classical X25519 Broken by CRQC)

Reduction ℬ1 receives challenge (EKml, CT*ml, K*ml, b), generates its own X25519 keypair (skx, PKx) and challenge (CT*x, K*x), and forwards (EKml ‖ PKx, CT*ml ‖ CT*x) with challenge key K*0 = H(DST ‖ K*ml, b ‖ K*x ‖ CT*x ‖ PKx) (when b=0, real; when b=1, K*ml,1 is uniform and independent of CT*ml, so K*0 is uniform unless 𝒜 queries K*ml,1 to H). For any decapsulation query (CTml, CTx) ≠ (CT*ml, CT*x):

Branch B: X25519 Gap-CDH + ML-KEM-768 C2PRI Hold (ML-KEM-768 IND-CCA2 Broken)

Reduction ℬ2 embeds Gap-CDH challenge (U = [a]G, V = [b]G) as PKx = U and CT*x = V, while generating its own honest ML-KEM-768 keypair (dkml, EKml). Using the Gap-DH decision oracle DDH(U, CTx, Z) across 𝒜's random oracle queries (…, Kx, CTx, U), ℬ2 consistently answers all decapsulation queries (CTml, CTx): if CTx = CT*x, then CTml ≠ CT*ml, and FIPS 203 deterministic re-encryption / implicit rejection guarantees Kml ≠ K*ml under ML-KEM-768 C2PRI (up to δML-KEM-768 ≈ 2-164 per query). Any random-oracle query on K*x = CDH(U, V) solves Gap-CDH directly. ∎

Raw Markdown: /proofs/04-hybrid-pq-kem-proof.md All specs & proofs: /llms-full.txt