Documentation

CslibFrontier.Crypto.Computational.SNOVA.SigningAttempts

SNOVA's bounded signing-attempt schedule #

SNOVA derives fresh vinegar variables for a signing attempt from a one-byte counter numsig. Algorithm 17 of [WCD+26] increments this counter before an attempt and returns failure when the incremented counter is 255, before deriving those variables. Algorithm 14 uses the surviving counter value as part of the SHAKE256 input. Thus a signing invocation tries exactly the increasing bytes 1, ..., 254; neither 0 nor the failure sentinel 255 is tried.

This module records only that source-level schedule. It makes no claim about the distribution or independence of the resulting linear systems, their solvability, or SNOVA's signing-failure probability. In particular, a loop with 254 attempted counters does not by itself justify the reference implementation's informal probability estimate.

Main definitions #

Main results #

References #

The one-byte numsig values for which SNOVA Algorithm 17 actually attempts to solve a vinegar-dependent oil system. Byte 255 is the pre-attempt failure sentinel.

@[simp]

SNOVA Algorithm 17 schedules exactly 254 attempts.

The attempt at zero-based index i uses counter byte i + 1.

@[simp]
theorem Cslib.Crypto.SNOVA.mem_signingAttemptCounters_iff (counter : Fin 256) :
counter ∈ signingAttemptCounters ↔ 1 ≤ ↑counter ∧ ↑counter < 255

A byte occurs in SNOVA's signing-attempt schedule exactly when it is between 1 and 254. This excludes both the initial counter 0 and the failure sentinel 255.

SNOVA's attempted counter bytes occur in strictly increasing order.

SNOVA's attempted counter bytes contain no duplicates.

The first attempted counter byte is 1.

The last attempted counter byte is 254.