Documentation

CslibFrontier.Crypto.Computational.MLDSA.FullPairMLWE

The short-secret key switch after separating FIPS secret expansion #

The private view of Algorithm 6 takes its 66-byte secret-expansion inputs from a separate SHAKE256 stream. The public-pair signer and its quantum forger keep the ambient streams. The reduction installs the decision-MLWE matrix at the public FIPS seed before running them.

Private key-generation view with the 66-byte (528-bit) inputs of Algorithm 33 supplied by secret. Algorithm 6's 34-byte seed-expansion input and its public-key hash still use H.

Caution: this splitter routes solely by bit length (x.length = 528). It is safe only for key generation (fullPairExperiment); do not apply it to signing or verification, where pure-mode representativeInput tr (formatMessage [] []) (for 64-byte tr) and Algorithm 34's Xofs.expandMask (ExpandMask) queries are also 66 bytes (528 bits).

Run the given game when Algorithm 33 succeeds on fresh 481-byte rows for both short vectors. This reproduces secret expansion's finite rejection cap in the pair test.

Dropping an independent secret-expansion failure can only increase a game's success.

Fresh-digest success with native key generation using an independent secret-expansion stream. The public-pair signer and the quantum forger share the ambient XOFs.

noncomputable def Cslib.Crypto.MLDSA.FIPS204.Xofs.withProgrammedMLWEPair {s : Level} (H : Xofs) (seed : FixedBytes 32) (run : Xofs → FixedBytes 32 → PublicKey s.params → Game) (pk : PublicKey s.params) :

Install a supplied lattice matrix at the public seed for an arbitrary subsequent computation on the raw XOFs and the full pair. The original SHAKE128 rows decide matrix exhaustion.

Test a supplied MLWE pair by installing its matrix in the public-seed SHAKE128 rows and running the adaptive public-pair signer with that same pair.

The independent private-expansion game is the exact real branch of the constructed short-secret decision-MLWE test. Both matrix and secret exhaustion are retained.