Documentation

CslibFrontier.Crypto.Computational.MLDSA.PrivateMaskSeedGame

Private mask seeds in the background-oracle ML-DSA forgery game #

In the fresh-digest reduction, replace the mask seed of FIPS 204 Algorithm 7, line 7 by a fresh 64-byte draw at each signing request. All remaining reads, including the expansion of that seed, use the same background oracle as the quantum adversary and verifier.

dist_maskSeedGame_privateMaskSeedGame proves the full scored game changes by at most n / 2^256 for n signing calls. randomPrefixGame_forgery_le_privateMaskSeedGame substitutes this comparison into the strong-forgery bound and retains the coherent-oracle comparison.

Fresh-digest forgery in the finite random-XOF game when Algorithm 7 draws a private 64-byte mask seed on each signing call. Expansion, rejection sampling, coherent queries and verification use the same sampled pair of XOFs throughout.

theorem Cslib.Crypto.MLDSA.FIPS204.QuantumSigningForger.dist_maskSeedGame_privateMaskSeedGame (C : QuantumSigningForger) (s : Level) (base : Xofs) {a b n : ℕ} (ha : 1024 ≤ a) (hb : 64 ≤ b) (hn : C.SigningCallsLe n) (hsize : n ≤ 2 ^ 256) :
dist (C.maskSeedGame s base ha hb hn hsize false SignedMatrixTrial.newDigestWin) (C.privateMaskSeedGame s base a b) ≤ ↑n / 2 ^ 256

Replacing Algorithm 7's mask-seed hash with one fresh private seed per signing call in the background-device fresh-digest game costs at most the signing budget divided by 2^256. The device can make coherent queries and choose signing requests adaptively.

theorem Cslib.Crypto.MLDSA.FIPS204.QuantumSigningForger.randomPrefixGame_forgery_le_privateMaskSeedGame (C : QuantumSigningForger) (s : Level) (base : Xofs) {a b n : ℕ} (ha : 1024 ≤ a) (hb : 894 ≤ b) (hn : C.SigningCallsLe n) (hsize : n ≤ 2 ^ 256) :
have R := base.uniformPrefixes a b; have trial := R.bind (C.matrixTrial s); have view := fun (shared : Bool) => C.maskSeedGame s base ha ⋯ hn hsize shared SignedMatrixTrial.newDigestWin; ↑(C.randomPrefixGame s base a b).succProbability ≤ ↑(C.privateMaskSeedGame s base a b).succProbability + dist (view true) (view false) + ↑(n * (n - 1)) / 2 ^ 257 + ↑n / 2 ^ 256 + ↑(Game.succProbability (PMF.map (fun (x : Option (SignedMatrixTrial s)) => Option.any SignedMatrixTrial.hashCollision x) trial)) + ↑(Game.succProbability ((Probability.PMF.uniformOfFintype (PublicMatrix s)).bind fun (A : PublicMatrix s) => PMF.map (fun (v : Fin (s.params.k + s.params.ℓ) → Fin 256 → ℤ) => decide (ModuleSIS.IsSolution (ModuleSIS.hermiteMatrix A) (max (2 * (s.params.γ₁ - s.params.β)) (4 * s.params.γ₂ + 2)) v)) (R.bind fun (H : Xofs) => C.matrixSolver s H A)))

A concrete decomposition of the finite random-XOF strong-forgery probability. Its open terms are the private-seed fresh-digest game, the effect of coherent access to the programmed rows, a raw hash collision and the success of the repeated-digest Hermite Module-SIS solver. The explicit losses cover hedge repetition and message-representative changes.