Bounded vinegar retries, exact preimage uniformity, and UOV retry-cap lifting #
The UOV signing procedure in [BCD+26] (§3.1, pp. 11–13, and §3.2.1–3.2.3 / Figure 2,
pp. 13–17) repeatedly draws vinegar vectors up to a retry cap K until the resulting m × m
signing matrix key.signingSystemMatrix u is invertible (IsUnit (key.signingSystemMatrix u).det),
returning none if all K attempts yield singular systems. This module formalizes the exact
singularity bounds for random matrices, zero conditional bias and CloseTo error decay via
Cslib.OracleComp.retrySome, exact conditional preimage uniformity for BlockKeyMaterial,
unconditional uniform-mixedBlock distribution and Markov bad-key lifting for blockKeyGen, and
retry-cap lifting across TrapdoorPreimageSystem and HashAndSign reductions.
Model scope and idealizations #
- Independent uniform vinegar draws vs.
Expand_vcounter expansion. Real UOV (UOV.Sign, [BCD+26], §3.2.3, p. 15; Figure 2, p. 16) derives each candidate vinegar vector deterministically from a secret seed,message,salt, and retry counterctrusingExpand_v(modeled via PRF security in §3.2.2, p. 14). HereblockVinegarAttemptmodels each retry as an independent uniform sampleu ← Uniform(𝔽^v), andblockKeyGensamples algebraicBlockKeyMaterialdirectly without key-seed XOF expansion, byte packing, or signature serialization. Replacing pseudorandomExpand_vdraws by uniform draws is not bridged here. - Figure 2
K = 256retry bound. [BCD+26] Figure 2 (line 3, p. 16) explicitly fixesctr = 0 upto 255(K = 256attempts; prose §3.2.3, p. 15 does not fixK). The concrete bounds (f256_singularMatrixProb_pow_256_ltandf16_singularMatrixProb_pow_256_lt) evaluate this exactK = 256cap. - Markov bad-key floor
((q - 1)⁻¹) / τ. Becauseuniform_mixedBlock_vinegar_singularity_legives a per-key-pair average failure bound of|𝔽|⁻¹ ^ v + (|𝔽| - 1)⁻¹, the Markov key-tail bounds (advantage_psExperimentReal_blockKeyRetry_cap_leandadvantage_psExperimentReal_blockKeyRetry_conditioned_le) carry an irreducible((|𝔽| - 1)⁻¹) / τfloor (≈ 2⁻⁸ / τoverUOV.F256,≈ 2⁻³·⁹ / τoverUOV.F16), not exponential decay inv. Tightening this via variance/Chernoff concentration overuis open (#4987).
Main definitions #
Cslib.Crypto.UOV.singularMatrixProb: probability that a uniformm × mmatrix over𝔽is singular.Cslib.Crypto.UOV.extractOil,Cslib.Crypto.UOV.extractVinegar,Cslib.Crypto.UOV.equivVinegarOil: exact coordinate decomposition inverse tosignatureVector O.Cslib.Crypto.UOV.solveBlockSignature,Cslib.Crypto.UOV.blockVinegarAttempt,Cslib.Crypto.UOV.blockVinegarRetrySign,Cslib.Crypto.UOV.blockKeyGen,Cslib.Crypto.UOV.blockKeyTrapdoorSystem: bounded-retryBlockKeyMaterialsigning and its concreteTrapdoorPreimageSysteminstantiation.Cslib.Crypto.UOV.goodVinegars,Cslib.Crypto.UOV.nonsingularPreimages,Cslib.Crypto.UOV.equivGoodVinegarsNonsingularPreimages,Cslib.Crypto.UOV.vinegarSingularityProb: invertible vinegar set, target preimage set, explicit bijection between them, and per-key failure probability.Cslib.Crypto.UOV.HashAndSign.retryTrapdoorSystem: lifts any single-attemptTrapdoorPreimageSystemtofuelbounded retries viaOracleComp.retrySome.
Main results #
Cslib.Crypto.UOV.singularMatrixProb_eq,Cslib.Crypto.UOV.singularMatrixProb_le,Cslib.Crypto.UOV.f256_singularMatrixProb_pow_256_lt,Cslib.Crypto.UOV.f16_singularMatrixProb_pow_256_lt: exact matrix singularity probability1 - ∏ k < m, (1 - q⁻¹ ^ (k + 1)), its uniform upper bound(q - 1)⁻¹, and concrete 256-retry bounds forUOV.F256(< 2⁻¹ ^ 2046) andUOV.F16(< 2⁻¹ ^ 1000).Cslib.Crypto.UOV.blockVinegarRetrySign_sound,Cslib.Crypto.UOV.filter_blockVinegarRetrySign_eq_uniform: accepted signatures satisfykey.publicMap s = targetand conditioned acceptance is exact uniform overnonsingularPreimages key target.Cslib.Crypto.UOV.map_uniform_mixedBlock_signingSystemMatrix,Cslib.Crypto.UOV.uniform_mixedBlock_vinegar_singularity_le,Cslib.Crypto.UOV.uniform_mixedBlock_markov_vinegarSingularity_le: uniform-mixedBlocksigning matrix uniformity, joint(mixedBlock, u)failure bound|𝔽|⁻¹ ^ v + (|𝔽| - 1)⁻¹, and Markov bad-key tail bound (ℝ≥0∞-valued).Cslib.Crypto.UOV.HashAndSign.advantage_psExperimentReal_retry_cap_le,Cslib.Crypto.UOV.HashAndSign.advantage_psExperimentReal_retry_conditioned_le,Cslib.Crypto.UOV.HashAndSign.advantage_psExperiment_retry_shift_le: unconditional (no-hgood) retry-cap lifting acrossQ-queryPSDistinguishers.Cslib.Crypto.UOV.HashAndSign.advantage_psExperimentReal_blockKeyRetry_cap_le,Cslib.Crypto.UOV.HashAndSign.advantage_psExperimentReal_blockKeyRetry_conditioned_le: unconditionalBlockKeyMaterialMarkov bad-key + retry-cap lifting overblockKeyGen.Cslib.Crypto.UOV.HashAndSign.eufCmaGame_saltedScheme_retryTrapdoorSystem_le: worked composition combiningHashAndSign.eufCmaGame_saltedScheme_succProbability_lewithadvantage_psExperiment_retry_shift_le.
References #
1. Finite-field matrix singularity bounds #
Exact number of invertible m × m matrices over a finite field 𝔽.
Exact formula for the singularity probability of a uniform m × m matrix over 𝔽:
1 - ∏ k < m, (1 - q⁻¹ ^ (k + 1)).
Uniform upper bound singularMatrixProb 𝔽 m ≤ (|𝔽| - 1)⁻¹ for every finite field 𝔽 and
matrix dimension m.
Extended-nonnegative singularity bound: the PMF.uniformOfFintype probability that an
m × m matrix over 𝔽 is singular is at most (|𝔽| - 1)⁻¹.
Over UOV.F256 (GF(256)), a uniform m × m matrix is singular with real probability at
most 1 / 255.
Over UOV.F256 with an illustrative retry cap K = 256, the 256-retry matrix failure
probability singularMatrixProb F256 m ^ 256 is strictly less than 2⁻¹ ^ 2046.
Over UOV.F16 (GF(16)), a uniform m × m matrix is singular with real probability at most
1 / 15.
Over UOV.F16 with an illustrative retry cap K = 256, the 256-retry matrix failure
probability singularMatrixProb F16 m ^ 256 is strictly less than 2⁻¹ ^ 1000.
2. BlockKeyMaterial bounded-retry vinegar signing and preimage uniformity #
Solve for the unique oil vector x when key.signingSystemMatrix u is invertible (det ≠ 0),
returning some (signatureVector key.oilMatrix u x) and none otherwise.
Every accepted output some s of solveBlockSignature key target u solves
key.publicMap s = target, arises from the invertible vinegar u, and satisfies
u = extractVinegar key.oilMatrix s.
Set of vinegar vectors u yielding an invertible signing system matrix L u.
Set of valid preimages s of target whose recovered vinegar u = extractVinegar O s gives
an invertible signing system matrix.
Explicit equivalence between invertible vinegars goodVinegars key and nonsingular preimages
nonsingularPreimages key target.
Every target target : Fin m → 𝔽 has the same number (goodVinegars key).card of
nonsingular-vinegar preimages.
One random-vinegar signing attempt: sample u ← Uniform(𝔽^v) and run solveBlockSignature.
fuel-attempt bounded vinegar retry signing for BlockKeyMaterial.
Probability that a uniformly sampled vinegar vector u : Fin v → 𝔽 makes key's signing
system matrix singular.
Soundness of blockVinegarRetrySign: every returned some s maps under key.publicMap to
target and has an invertible vinegar system matrix.
Single-attempt failure probability of blockVinegarAttempt key target equals
vinegarSingularityProb key, independently of target.
All-attempts-fail probability of blockVinegarRetrySign equals
vinegarSingularityProb key ^ fuel.
Single-attempt acceptance mass at some s: uniform mass (|𝔽| ^ v)⁻¹ on
nonsingularPreimages key target and 0 elsewhere.
Zero conditional bias for UOV BlockKeyMaterial: whenever blockVinegarRetrySign key target fuel has positive acceptance probability, conditioning on acceptance yields the exact uniform
distribution over nonsingularPreimages key target (mapped via some).
Unconditional uniform-mixedBlock distribution theorem: fixing any oil matrix O, any
upper-triangular P₁, and any nonzero vinegar vector u ≠ 0, sampling mixedBlock uniformly makes
key.signingSystemMatrix u exactly uniformly distributed over Matrix (Fin m) (Fin m) 𝔽.
Unconditional fixed-u ≠ 0 singularity probability over uniform mixedBlock is at most
(|𝔽| - 1)⁻¹.
Unconditional joint (mixedBlock, u) singularity bound: fixing any O and P₁, sampling
uniform P₂ and uniform u : Fin v → 𝔽 yields a singular signing system matrix with probability
at most |𝔽|⁻¹ ^ v + (|𝔽| - 1)⁻¹.
Markov key-tail bound in ℝ≥0∞: for any t : ℝ≥0∞ (t ≠ 0), under uniform mixedBlock
(for any fixed O, P₁), the fraction of keys whose per-key vinegarSingularityProb is at least
t is at most (|𝔽|⁻¹ ^ v + (|𝔽| - 1)⁻¹) / t.
Key generator for BlockKeyMaterial 𝔽 v m: draws the secret oil matrix O, upper-triangular
vinegar blocks P₁, and mixed blocks P₂ independently and uniformly, returning
(key.publicMap, key).
Concrete TrapdoorPreimageSystem for BlockKeyMaterial 𝔽 v m: uses blockKeyGen,
BlockKeyMaterial.publicMap, single-attempt blockVinegarAttempt signing, and uniform preimage
sampling on 𝔽^{v + m}. Wrapping with HashAndSign.retryTrapdoorSystem yields K-attempt UOV
signing (blockVinegarRetrySign).
3. TrapdoorPreimageSystem retry-cap lifting and HashAndSign composition #
Lift any single-attempt TrapdoorPreimageSystem (where base.invert returns none on a
singular draw) to a fuel-attempt bounded-retry system via OracleComp.retrySome.
Real PS sampling pairs of retryTrapdoorSystem base fuel₁ and
retryTrapdoorSystem base fuel₂ are within q ^ min fuel₁ fuel₂ unconditionally whenever single
attempts fail with probability at most q.
Real PS sampling pair of retryTrapdoorSystem base fuel is within q ^ fuel of sampling a
uniform y : Target and drawing from totalConditionedSome (base.invert sk y) unconditionally.
Retry-cap lifting on psExperimentReal: replacing K₁ retries by K₂ retries changes
the distinguishing advantage of any Q-query PSDistinguisher by at most Q * q ^ min K₁ K₂,
unconditionally whenever single-attempt inversion fails with probability at most q on every
supported secret key and target.
Exact conditioned-PMF lifting on psExperimentReal: unconditionally for any Q-query
PSDistinguisher, running psExperimentReal (retryTrapdoorSystem base K) D is within
Q * q ^ K of answering D's queries with rejection-free totalConditionedSome.
Shifting retry cap from K₁ to K₂ transfers any PS advantage bound between
psExperimentReal (retryTrapdoorSystem base K₁) D and psExperimentSim up to additive loss
Q * q ^ min K₁ K₂.
Concrete BlockKeyMaterial Markov bad-key + retry-cap lifting on psExperimentReal: over
blockKeyGen 𝔽 v m, shifting the retry cap from K₁ to K₂ moves any Q-query
PSDistinguisher's output by at most Q * τ ^ min K₁ K₂ + (|𝔽|⁻¹ ^ v + (|𝔽| - 1)⁻¹) / τ for
every threshold τ > 0, combining uniform_mixedBlock_markov_vinegarSingularity_le with
closeTo_sampleRealPair_retryTrapdoorSystem without any per-key hgood assumption. Because the
joint failure bound retains (q - 1)⁻¹ (≈ 2⁻⁸ over UOV.F256, ≈ 2⁻³·⁹ over UOV.F16), this
Markov tail carries an irreducible ((q - 1)⁻¹) / τ floor rather than exponential decay in v;
tightening via variance/Chernoff concentration over u is tracked in #4987.
Concrete BlockKeyMaterial Markov bad-key + conditioned-PMF lifting on psExperimentReal:
over blockKeyGen 𝔽 v m, replacing K-retry blockVinegarRetrySign by rejection-free
totalConditionedSome (blockVinegarAttempt key target) changes any Q-query PSDistinguisher's
acceptance probability by at most Q * τ ^ K + (|𝔽|⁻¹ ^ v + (|𝔽| - 1)⁻¹) / τ for every
threshold τ > 0. Like advantage_psExperimentReal_blockKeyRetry_cap_le, this Markov bound carries
an irreducible ((q - 1)⁻¹) / τ floor (≈ 2⁻⁸ / τ over UOV.F256, ≈ 2⁻³·⁹ / τ over UOV.F16;
variance/Chernoff tightening is tracked in #4987).
Worked composition of HashAndSign.eufCmaGame_saltedScheme_succProbability_le with
advantage_psExperiment_retry_shift_le (reusing HashAndSign's salted EUF-CMA reduction rather
than introducing a new security reduction): shifting the retry cap from K₁ to K₂ adds at most
q_S * q ^ min K₁ K₂ to the EUF-CMA bound for every q_S-signing-query forger.