IND-CPA security of the ideal HQC public-key encryption core #
This module formalizes the two-hop game argument of [GAMA+26], Theorem 6.3, printed
pp. 61--64, for the ideal expanded-value HQC-PKE core. The adversary is a
Cslib.Crypto.TwoStage: after receiving the public key it chooses both challenge messages and a
saved state, then guesses from that state and the challenge ciphertext. Thus the messages may
depend on the key, unlike the fixed-message ExplicitCoinPKE.indCpaAdvantage experiment.
The source defines the public parity b₁ from the sampled public word. Accordingly the DQCSD
laws below mix both fixed-parity branches rather than silently fixing one. The first reduction
replaces the public syndrome using 2-DQCSD-P. The second reads the public key and masked
ciphertext as one 3-DQCSD-PT sample; this hop assumes ωᵣ = ωₑ, as in the source parameter
sets. A uniform comparison sample masks the selected encoded message, so the final game wins
with probability exactly one half.
The theorem is an exact finite probability bound. [GAMA+26] gives no gate, query, or runtime
loss formula for the two reductions, so this module does not invent one or claim a native-QPPT
endpoint. In particular, applying the canonical native assumptions in
Cslib.Crypto.HQC.NativeQuantumTwoDQCSDP and
Cslib.Crypto.HQC.NativeQuantumThreeDQCSDPT still requires circuit/resource certificates for
these reductions and an explicit treatment of the fair parity mixtures. As in [GAMA+26],
Definition 2.4.1 (printed p. 13), indCpaAdvantage is the absolute bias
|Pr[win] - 1/2|.
The displayed Game3 pseudocode on printed p. 63 repeats the fixed-weight Game2 sampling and
formula. This conflicts with the adjacent transition text, the definition of 3-DQCSD-PT and the
proof paragraph, which identify Game3 with the uniform comparison law and use that law to conclude
independence from the hidden bit. threeUniformGame follows that stated comparison-law transition,
not the inconsistent displayed body. Seed/XOF expansion, the biased production sampler, QROM,
Fujisaki--Okamoto, IND-CCA2, and HQC-KEM remain separate obligations.
Main definitions #
Cslib.Crypto.HQC.indCpaGame: the source hidden-bit two-stage IND-CPA experiment.Cslib.Crypto.HQC.twoDQCSDDistinguisher: the source 2-DQCSD-P reduction.Cslib.Crypto.HQC.threeDQCSDDistinguisher: the source 3-DQCSD-PT reduction.Cslib.Crypto.HQC.twoDQCSDAdvantage,Cslib.Crypto.HQC.threeDQCSDAdvantage: the two exact finite source advantage terms.
Main results #
Cslib.Crypto.HQC.eval_indCpaGame_eq_twoRealGame: Game1 is the real 2-DQCSD-P reduction game.Cslib.Crypto.HQC.twoUniformGame_eq_threeRealGame: Game2 is the real 3-DQCSD-PT reduction game.Cslib.Crypto.HQC.threeUniformGame_eq_uniform: Game3 is a fair hidden-bit game.Cslib.Crypto.HQC.indCpaAdvantage_le: [GAMA+26], Theorem 6.3, Equation (10).
References #
- HQC specification, version 5.1, Theorem 6.3, pp. 61--64.
Exact parity-mixtures of the source DQCSD laws #
The real 2-DQCSD-P public-key law, mixing the parity b₁ read from the sampled public word.
The comparison 2-DQCSD-P public-key law, with the same mixed public parity.
The real 3-DQCSD-PT law for the encryption hop. Its second public parity is the parity of the comparison public syndrome from the first hop.
The comparison 3-DQCSD-PT law for the encryption hop.
Source games and reductions #
Read a two-block syndrome sample as an expanded HQC public key.
Read the two public blocks of a truncated three-block sample as an expanded HQC public key.
Read the two output blocks of a truncated three-block sample as an HQC ciphertext, adding the selected encoded message to the retained component as in the source reduction.
HQC v5.1 Game1. The ideal expanded-key two-stage IND-CPA experiment samples the hidden bit after the key-dependent message pair and wins when the second-stage guess equals that bit.
Absolute bias of the hidden-bit success probability from one half, matching [GAMA+26], Definition 2.4.1 (printed p. 13).
The 2-DQCSD-P distinguisher B₁: read the challenge as the public key, run the key-dependent
message stage, encrypt the selected message honestly, and report whether the guess was right.
Game1 as the real 2-DQCSD-P game for twoDQCSDDistinguisher.
Game2 as the comparison 2-DQCSD-P game for twoDQCSDDistinguisher.
The exact finite 2-DQCSD-P advantage term in Equation (10).
The 3-DQCSD-PT distinguisher B₂: read the first two blocks as the public key and the last
two as the ciphertext mask, then add the selected encoded message before the guessing stage.
Game2 as the real 3-DQCSD-PT game for threeDQCSDDistinguisher.
Game3 as the comparison 3-DQCSD-PT game for threeDQCSDDistinguisher.
The exact finite 3-DQCSD-PT advantage term in Equation (10).
Exact game identities #
HQC v5.1 Game1 is exactly the real 2-DQCSD-P reduction game.
HQC v5.1 Game2 is exactly the real 3-DQCSD-PT reduction game. The equality of the two encryption weights is explicit because the source 3-DQCSD-PT sample uses one weight for all three sparse vectors.
HQC v5.1 Game3 is a fair hidden-bit game: the uniform retained component one-time-pads the selected encoded message, including when the message pair depends on the public key.
HQC v5.1, Theorem 6.3, Equation (10). The absolute hidden-bit IND-CPA bias of the ideal expanded-value HQC-PKE core is at most the sum of the exact finite 2-DQCSD-P and 3-DQCSD-PT advantages of the source reductions. The source gives no quantitative circuit-resource loss for these reductions; this theorem therefore makes no asymptotic or native-quantum claim.