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:
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:
ML-KEM-768is IND-CCA2 secure (under Module-LWE / Module-SIS against quantum adversaries), orX25519satisfies the Gap-CDH assumption (H acts as the strong DH oracle) andML-KEM-768retains 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:
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):
- If CTml ≠ CT*ml, ℬ1 queries the
ML-KEM-768decapsulation oracle on CTml, computes Kx = X25519(skx, CTx) using its own skx, and returns H(…). - If CTml = CT*ml, then necessarily CTx ≠ CT*x! Because CTx is hashed explicitly inside H(DST ‖ … ‖ CTx ‖ PKx), ℬ1 maintains a consistent random oracle table keyed on (CTml, Kx, CTx, PKx) without ever needing K*ml, 0, returning a fresh consistent output unrelated to the challenge key (up to
SHA3-256random-oracle collision probability (qH + qD)/2256).
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. ∎